简体   繁体   English

在Python 3.6(Anaconda)中使用Chaco

[英]Using Chaco in Python 3.6 (Anaconda)

I'm here because I've tried to install the Chaco module on Anaconda and it doesn't work. 我在这里是因为我试图在Anaconda上安装Chaco模块,但是它不起作用。 First I've tried the simple command: 首先,我尝试了简单的命令:

conda install -c anaconda chaco=4.5.0

but it returns package specification problems: 但它返回包装规格问题:

UnsatisfiableError: The following specifications were found to be in conflict:
  - chaco 4.5.0* -> enable 4.5.1 -> numpy 1.10* -> python 2.7* -> openssl 1.0.1*
  - python 3.6*
Use "conda info <package>" to see the dependencies for each package

Then I tried with the Python 2.7 version of Anaconda, but I still have problems with PyQt4 which was uninstalled because of PyQt5. 然后我尝试使用蟒蛇2.7版本的Anaconda,但是PyQt4仍然有问题,该问题由于PyQt5而被卸载。 I created an environement in PyQt4 but the module was still not found. 我在PyQt4中创建了一个环境,但是仍然找不到该模块。 I wish I could work with Chaco in Python 3.6 but I don't know what to do... 我希望我可以在Python 3.6中使用Chaco,但我不知道该怎么做...

Anaconda does not currently provide Chaco packages for Python 3. The latest version of Chaco supported by Anaconda is 4.5: https://anaconda.org/anaconda/chaco Anaconda当前不提供适用于Python 3的Chaco软件包。Anaconda支持的最新版本的Chaco是4.5: https : //anaconda.org/anaconda/chaco

As you can see here, Python 3 support wasn't added to Chaco until version 4.6 in December of 2016: https://github.com/enthought/chaco/releases/tag/4.6.0 如您所见,直到2016年12月的4.6版本才向Chaco添加了对Python 3的支持: https : //github.com/enthought/chaco/releases/tag/4.6.0

You can install Chaco in Python 3.6 using pip install chaco , but you'll also need numpy, setuptools, enable, and likely Visual Studio. 您可以使用pip install chaco在Python 3.6中安装Chaco,但您还需要numpy,setuptools,enable和可能的Visual Studio。

I'm not sure why you're having difficulty installing Chaco on a Python 2.7 Anaconda environment, but Enable doesn't support PyQt 5, you'll have to use PyQt 4: https://github.com/enthought/enable#prerequisites 我不确定您为什么在Python 2.7 Anaconda环境上安装Chaco时会遇到困难,但是Enable不支持PyQt 5,您必须使用PyQt 4: https : //github.com/enthought/enable#先决条件

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

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