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
选项是分开的。关于python - 如何从外部托管的源 pip install pyx 包?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/29127340/