我的setup.py
中有mymainapp
的以下部分:
install_requires=[
'myapp1==0.2.0',
'myapp2==0.6.0',
...
]
以下是这两个应用程序/依赖项对应的install_requires
部分:
myapp1 0.2.0
install_requires=[
sas==1.2.0'
],
myapp2 0.6.0
install_requires=[
sas==1.6.1'
],
然后我在表演
pip wheel --find-links="wheelhouse/" --wheel-dir="wheelhouse/" .
(当然使用mymainapp
的setup.py
)
当尝试使用创建的wheelhouse
安装应用程序时
pip install --find-links=wheelhouse --no-index mymainapp
它失败,出现以下错误:
Collecting sas==1.6.1 (from `myapp2`==0.6.0->mymainapp)
Could not find a version that satisfies the requirement sas==1.6.1 (from myapp2==0.6.0->mymainapp) (from versions: 1.2.0)
考虑到它成功地安装了两个myapp1
和myapp2
作为mymainapp
的依赖项,-即创建了两个.whl
文件-为什么它找不到其中一个依赖项
(TL;DR:mymainapp
对myapp1
和myapp2
有依赖性,这反过来又依赖于同一应用程序的不同版本(sas
))
目前没有回答
相关问题 更多 >
编程相关推荐