pipenv install shows "ERROR: virtualenv is not compatible with this system or executable"
See original GitHub issueWhen I type pipenv install, it shows:
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.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
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.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.