11

我有 Mac OS X El Capitan,安装了 python 3.6、pip、pipenv。无法使 pipenv 工作:

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.

我检查了皮尤 - 它在/Users/kosteg/Library/Python/3.6/bin

这是我的 ~/.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

如何解决路径问题?

4

2 回答 2

25

卸载和。virtualenv_pipenvpew

然后,按照这个:首先安装virtualenv,然后pew,然后pipenv使用简单的命令pip install

于 2017-11-06T19:40:14.970 回答
7

sudo -H pip3 install pew解决问题

于 2017-09-19T19:44:35.093 回答