I am using an M1 mac and I am using a conda environment with python 3.8.8.
I tried to update with 'conda update python' but 3.8.8 is the latest version I can get and it is running on Rosetta 2.
I would like to install the latest 3.9.x for BigSur (so it can run natively) to the conda env (or any env).
I tried to download the python 3.9.4 universal version installer but I do not know how to put it in an virtual environment.
Thanks!
Virtualenvs are interpreter-specific – you set up a virtualenv that uses a given interpreter version.
If you've installed Python 3.9.4 from somewhere, you can then use
python3.9 -m venv some_venv
to create a virtualenv that uses that interpreter. (Assuming, of course, that thatpython3.9
is on the path and is indeed the correct interpreter.)(You can also
python3.9 -m pip install virtualenv
to install thevirtualenv
package, which is faster than the stockvenv
.)conda
is a package manager unto its own, and its environments are not to be confused with regular Pythonvirtualenv
s.