Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set python default 3.0
#1
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
Reply
#2
What will happen if you write python3?
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply
#3
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)
Reply
#4
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
Reply
#5
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.
buran likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pip installs in a different python version and directory than the default 3.11 ao_tex_mal 9 3,329 Jun-20-2023, 02:55 PM
Last Post: snippsat
  Mac default python interpreter Viewpoint8455 2 908 Oct-13-2022, 06:25 AM
Last Post: perfringo
  How to see python default methods from inside mariolucas75 3 2,428 Jun-14-2020, 11:41 AM
Last Post: snippsat
  set 'default' cwd in python zealjeung 1 2,284 Aug-19-2018, 12:04 PM
Last Post: Windspar
  How to make the python default language be 3.6 instead of 2.7 sylas 4 6,814 Jul-06-2018, 06:11 AM
Last Post: sylas

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020