简体   繁体   中英

setup.py doesn't see my requirements.txt

Try

pip install tornado-botocore

it says:

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

Code inside setup.py:

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


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

Any thoughts on this?

requirements.txt添加到MANIFEST.in

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM