setup.py没有看到我的requirements.txt

时间:2014-10-11 20:45:28

标签: python setuptools setup.py

尝试

pip install tornado-botocore

它说:

pip.exceptions.InstallationError: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

setup.py中的代码:

REQUIREMETS = [str(r.req) for r in parse_requirements('requirements.txt')]


setup(
    ...
    package_data={'': ['requirements.txt']},
    install_requires=REQUIREMETS,
)

对此有何想法?

1 个答案:

答案 0 :(得分:5)

requirements.txt添加到MANIFEST.in