我假设pip和conda都是包管理器,并且检查安装在环境中的包的一致性!然而,在我的例子中,我在python=3.6上有一个python=3.6列表。在我的conda虚拟环境中,我一个接一个地安装它们.奇怪的是,当在anaconda.org通道中找到一些软件包并用conda安装它们时,conda会抱怨!例如,当我试图安装statistics=1.0.3.5时,我在终端上得到了以下消息:
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python i
有时,尽管没有实际的版本冲突,但pip仍然抱怨相互冲突的依赖关系,例如,即使在将elastic-apm的特定版本从constraints.txt中完全删除之后(只是将其留在mypackage的setup.py中),它仍然失败如下:
ERROR: Cannot install elastic-apm because these package versions have conflicting dependencies.
The conflict is caused by:
mypackage 1.2.3 depends on elastic-apm
The user requ
我安装了Python2.7,然后尝试通过scrapy安装pip。它没有工作,所以我删除了scrapy,并试图再次通过pip安装。当我这样做时,我会得到以下错误:
src/lxml/lxml.etree.c:192359: error: âxsltDocDefaultLoaderâ undeclared (first use in this function)
src/lxml/lxml.etree.c:192368: error: âxsltDocLoaderFuncâ undeclared (first use in this function)
src/lxml/lxml.etree.