python - 如何在 setup.py install_requires 部分安装预发布的 python 包?

标签 python dependencies setuptools

如果 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/

相关文章:

python - 在字符串列表中搜索另一个列表中的任何子字符串

dependencies - TeamCity 显示快照依赖项的更改

Python包设置脚本安装二进制可执行文件

python - 使用 ipdb 而不是 pdb 和 py.test --pdb 选项

python - 如何在Python中将标题行复制到新的csv

java - 如何在依赖项目上强制安装maven?

Python 认为我的 setup.py 创建的包是一个模块而不是 python 包

Python应用跨平台分发

python - 使用explained_variance_ratio_条件将PCA投影回原始尺度

java - 如何从另一个模块调用一个java类