DEV Community

Ferd
Ferd

Posted on

Python default location

How do I change the default python path on macOS - Catalina. I have python3 installed in /usr/local/lib but I am not how to properly change the path from /usr/local/bin. Can someone help me? Thanks

Oldest comments (2)

Collapse
 
nicolaerario profile image
Nicola Erario • Edited

Leave it in peace where is; then in your project path do: python3 -m venv .venv.
this is your new (per project) python path and you can make love with it without OS complaining.

Collapse
 
mateuszjarzyna profile image
Mateusz Jarzyna

Use virtualenv for each project. Or if you really want /usr/local/lib you can create soft link. Changing the path may be stupid idea