无法使用Anaconda安装PyX

问题描述:

我在安装python模块PyX时遇到问题,使用pip时收到以下错误:

I'm having problems installing python modules PyX, I received the following error when using pip:

$ pip install PyX
Collecting PyX
  Could not find a version that satisfies the requirement PyX (from versions: )
  Some externally hosted files were ignored as access to them may be unreliable (use --allow-external PyX to allow).
No matching distribution found for PyX

然后我尝试了conda安装,但是找不到它.我也搜索了,什么也没找到.然后我尝试了pip allow external-在Cygwin或cmd上均不起作用:

Then I tried conda install, but it cannot locate it. I also searched and found nothing. Then I tried pip allow external - doesn't work on either Cygwin or cmd:

$ pip install --allow-external pyx pyx
Collecting pyx
  Downloading https://downloads.sourceforge.net/project/pyx/pyx/0.14/PyX 0.14.tar.gz (2.5MB)
No files/directories in c:\cygwin\tmp\pip-build-vqqlqz\pyx\pip-egg-info (from PKG-INFO)

我以前从未见过这样的错误.这里有人建议吗(最好安装在Anaconda下)?提前非常感谢您.

I've never seen such error before. Anyone here has some suggestion please (installed under Anaconda preferred)? Thank you very much in advance.

好的,这是我刚刚找到的一种解决方案.但是,我仍然无法解释以前的错误.

Okay here is one solution I just found. However, I still could not explain the previous errors.

尝试手动安装PyX后(转到本地PyX目录):

Upon trying to manually install PyX (go to the local PyX directory):

$ python setup.py install
*** Sorry, this version of PyX runs on Python 3 only. ***
If you want to use PyX on Python 2, please use one of our old releases up to PyX 0.12.x, i.e. execute something like:

   pip install pyx==0.12.1

所以我尝试了:

$ pip install  --allow-external pyx pyx==0.12.1

然后它起作用了.谢谢.

Then it worked. Thanks.