简体   繁体   English

NoPackagesFoundError:当前Win64通道中缺少包: - freetype 2.5.5 1

[英]NoPackagesFoundError: Package missing in current Win64 channels: - freetype 2.5.5 1

I am trying to install a Python Environment using a yml file. 我正在尝试使用yml文件安装Python环境。 However I run into the following error : 但是我遇到以下错误:

NoPackagesFoundError: Package missing in current Win64 channels: 
                      - freetype 2.5.5 1

I am using the following code to install the environment using Anaconda 2 (after putting the .yml file in the current directory for Python.) 我使用以下代码使用Anaconda 2安装环境(将.yml文件放在Python的当前目录中之后。)

conda env create -f environment.yml 

The yml file is as follows taken from the url ( https://github.com/zooniverse/Data-digging/blob/master/example_scripts/basic_project_stats.yml ) 从url获取的yml文件如下( https://github.com/zooniverse/Data-digging/blob/master/example_scripts/basic_project_stats.yml

name: python279_volcrowe
channels:
- defaults
dependencies:
- cycler=0.10.0=py27_0
- freetype=2.5.5=1
- jpeg=8d=1
- lcms=1.19=0
- libpng=1.6.22=0
- matplotlib=1.5.1=np110py27_0
- numpy=1.10.1=py27_0
- openssl=1.0.2g=0
- pandas=0.17.1=np110py27_0
- pil=1.1.7=py27_2
- pip=8.1.1=py27_0
- pyparsing=2.1.4=py27_0
- pyqt=4.11.4=py27_3
- python=2.7.11=0
- python-dateutil=2.4.2=py27_0
- pytz=2015.7=py27_0
- qt=4.8.7=3
- readline=6.2=2
- requests=2.9.1=py27_0
- setuptools=20.3=py27_0
- sip=4.16.9=py27_0
- six=1.10.0=py27_0
- sqlite=3.9.2=0
- tk=8.5.18=0
- wheel=0.29.0=py27_0
- zlib=1.2.8=0
prefix: /Users/Public/Anaconda2/envs/python279_volcrowe

I was not sure what the last line in the yml file which is 'prefix' is doing, but I changed it to the directory where the environments in my computer reside. 我不确定yml文件中的最后一行是'prefix'是做什么的,但是我把它改成了我计算机中的环境所在的目录。

As mentioned in a similar post I tried installing a win 64 channel using: 正如在类似的帖子中提到的,我尝试使用以下方法安装win 64频道:

conda config --add channels bioninja

I am able to add the bioninja thing but after it when I run the following command: 我可以添加bioninja的东西,但在运行以下命令后:

conda env create -f environment.yml

It gives me the same Win64 channel error as earlier. 它给我带来了与之前相同的Win64通道错误。

Can anyone please help me solve this issue ? 有人可以帮我解决这个问题吗?

It happened to me when I downloaded the wrong .yml file. 当我下载错误的.yml文件时,它发生在我身上。 I was working on windows and i run: 我在Windows上工作,我跑:

conda env create -f aind-environment-unix.yml conda env create -f aind-environment-unix.yml

I have downloaded the correct file and run: 我已经下载了正确的文件并运行:

conda env create -f aind-environment-windows.yml conda env create -f aind-environment-windows.yml

and i solved the problem 我解决了这个问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM