利用命令行在Anaconda Prompt 安装PIL
利用命令conda install PIL出现问题如下:
(D:\Program Files\Anaconda3) C:\Users\lee>conda install PIL
Fetching package metadata ...........
Solving package specifications: . UnsatisfiableError: The following specifications were found to be in conflict: - pil -> python 2.6* - python 3.5* Use "conda info <package>" to see the dependencies for each package.
根据错误提示:pil按照默认源的配置是没有提供依赖Python3.5的包
解决方案:
1.创建一个新的Python2.6环境安装
conda create -n python2.6 pil
activate python2.6 #进入该环境
conda install pil #安装pil包 deactivate #退出该环境
2.创建一个新的基于python3.5 pil 的环境
conda create -n python3.5 -c menpo pil
activate python3.5 #进入该环境 conda install pil #安装pil包 deactivate #退出该环境