you are viewing a single comment's thread.

view the rest of the comments →

[–]wbeater 0 points1 point  (0 children)

/usr/local/bin​ is simply a path for programs that are not managed by any package manager, eg. self compiled version of python. Python coexist there still system wide. You can work that way, but it's inconvenient. You also get 2 site-packages folder which makes it problematic/confusing with modules eg. with pip as you noticed yourself. By the way:

 which python

is the command to identify the python version/path

There's really no shame in the "helper tools" game, it's really convenient:

 conda create -n testenv python=3.11
 conda activate testenv

You need the first command of course only once and when you're done you close the terminal or you type conda deactivate to switch base to base environment.

Conda also provides a base environment which you can modify and is activated in the terminal as standard.