Skip to content Skip to sidebar Skip to footer

Unable To Install Packages In Anaconda Virtual Environment. 'packages Are Not Available From Current Channels'

I am trying to create a new Python environment in Anaconda. I am using Anaconda Powershell Prompt and created the environment using the conda create --name adwp1 python=3.5 -y; co

Solution 1:

That version of the package is not available in the official repositories, so you have to install it from somewhere else. Luckily, this is available in the conda-forge user-maintained repositories. If you trust the maintainer of the package, you can simply do:

conda install -c conda-forge -y notebook=4.2.3

EDIT

As per @merv comment, it may also be possible to get this package by restoring the free channel searching, which can be done essentially by setting to 1 the CONDA_RESTORE_FREE_CHANNEL environment variable:

CONDA_RESTORE_FREE_CHANNEL=1 conda install -y notebook=4.2.3

or by setting the corresponding config flag to true:

conda config --set restore_free_channel true

As far as the pip command is concerned, this is simply a typo (as suggested in the error message): replacing = with == should do the trick:

pip install notebook==4.2.3

Solution 2:

Post a Comment for "Unable To Install Packages In Anaconda Virtual Environment. 'packages Are Not Available From Current Channels'"