提问人:forestbat 提问时间:9/20/2022 更新时间:9/20/2022 访问量:83
如何解析python包的依赖项?
How to resolve dependents of a python package?
问:
在这个问题之后,我将其添加到我的 setup.py 中:
install_requires=['pytest>=7.1.3','setuptools>=63.4.1','click>=8.1.3','geopandas>=0.11.1','bidict>=0.21.2','multidict>=6.0.2','networkx>=2.8.6','pandas>=1.4.3','shapely>=1.8.4'],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
'Programming Language :: Python :: Implementation :: PyPy',
],
但是,powershell仍然告诉我这条消息:
PS C:\Users\MyUserName> pip install -i https://test.pypi.org/simple/ dijkstra-conda==45097613
……
Looking in indexes: https://test.pypi.org/simple/
Collecting dijkstra-conda==45097613
Using cached ……dijkstra_conda-45097613-py2.py3-none-any.whl (9.6 kB)
ERROR: Could not find a version that satisfies the requirement pytest>=7.1.3 (from dijkstra-conda) (from versions: 0.0.0.dev1)
ERROR: No matching distribution found for pytest>=7.1.3
PS C:\Users\MyUserName> pip install -i https://test.pypi.org/simple/ dijkstra-conda==45097613
……
Looking in indexes: https://test.pypi.org/simple/
Collecting dijkstra-conda==45097613
Using cached ……dijkstra_conda-45097613-py2.py3-none-any.whl (9.6 kB)
ERROR: Could not find a version that satisfies the requirement geopandas>=0.11.1 (from dijkstra-conda) (from versions: none)
ERROR: No matching distribution found for geopandas>=0.11.1
那么如何解决这个问题呢?
答:
0赞
forestbat
9/20/2022
#1
我不应该从 testpypi 下载,如果你想获取包,请使用 pypi。
geopandas 必须从 conda 安装。
评论