不满意的错误:发现以下规格存在冲突: - pil - > python 2.6 * - python 3.6 *

时间:2018-05-28 07:18:34

标签: python anaconda python-import

我试图使用anaconda安装PIL,而我正在我的conda环境中。

在conda环境中:

conda install pil

但是我收到以下错误

UnsatisfiableError: The following specifications were found to be in 
conflict:
 - pil -> python 2.6*
 - python 3.6*

我的conda环境中安装了python 2.7和3.6。当我尝试在python中导入PIL时,当前未安装importError

我尝试了以下内容:

conda uninstall pil

conda remove pil

对于我得到的两个

PackageNotFoundError: Package(s) is missing from the environment:
        pil

我该怎么办?

1 个答案:

答案 0 :(得分:1)

您可以安装select * from (\ select \ st.station_type_id as "id", \ case when \ ( \ mast.station_type_desc is null \ ) \ then st.station_type_desc else mast.station_type_desc end as "description" \ from station_type st left outer \ join master_agent_station_type mast on st.station_type_id = mast.station_type_id \ and mast.party_id='%s' where st.is_active='Y'\ ) as result ,它同时支持Python 2和3(请查看supported versions here

pillow

conda install pillow 自2009年以来已被弃用,pilpillow的积极开发分支。

因此,我建议您创建一个安装了pil而不是pillow的新环境进行测试。