gpt4 book ai didi

python - 如何从外部托管源 pip 安装 pyx 包?

转载 作者:行者123 更新时间:2023-11-28 17:37:20 26 4
gpt4 key购买 nike

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

按照这个顺序写,看起来有 pip 多余,但是要安装的包名和--allow-external选项是分开的。

关于python - 如何从外部托管源 pip 安装 pyx 包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29127340/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com