-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
virtualenv is not compatible with this system or executable #1051
Comments
For python3 it s recommended to use |
Recommended by some. Others like the 2/3 compatibility and separation from core of virtualenv. But, is this a dup of #1050? Also, isn't conda what anaconda provides as an alternative? |
I have the same issue on Mac OS 10.12.6 and virtualenv 15.1.0:
I suspect this is due to the Anaconda installation changing the system python interpreter path to point to the Anaconda python binary, then virtualenv tries to install from there rather than the original system python binary. |
@yazabaza maybe try specifying the python executable you want to use via |
Yes, pointing to the original python interpreter fixed it. Thanks! |
I used this in ubuntu my error is How to overcome this |
@wizardboy2010 are you trying to use virtualenv with your anaconda python? If so, I thought conda was meant for envs with anaconda. If not, it's finding your anaconda python and you need to specify your regular system python instead. Anaconda seems to have put itself earlier in the $PATH so python3 points to it. |
If you are still struggling, and experiencing this issue:
Have you tried installing virtualenv with conda and trying again?
|
I also encountered this problem, my environment is anaconda python, |
in my |
I ceate virtualenv in a dir which named like
|
formula is now named just 'python'. For the homebrew version installed on Travis (which we don't autoupdate) we *should* get python3.6 with this currently. It might be the case that python3 is already installed on Travis macOS image, but need to check. We call tox with 'TOXENV=py3' so that when Travis updates its homebrew, we'll get python3.7 automatically. Finally, use virtualenv instead of venv on mac to fix tox bootstrapping issue pypa/virtualenv#1051 pre-commit/pre-commit#631 https://travis-ci.org/fonttools/fonttools/jobs/427582922#L214 fixup
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just add a comment if you want to keep it open. Thank you for your contributions. |
So I'm having the same problem but I don't think it's an Anaconda thing, I've installed Py3.5 standalone with the latest pip and virtualenv and I get the following errs: Running virtualenv with interpreter /usr/bin/python Has anyone solved this without the need for Anaconda? That's a whole set of probs I'm not willing to try at the moment |
Hmm feels like a problem with the system python of Mac. Can you replicate with the brew one, or the official one with python.org? |
@gaborbernat Hey so I finally got it, instead of using virtualenv executable use the pyvenv for Mac users! $ pyvenv --system-site-packages ./venv |
I deleted old virtualenv "my3" with command
rmvirtualenv my3
and I created new virtualenv with command
mkvirtualenv my3 -p python3
I have 3 errors:
Running virtualenv with interpreter /home/myname/anaconda3/bin/python3
Using base prefix '/home/myname/anaconda3'
New python executable in /home/myname/.virtualenvs/my3/bin/python3
Also creating executable in /home/myname/.virtualenvs/my3/bin/python
/home/myname/.virtualenvs/my3/bin/python3: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
ERROR: The executable /home/myname/.virtualenvs/my3/bin/python3 is not functioning
ERROR: It thinks sys.prefix is '/home/myname/.virtualenvs' (should be '/home/myname/.virtualenvs/my3')
ERROR: virtualenv is not compatible with this system or executable
What can I do to create new virtualenv "my3"?
P.S.
I have Ubuntu 16.04
The text was updated successfully, but these errors were encountered: