How to use Homebrew while retaining previouslyy installed system Python modules #4456
Unanswered
doctorfree
asked this question in
Linux
Replies: 2 comments 1 reply
-
You can set https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH to look in additional locations. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Fixing up |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Additional Info
Output of
brew config
Output of
brew doctor
Description of issue
Some Homebrew formula install Python3 as a dependency. My understanding is the Homebrew formula require Homebrew Python3 and cannot use the system Python3. However, previously installed python modules are no longer found as the Homebrew python3 appears first in the PATH after configuring the shell initialization with
brew shellenv
.I've read some folks have altered the PATH so Homebrew locations come after system entries in order to pickup the system python3. Is this an acceptable solution? Is there a recommended approach to preserving existing Python modules when installing Homebrew?
I like Homebrew and really want to use it but if it cannot co-exist with an existing system Python3 then it may not be of practical use.
Beta Was this translation helpful? Give feedback.
All reactions