【发布时间】:2018-08-05 18:49:02
【问题描述】:
我使用以下方式升级了 pip:
> pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Could not install packages due to an EnvironmentError: [Errno 39] Directory not empty: 'commands'
现在它正在使用来自/usr的系统点子
如何在我的 conda 环境中取回 pip?(也许无需重新安装 env)
我在激活环境后尝试过
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
但这只是给出了同样的错误
【问题讨论】: