-
-
Notifications
You must be signed in to change notification settings - Fork 423
Commands not available when using --system-site-packages
#62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have the same issue with |
any thoughts? |
This is strange. I am suddenly getting this as well. Used to work fine (minus updates of homebrew python modules). |
Just thought I'd mention I solved both problems above (wrong system python and pip etc not found) by installing in the following way: |
Thanks, it works for me. Wonder why it is not the default.
edit, it did not solve the problem. I can run |
Even though I installed something by |
@randy3k I would not use @bobby-chiu I would undo those copies. It seems you got ipython confused by copying the binary into every single pyenv version (not just virtualenv). It should not be necessary to copy modules directly to the python directory (the only case I can think this is needed is with the vips image bindings). I would then uninstall that virtualenv and start again. In both cases, always make sure that the system is seeing the correct python (by running python directly and by doing a simple I haven't had any issues since. Its quite stable. The only issues I can see anyone having is the fact that pyenv does not compile python with shared libraries by default (this will affect certain modules, but not ipython), but that is covered elsewhere in the forum. |
@joaoponceleao I have reinstalled both pyenv and virtualenv, and checked python and pyenv path, but it is still not worked. Actually, all the exetuable commands are unable to be inheried by |
Sorry @bobby-chiu but I don't think I can be much more help. Pyenv is rock-solid (except when it breaks, in which case it collapses entirely - it likes to be on either extreme). I will say the following though. You seem to insinuate that nothing from the system python works inside the virtualenv, but otherwise everything is normal? If thats the case its a bit strange, and maybe its time for the developer to get involved. @yyuu any thoughts? |
@joaoponceleao Sorry for delay. At least for now, pyenv/pyenv-virtualenv won't work perfectly for python executables installed in system even if it is configured to use a virtualenv created with
As a workaround for latter case, I'd recommend to set $ pyenv virtualenv --system-site-packages system foo
$ pyenv shell foo system |
It might be better to install a pyenv |
I am still seeing this issue in 20151006. I can see from the commit that 21239c9 made it into that tag. Am I doing something wrong?
|
@therealjessesanford umm. plz let me know some information for investigation.
|
|
However maybe I am doing it all wrong? I assumed that --system-site-packages switch allows me to avoid having to specify both the "tornado" env and the "3.5.0" env (that it is based on) in my .python-version file. Is that correct? What is the purpose of --system-site-packages if I still need to have them both in that file? |
Your adsumption is correct. '--system-site-packages' is a feature of virtualenv, and it makes you to avoid having multiple versions in your .puthon-version. Something is not working at least on your installation, though. |
Umm. It looks like the hook I prepared in 21239c9 isn't working well with virtual environment created with Meanwhile, using |
@therealjessesanford Pushed 521576e. This should work with virtual environment created with |
Sorry for the delay. I just installed the homebrew HEAD version which I imagine would contain this latest patch and I am still having trouble:
|
I installed as a plugin by doing the git clone into the ~/.pyenv/plugins folder and things are working now. However it definitely does not work when using any version of pyenv-virtualenv installed with homebrew. |
Umm. I fixed a problem in installation script in c61fdaa. brew installation should work now. |
So, installing virtualenv resolves the issue in #139. However, I'm still hitting this issue, where the
This occurs in the same conditions as the examples in this issue. |
It's just working even with virtual environments created with
|
It works with venv. But venv has the problem where Virtualenv resolves that issue, and by itself actually works well (freezing works and binaries work). Pyenv-virtualenv with the virtualenv backing doesn't seem to work for me. |
@yyuu I've installed pyenv through homebrew. Hope this isn't a dumb question, but how do I check out a specific commit this way? |
Pulled in latest release. Works as intended now. |
Got the same issue creating virtualenv with |
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: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?
The text was updated successfully, but these errors were encountered: