pyenv-virtualenv: Commands not available when using `--system-site-packages`
I am trying to setup a virtualenv with --system-site-packages
to use compiled/pre-built packages, and noticed that e.g. ipython
fails to run with:
% pyenv virtualenv --system-site-packages 3.4.2 paperwork3
...
% ipython
pyenv: ipython: command not found
The `ipython' command exists in these Python versions:
...
Trying to install it skips it, because it appears to be installed already.
Could pyenv somehow handle this, especially after trying to (re-)install it?
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Reactions: 1
- Comments: 28
Commits related to this issue
- workaround for `pyvenv --system-site-packages` (#62) — committed to pyenv/pyenv-virtualenv by yyuu 9 years ago
- Fix installation script to install hook scripts as well (#62) — committed to pyenv/pyenv-virtualenv by yyuu 9 years ago
- Add missing declaration of `virtualenv_prefix` to fix looking up executables from source version (#62) — committed to pyenv/pyenv-virtualenv by yyuu 8 years ago
Just thought I’d mention I solved both problems above (wrong system python and pip etc not found) by installing in the following way:
pyenv virtualenv --system-site-packages --python=/usr/local/bin/python yourvirtualenv
obviously you should change to xx/python3 if thats the version you’re going for