Python Forum
Mac default python interpreter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mac default python interpreter
#1
Hello,
I have a problem with my default python (interpreter) on my Mac.
When I type “which python” in the terminal, it shows: “/opt/anaconda3/bin/python”.
How can I change this so that again “/usr/local/bin/python3” is the default python interpreter?
Reply
#2
symlink that directory to the other directory.
Reply
#3
What will happen if you write which python3?

How to fix it depends on many factors - how did you install Python, it's different versions and distributions. What does your .bashrc/.bash_profile (or their .zhs counterparts) contain (aliases, paths etc).
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


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,073 Jun-20-2023, 02:55 PM
Last Post: snippsat
  Python Interpreter ankitdixit 4 2,620 Jun-10-2022, 12:37 PM
Last Post: katy1234
Photo Visual studio code unable to color syntax on python interpreter tomtom 4 6,680 Mar-02-2022, 01:23 AM
Last Post: tomtom
  How to set Tab size to 4 in Python interpreter? zzzhhh 1 1,795 Jan-18-2022, 12:11 PM
Last Post: snippsat
  readline.parse_and_bind() does not work in start-up script of Python interpreter zzzhhh 0 1,473 Jan-18-2022, 11:05 AM
Last Post: zzzhhh
  set python default 3.0 tdwinfre 4 2,750 Nov-27-2020, 06:04 PM
Last Post: snippsat
  python interpreter won't import packages greenpy 1 1,914 Sep-11-2020, 07:47 PM
Last Post: buran
  How could i change the python interpreter path of os.system() 12019202386 2 2,484 Sep-02-2020, 06:58 AM
Last Post: DeaD_EyE
  Question re: running code in Editor (i.e. Atom) vs Python interpreter rok 3 2,374 Jun-29-2020, 09:20 PM
Last Post: bowlofred
  How to see python default methods from inside mariolucas75 3 2,386 Jun-14-2020, 11:41 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

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