devAmoghS / Machine-Learning-with-Python

Small scale machine learning projects to understand the core concepts . Give a Star 🌟If it helps you. BONUS: Interview Bank coming up..!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to install requirements

Randy-Ram opened this issue · comments

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.

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

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

@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))

@HyperManTT Modified the installation notes, kindly check

@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.

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.

conda config --add channels conda-forge

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

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

You can search the packages on this website as well.

Conda Forge Packages

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