Skip to main content
 首页 » 编程设计

python之使用 Anaconda 安装 PyX 失败

2025年05月04日17zhwl

我在安装 python 模块 PyX 时遇到问题,我在使用 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 install,但它找不到它。我也搜索了一下,一无所获。然后我尝试了 pip allow external - 不适用于 Cygwin 或 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 下)?非常感谢您。

请您参考如下方法:

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

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

$ 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 

然后就成功了。谢谢。