I need to pass a flag of --no-deps
to one of my packages in my requirements.txt file to ignore the dependencies of a package. I've tried putting it above, blow, before, and after the package to no avail. I can do it by itself no problem but not within a requirements.txt file
pip install <package> --no-deps
requirements.txt
<package> --no-deps
Unfortunately there is no option for this, at time of writing.
The best you can do is freeze everything from your master environment, and use "--no-deps" when you pip install. This is OK since dependencies will be frozen already.
根据您必须编写的文档:
<package> --install-option="--no-deps"
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.