macos – How to use Anaconda to create an environment on Mac M1 using python 2.7?
I am trying to create an environment on my mac m1 using Anaconda using python 2.7. So I use : conda create -n py27 python=2.7
But it gives error:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- python=2.7
Current channels:
- https://repo.anaconda.com/pkgs/main/osx-arm64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-arm64
- https://repo.anaconda.com/pkgs/r/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.
I also tried conda create -y -n py27 python=2.7 and conda create -c 'https://repo.anaconda.com/pkgs/main/osx-arm64/' -n py27 python=2.7 gives me the same error. Is it possible to set up python 2.7 virtual environment on Mac M1? Or how can I do that?
Read more here: Source link
