Pip知道pyx包:
$ pip search pyx
PyX - Python package for the generation of PostScript and PDF files
尝试安装时出现错误:
$ pip install pyx
Collecting pyx
Could not find any downloads that satisfy the requirement pyx
Some externally hosted files were ignored as access to them may be unreliable (use --allow-external pyx to allow).
No distributions at all found for pyx
我遵循错误消息并使用--allow-external pyx
,但得到了一个不同的错误:
$ pip install --allow-external pyx
You must give at least one requirement to install (see "pip help install")
如何使用pip安装pyx软件包?
您需要告诉pip允许外部pyx包和实际安装它。
pip install --allow-external pyx pyx
按照这个顺序编写,它看起来是多余的,但要安装的程序包名称与--allow-external
选项是分开的。
好吧,我也遇到了同样的问题,但我使用给定的命令解决了这个问题。
下面提到的命令适用于python2
sudo pip安装pyx==0.12.1