Jan*_*l3r 3 python setuptools pypi
我已经完成了这个小包,我想在我的社区中分发。它现在在 test.pypi 上,当我想尝试安装它时,它给出了找不到依赖项的错误。
设置文件
...
install_requires=[
'defcon>=0.6.0',
'fonttools>=3.31.0'
]
...
Run Code Online (Sandbox Code Playgroud)
抛出这个错误
ERROR: Could not find a version that satisfies the requirement defcon>=0.6.0 (from sameWidther==0.6) (from versions: none)
ERROR: No matching distribution found for defcon>=0.6.0 (from sameWidther==0.6)
Run Code Online (Sandbox Code Playgroud)
但是当我手动安装时,它可以工作
pip install 'fonttools>=3.6.0'
pip install 'defcon>=0.6.0'
Run Code Online (Sandbox Code Playgroud)
-i URL,或--index-url URL表示“使用 URL 专门安装软件包”。通过传递-i https://test.pypi.org/simple/,您将禁止从 PyPI ( https://pypi.org/simple)搜索和下载包。要使用这两个索引,请使用--extra-index-url:
$ python -m pip install --extra-index-url https://test.pypi.org/simple/ sameWidther
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
369 次 |
| 最近记录: |