question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to install `ray` in conda env with python 3.7.4

See original GitHub issue

System information

  • OS Platform and Distribution: Linux Ubuntu 18.04
  • Ray installed from: via pip in conda env
  • Ray version: 0.7.3
  • Python version: 3.6 and 3.7
  • Exact command to reproduce:

Describe the problem

ray can be installed as part of a conda env when using python 3.6, but not with python 3.7.

Given the following environment.yml and install command I can install ray:

# environment.yml
name: ray_on_conda
channels:
  - defaults
dependencies:
  - python=3.6
  - pip
  - pip:
    - "ray==0.7.3"
conda env create -f envrionment.yml

If I use python 3.7, I can’t install ray:

# environment.yml
name: ray_on_conda
channels:
  - defaults
dependencies:
  - python=3.7
  - pip
  - pip:
    - "ray==0.7.3"

I get the following error:

...
Ran pip subprocess with arguments:                                                                                                                                           
['/home/user/anaconda3/envs/ray_on_conda/bin/python', '-m', 'pip', 'install', '-U', '-r', '/home/user/tmp/ray_on_conda/condaenv.l15tlbje.requirements.txt']              
Pip subprocess output:                                                                                                                                                       
8.3.0                                                                                                                                                                        
Collecting ray==0.7.3 (from -r /home/user/tmp/ray_on_conda/condaenv.l15tlbje.requirements.txt (line 1))                                                                    
                                                                                                                                                                             
Pip subprocess error:                                                                                                                                                        
  ERROR: Could not find a version that satisfies the requirement ray==0.7.3 (from -r /home/user/tmp/ray_on_conda/condaenv.l15tlbje.requirements.txt (line 1)) (from version
s: none)                                                                                                                                                                     
ERROR: No matching distribution found for ray==0.7.3 (from -r /home/user/tmp/ray_on_conda/condaenv.l15tlbje.requirements.txt (line 1)) 

Note that a direct pip install ray in the conda env with python 3.7 also fails. If I create a virtualenv with python 3.7 virtualenv -p python3.7 I can run pip install ray.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nasrin136commented, Jun 10, 2021

Hi. I am having this issue with python=3.9.5, on MacOS 11.3.1. I get: Pip subprocess error: ERROR: Could not find a version that satisfies the requirement ray[all]>=1.2 (from versions: none) ERROR: No matching distribution found for ray[all]>=1.2 my environment.yml channels:

  • defaults dependencies:

  • pandas=1.2.4

  • pip=21.1.1

  • plotly=4.14.3

  • python=3.9.5

  • pip:

    • numpy==1.19.5
    • tensorflow==2.5.0
    • ray[all] >= 1.2 the problem disappears with I changed python =3.7.4
0reactions
sottecommented, Aug 15, 2019

Thanks @simon-mo!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing Ray — Ray 2.2.0 - the Ray documentation
While using a conda environment, it is recommended to install Ray from PyPi using pip install ray in the newly created environment. Building...
Read more >
Downloading spacy ray in an anaconda virtual environment ...
1 Answer 1 · So I tried to downgrade the python in my virtual environment by using 'conda install python=3.7.3" followed by 'pip...
Read more >
How to Install TensorFlow with GPU Support on Windows 10 ...
I'll walk you through the best way I have found so far to get a good TensorFlow work environment on Windows 10 including...
Read more >
Python 3.7 Package Build Out & Miniconda Release - Anaconda
By Ray Donnelly & Crystal Soja We are pleased to announce that Python 3.7 ... If you have a Python 3 environment with...
Read more >
Python on Biowulf - NIH HPC
If you have problems that are resolved by adding the -s option a broken package installed in your home directory may be the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found