如何从外部托管的源代码安装pyx包?

时间:2015-03-18 16:22:18

标签: python pip pyx

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包?

2 个答案:

答案 0 :(得分:2)

你需要告诉pip允许外部pyx包实际安装它。

pip install --allow-external pyx pyx

按顺序编写,似乎是多余的,但要安装的软件包名称与--allow-external选项是分开的。

答案 1 :(得分:0)

嗯,我有同样的问题,但我使用给定的命令解决了问题。

下面提到的命令是python2

sudo pip install pyx == 0.12.1