I know that this is doable from the command line and I've been using it, but since location of project's requirements.txt
file can be defined in PyCharm I wonder how does PyCharm use this knowledge?
Is there a way to install requirements from that file using PyCharm or to update file if the package is installed or both?
Edit: Problem is that PyCharm does suggest installation of missing dependency and update of requirements.txt
file as stated in docs here and here, but it does not suggest an upgrade if the version is not equal to the one stated in requirements file using package==ver
or package>=ver
.
Press Ctrl+Alt+S to open the IDE settings and select Tools | Python Integrated Tools. In the Package requirements file field, type the name of the requirements file or click the browse button and locate the desired file. Click OK to save the changes.
Use the pip install -r requirements. txt command to install all of the Python modules and packages listed in your requirements. txt file.
Pip can be used to upgrade all packages on either Windows or Linux: Output a list of installed packages into a requirements file (requirements. txt):
This was solved in a later version of PyCharm.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With