Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install requirements #3

Closed
Randy-Ram opened this issue Jan 24, 2019 · 11 comments
Closed

Unable to install requirements #3

Randy-Ram opened this issue Jan 24, 2019 · 11 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Randy-Ram
Copy link

When installing the requirements I am met with a host of "Could not find a version..." errors. I have confirmed that I am indeed using Python 3.5 and followed your instructions on creating and activating a conda environment. See error below:

Collecting anaconda-navigator==1.8.7 (from -r requirements.txt (line 7))
  Could not find a version that satisfies the requirement anaconda-navigator==1.8.7 (from -r requirements.txt (line 7)) (from versions: )
No matching distribution found for anaconda-navigator==1.8.7 (from -r requirements.txt (line 7))
You are using pip version 10.0.1, however version 19.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
@devAmoghS
Copy link
Owner

@HyperManTT Thank you for submitting the issue. I will look into it and resolve the same at the earliest

@devAmoghS devAmoghS added bug Something isn't working good first issue Good for newcomers labels Jan 25, 2019
@devAmoghS devAmoghS self-assigned this Jan 25, 2019
@devAmoghS
Copy link
Owner

@HyperManTT Kindly pull the updated code and let me know if the issue is still persisting.

@Randy-Ram
Copy link
Author

@devAmoghS , I've pulled the updated code but unfortunately I still have the same issue. I have confirmed I'm using Python 3.5.6 and the conda virtualenv. See error below:

Collecting Keras==2.2.4 (from -r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/5e/10/aa32dad071ce52b5502266b5c659451cfd6ffcbf14e6c8c4f16c0ff5aaab/Keras-2.2.4-py2.py3-none-any.whl
Collecting Keras-Application==1.0.6 (from -r requirements.txt (line 2))
  Could not find a version that satisfies the requirement Keras-Application==1.0.6 (from -r requirements.txt (line 2)) (from versions: )
No matching distribution found for Keras-Application==1.0.6 (from -r requirements.txt (line 2))

@devAmoghS
Copy link
Owner

@HyperManTT Modified the installation notes, kindly check

@Randy-Ram
Copy link
Author

@devAmoghS Tried with the updated instructions. See issue below:

(mlwp) Randys-MacBook-Pro-557:Machine-Learning-with-Python rram$ conda install --yes --file requirements.txt
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - ipython-genutils==0.2.0
  - mkl-fft==1.0.6
  - decorator==4.3.2
  - mkl-random==1.0.1
  - parso==0.3.2
  - keras-application==1.0.6
  - prompt-toolkit==2.0.7
  - pyyaml[version='>=4.2b1']

Current channels:

  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/osx-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/pro/osx-64
  - https://repo.anaconda.com/pkgs/pro/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

@devAmoghS
Copy link
Owner

Try adding the conda-forge channel to your list of channels with this command: conda config --append channels conda-forge. It tells conda to also look on the conda-forge channel when you search for packages. You can then simply install the packages with conda install --yes --file requirements.txt

Channels are basically servers for people to host packages on and the community-driven conda-forge is usually a good place to start when packages are not available via the standard channels.

@devAmoghS
Copy link
Owner

conda config --add channels conda-forge

@Randy-Ram
Copy link
Author

Hey @devAmoghS, added conda-forge but some packages are still missing from the channels I have. See below:

(mlwp) Randys-MacBook-Pro-557:Machine-Learning-with-Python rram$ conda install --yes --file requirements.txt
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - prompt-toolkit==2.0.7
  - ipython-genutils==0.2.0
  - mkl-fft==1.0.6
  - keras-application==1.0.6
  - pyyaml[version='>=4.2b1']
  - mkl-random==1.0.1

Current channels:

  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/osx-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/pro/osx-64
  - https://repo.anaconda.com/pkgs/pro/noarch
  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch

@devAmoghS
Copy link
Owner

Use this command to install the missing packages
conda install -c conda-forge *list of packages separated by space*

@devAmoghS
Copy link
Owner

You can search the packages on this website as well.

Conda Forge Packages

@Randy-Ram
Copy link
Author

Hey @devAmoghS ,

Seems the names in the requirements file were incorrect, at least for me. I've modified them and run the following and it now works:

conda install -c conda-forge ipython_genutils mkl_fft keras-applications pyyaml mkl_random

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants