pipenv 安装给出 "pew is not in your PATH"

pipenv install gives "pew is not in your PATH"

我有 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

如何解决路径问题?

sudo -H pip3 install pew 修复了问题

卸载 virtualenvpipenvpew

然后,按照以下步骤操作:先安装 virtualenv,然后安装 pew,然后使用简单的命令 pip install.

安装 pipenv