Skip to content
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

pipenv install shows "ERROR: virtualenv is not compatible with this system or executable" #2291

Closed
CheHaoKang opened this issue Jun 2, 2018 · 6 comments

Comments

@CheHaoKang
Copy link

CheHaoKang commented Jun 2, 2018

When I type pipenv install, it shows:
image

I googled many websites but not found any solutions.

The steps are similar to PyCon slides (compile Python, install pipenv in venv)::
1. git clone https://github.com/python/cpython.git
2. git checkout 3.6
3. mv cpython python
4. ./configure --prefix=$HOME/.local/python
5. make
6. sudo make install
7. mkdir -p ~/.local/bin ~/.local/venvs
8. ln -s ~/.local/python/python ~/.local/bin/python3.6
9. ln -s ~/.local/bin/python3.6 ~/.local/bin/python3
10. vi ~/.bashrc
alias python3='/home/deckenkang66/.local/bin/python3'
11. OPEN a new terminal
12. python3 -m venv ~/.local/venvs/pipenv
13. ~/.local/venvs/pipenv/bin/pip install pipenv
14. ln -s ~/.local/venvs/pipenv/bin/pipenv ~/.local/bin
15. pipenv --version
pipenv, version 2018.05.18
16. pipenv install

Thanks.

@uranusjr
Copy link
Member

uranusjr commented Jun 2, 2018

Where are you installing Python? It seems like you installation is broken. The compile steps are strange too—you sudo make install, which by default would link your Python executable to /usr/local/bin, but then you link your Python from ~/.local. My guess is your installing Python wrong in step 7–9. Not a problem in Pipenv.

@uranusjr uranusjr closed this as completed Jun 2, 2018
@MichaelKim0407
Copy link

I'm having a similar issue as well

@uranusjr ./configure --prefix=$HOME/.local/python would install python in ~/.local

@uranusjr
Copy link
Member

At least add your configure output or there’s nowhere to start. The error message is quite clear: Your environment is not compatible. This means you are missing something during compilation.

Please provide actionable information.

@MichaelKim0407
Copy link

I have a working python installation and everything in the standard library works correctly. The way OP installed his python is also legit and there's nothing wrong in it. I was merely pointing it out.

After some searching it's a virtualenv problem: pypa/virtualenv#1051 and by extension, a pipenv problem because it chooses to use virtualenv.
So if you want "actionable information", don't use virtualenv. But since you made clear in #15 you won't switch away from virtualenv, I guess there's no point in continuing this discussion.

@uranusjr
Copy link
Member

I am not saying the Python installation isn’t legit. Not every Python installation works with virtualenv, and since CPython does environment sniffing during compilation, it is not possible to know exactly what causes your installation to not work without knowing how your environment is configured. To provide a constructive way to proceed, you need to either provide a reliable way to reproduce the error; otherwise the maintainers can’t offer much help, since the same compilation process appears to work for many people, including myself.

@MichaelKim0407
Copy link

As I said, it's a dependency issue. If you are interested in the details, there is a link above.

I would think that the most important information for you as a package maintainer is that your dependency doesn't work for some people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants