【发布时间】:2017-02-03 06:40:07
【问题描述】:
我正在使用conda(anaconda 2)。在安装anaconda之前,我的Ubuntu16.04已经安装了pip。我最近使用pip install virtualenv 安装了virtualenv。我尝试在我的虚拟环境中安装 coala 时执行了以下步骤。
- 使用
virtualenv venv创建一个新的虚拟环境 - 使用
source activate path/to/activate激活环境 - 克隆
coala存储库。 - 在存储库中运行
pip3 install -e .
毕竟,我从coala 收到以下错误:
There is a conflict in the version of a dependency you have installed and the requirements of coala. This may be resolved by creating a separate virtual environment for coala or running `pip install "yapf~=0.14.0"`. Be aware that the latter solution might break other python packages that depend on the currently installed version.
我已经在virtualenv 中,所以我尝试按照以下命令安装yapf:pip install "yapf~=0.14.0"。之后,当我检查我的pip list时,它仍然显示yapf (0.15.2),为了解决这个问题,我做了:
pip uninstall yapfpip install "yapf~=0.14.0"
现在当我检查我的pip list 时,我得到了想要的结果。但是,错误仍然存在。它仍然显示相同的依赖错误。我无法理解发生了什么?哪个pip 正在安装什么和在哪里,conda 在幕后做什么,virtualenv 与conda 的行为如何,最重要的是,为什么会出现此错误以及如何解决?
【问题讨论】:
-
你不应该混用
virtualenv和 conda 环境——它们是非常不同的东西。你的$PATH的价值是多少? -
@darthbith 是的,我卸载了
conda并使用virtualenv来工作。conda打破一切。
标签: pip virtualenv conda