pipenv install gives “pew is not in your PATH”

大憨熊 提交于 2019-12-09 15:12:07

问题


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



来源:https://stackoverflow.com/questions/46308150/pipenv-install-gives-pew-is-not-in-your-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!