Python Forum

Full Version: set python default 3.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have python 3.0 the latest version but when I type python in my shell it says 2.7. How do I set python 3.0 in my shell as my default version
What will happen if you write python3?
The best way to do this is to use pyenv, see: https://python-forum.io/Thread-pyenv-Sim...Management
-------
Otherwise you will need to set up environment variables.
This is best done during installation, so I'd suggest uninstalling python and reinstalling.
Messing with environment variables can be dangerous unless you are sure you know how to do it safely.

depends on your OS see: https://python-forum.io/Forum-Python-Ins...-Execution
Select tutorial for your OS (use snippsat's threads)
i have pip already installed by why am I having using setting 3.0 as my default I'm on a mac and the default is 2.7
Read your older Thread, post #7
The link The right and wrong way to set Python 3 as default on a Mac,really explain it well.