When I want to install jupyter notebook or spyder in one of my environments I encountered this error:
PackagesNotFoundError: The following packages are not available from current channels:
- python=3.1
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
- https://conda.anaconda.org/conda-forge/win-64
- https://conda.anaconda.org/conda-forge/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.
Why would this happen?
Edit: I created the environment with scikit-learn, pytorch, and torchvision without specifying any version. After creating the environment, I tried installing spyder using both commands:
conda install spyder
conda install -c anaconda spyder
Neither worked. It seems that the environment automatically used python=3.1 when I created it.
Edit: When I put everything in one env.yml file instead of the command line it seems to work. Not sure why.