如果 python 包依赖于外部库,我们可以这样做:
from setuptools import setup
setup(name='funniest',
version='0.1',
description='The funniest joke in the world',
url='http://github.com/storborg/funniest',
author='Flying Circus',
author_email='flyingcircus@example.com',
license='MIT',
packages=['funniest'],
install_requires=[
'markdown',
],
zip_safe=False)
如果我想在 install_requires
中安装包的预发布版本,我应该怎么做?我在 setuptools
中找不到任何标志或命令,可以这样做吗?
在install_requires
中安装不稳定的预发布版本包的解决方案是什么?
最佳答案
明确声明版本有效。
install_requires=[
'marshmallow>=3.0.0b11'
]
关于python - 如何在 setup.py install_requires 部分安装预发布的 python 包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46906274/