使用 Anaconda 安装 PyX 失败
Fail to install PyX using Anaconda
我在安装 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
然后就成功了。谢谢
在撰写本文时,使用 --allow-external
标志将产生以下弃用消息:
DEPRECATION: --allow-external has been deprecated and will be removed
in the future. Due to changes in the repository protocol, it no longer
has any effect.
执行 pip install pyx==0.12.1
应该可以。
在 OS X 上,您可能会收到以下错误:
error: could not create '/Library/Python/2.7/site-packages/pyx':
Permission denied
使用 --user
标志应该允许您安装包:
pip install pyx==0.12.1 --user
我解决了安装PyX的问题如下:
- 启动 anaconda 导航器,
- 启动 IPython QTConsole,
- 输入
pip install pyx
等待安装完成。
我在安装 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
然后就成功了。谢谢
在撰写本文时,使用 --allow-external
标志将产生以下弃用消息:
DEPRECATION: --allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
执行 pip install pyx==0.12.1
应该可以。
在 OS X 上,您可能会收到以下错误:
error: could not create '/Library/Python/2.7/site-packages/pyx': Permission denied
使用 --user
标志应该允许您安装包:
pip install pyx==0.12.1 --user
我解决了安装PyX的问题如下:
- 启动 anaconda 导航器,
- 启动 IPython QTConsole,
- 输入
pip install pyx
等待安装完成。