python - Pip3 packages can't be found/used by the terminal -
i'm trying use python3's built in pip3 package manager install virtualenv , django can learn more python after installing them both , trying use virtualenv, terminal throws:
zsh: command not found: virtualenv
but can see virtualenv installed on:
/library/frameworks/python.framework/versions/3.4/lib/python3.4/site-packages
i tried creating symlink virtualenv.py
/usr/local/bin
when try run virtualenv
in terminal giving me zsh: permission denied: virtualenv
i'm on os x machine. installed python 3 along side python 2.7, machine came with.
has experience problem before? i'd appreciate advice/solution guys give. in advance!
you might use bash before using zsh. , python had been updated when used zsh.
i got same problem. zsh not find python3 packages. when changed shell bash, python3 packages found.
i solved problem in way follows:
- open terminal , input command:
nano .bash_profile
copy settings in .bash_profile:
# setting path python 3.5 # original version saved in .bash_profile.pysave path="/library/frameworks/python.framework/versions/3.5/bin:${path}" export path
- input command:
nano .zshrc
paste code end of .zshrc.
(.bash_profile settings file of bash, .zshrc settings file of zsh)
- restart terminal.
- try find python3 packages, such virtualenv:
which virtualenv
you may find path of virtualenv.
Comments
Post a Comment