Home > Software engineering >  Typing in "python3", but not "python", is recognized in powershell
Typing in "python3", but not "python", is recognized in powershell

Time:11-13

After I type in "python3", it shows the python version as "3.8.5" but the version I have currently is python 3.10. What is going on?

CodePudding user response:

I think you should actively manage your python version. On Linux, you can use some orders to manage them,egs:

  • if you want install python in the whole path.please install in /opt/python/
  • if you want to add new candidate's python --version, you can use:sudo update-alternatives --install /usr/local/bin/python3 python3 /opt/python/3.8.5/bin/python3 80

thanks for your reading!

CodePudding user response:

I tried "py" instead of "python" or "python3" and its working. I guess I'll stick with "py" then.

  • Related