0

In my anaconda environment in Windows 10,

python --version shows Python 3.7.6, and python3 --version shows Python 3.9.12

How can I set python to use Python 3.9.12 which is used by python3?

Because I use Windows, alias python=python3 command does not work.

dolgom
  • 611
  • 1
  • 11
  • 27
  • Check out this: https://stackoverflow.com/a/52913040/5566217 – Preston Hager May 10 '22 at 02:51
  • @PrestonHager The solution is not for anaconda. 'C:\Python39\', which is not used in anaconda, is already top of the list in Path variable. – dolgom May 10 '22 at 02:56
  • Seems like the default is 3.9 [according to the docs](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-python.html). Try doing either `conda update python` or for a specific version: `conda install python=3.9`. – Preston Hager May 11 '22 at 02:12
  • I tried `conda install python=3.9`, which have updated python3 version to 3.9. `python --version` is still 3.7.6 – dolgom May 12 '22 at 01:02
  • Since the default version is 3.9, try deleting all config files, and your 3.7.6 version of Python if you don't need it. Then reinstall Anaconda. – Preston Hager May 13 '22 at 02:43
  • 1
    I want to switch the python version of the existing anaconda environment, which I have already installed a lot of modules. If I need to reinstall anaconda, I could create new anaconda environment with Python 3.9. – dolgom May 13 '22 at 03:48

0 Answers0