本文介绍了pipenv 安装给出“pew 不在你的路径中";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

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

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

这是我的 ~/.bash_profile:

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

如何解决路径问题?

推荐答案

卸载 virtualenvpipenvpew.

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

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

这篇关于pipenv 安装给出“pew 不在你的路径中";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 04:07