pipenv install gives “pew is not in your PATH”

2019-04-05 10:54发布

问题:

I have Mac OS X El Capitan, installed python 3.6, pip, pipenv. Can't make pipenv work:

pipenv install
Creating a virtualenv for this project…
Warning: it looks like pew is not in your PATH. We cannot continue until this is resolved.

I checked pew - it's in the /Users/kosteg/Library/Python/3.6/bin

Here is my ~/.bash_profile:

export PATH=/usr/local/bin:/usr/local/sbin:$PATH
export PATH=/Users/kosteg/.local/bin:$PATH
export PATH=/Users/kosteg/Library/Python/3.6/bin:$PATH
export PATH=/Users/kosteg/Library/Python/3.6:$PATH
alias python=python3
alias pip=pip3

How to fix the path issue?

回答1:

Uninstall virtualenv, pipenv and pew.

Then, follow this: first install virtualenv, then pew, then pipenv with simple command pip install.



回答2:

sudo -H pip3 install pew fixes the issue