我的setupfile
setup(
name = 'arkan',
version = '1.0a',
packages=find_packages(exclude=["contrib", "docs", "test*"]),
install_requires=['demjson', 'simplejson', 'pytz', 'datetime', 'Request', 'urlopen']
)我提交了pypitest (https://testpypi.python.org/pypi)。当我尝试使用以下方法安装我的软件包时:
pip install -i https://testpypi.python.org/pypi arkan
Collecting arkan
.....
Collecting demjson(from arkan)
Could not find a version that satisfies the requirement demjson(from arkan) (from versions: )
No matching distribution found for demjson(from arkan)我对所有的包裹都有同样的错误。我也尝试添加版本(demjson>=2.2.0),但没有成功。
但是,当我从命令行安装demjson时,它会正确安装。我认为install-requires只是在每个依赖项上运行pip install。我做错了吗?
我尝试在requirements.txt上添加这些依赖项,但是pip install完全忽略了整个文件。
如何在setup.py文件上指定依赖项,以便正确安装?
发布于 2017-05-26 20:05:59
在demjson回购中似乎缺少了很多包,比如testpypi。
https://stackoverflow.com/questions/43730107
复制相似问题