簡體   English   中英

如何解決 python package 的家屬?

[英]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

那么如何解決這個問題呢?

我不應該從 testpypi 下載,如果你想獲取包,請使用 pypi。

並且 geopandas 必須從 conda 安裝。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM