Why conda cannot create environment with python=3.4 installed in it

ABC picture ABC · Jul 2, 2019 · Viewed 10.9k times · Source

I have miniconda 3 installation and want to create conda environment with Python 3.4. I used the command: conda create -n myenv python=3.4 and get the error:

PackagesNotFoundError: The following packages are not available from current channels:
  - python=3.4

I tried to change the version to 3.7, typing conda create -n myenv python=3.7 There was no error with version 3.7. So the problem seems to be related with the older versions of python.

This is the full output with the error message:

Collecting package metadata (current_repodata.json): done
Solving environment: failed
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - python=3.4

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

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.

Answer

Ashwin Geet D'Sa picture Ashwin Geet D'Sa · Jul 19, 2019

The reason you are not able to install python 3.4 package is that it is not available in the default channel of anaconda from where you are trying to install.

However, I just checked that it is available in the conda-forge channel. So, it can be installed as below:

conda create -n myenv python=3.4 -c conda-forge