python3 Does Not Recognize Packages Installed With pip

Overview

Some users may be seeing an issue where a python3 shell in your workflow does not recognize packages installed via pip in a previous bash step when using a newer xCode version. This is because by not using bash, you are bypassing the path we set in the bashrc and eval "$(pyenv init -)"  so it will default to the system python which is different. You are installing the pip packages into the pyenv python, then using the system python so those packages don’t exist in the context of the system python.

 

Solution

You can address this by simply running the

pyenv global system

command to set the pyenv to use the system python before installing packages.

 

Additional Resources:

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.