Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade packages versions using project requirements file in PyCharm 3.1.1

Tags:

python

pycharm

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.

like image 435
Bula Avatar asked Feb 21 '14 11:02

Bula


People also ask

How do you Install all packages in requirements txt in PyCharm?

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.

How do I Install a package using requirements txt?

Use the pip install -r requirements. txt command to install all of the Python modules and packages listed in your requirements. txt file.

Can I upgrade pip in requirements txt?

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):


1 Answers

This was solved in a later version of PyCharm.

like image 173
sorin Avatar answered Nov 15 '22 01:11

sorin