Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I update pip in PyCharm when I have two versions of python?

I have installed Python 2.7 and Python 3.5 on Windows 10. I use python 2.7 in my current PyCharm project and the project's python interpreter was set to python 2.7. Now I open PyCharm Settings and I want to update my pip of python 2.7.

enter image description here

The pip version was 8.1.1 and I clicked update, expecting it to be updated to the latest version. However, after it hinted "update successfully", I noticed that the version of pip was still 8.1.1. Then I realized that PyCharm may use my default pip version in Windows command line--which is the python3.5's pip.

How to solve this problem? Is it a bug?

like image 422
guo Avatar asked Dec 18 '16 08:12

guo


People also ask

How do I update pip to a specific version?

Upgrade Or Downgrade To Specific Pip Version If you want to upgrade or downgrade your version of pip to a specific version on a Mac, you can do this by adding a pip==<version> flag to the end of your update command.

How do I update pip to latest version of Python?

Updating Pip b is available.” You can run “pip install --upgrade pip” to install and use the new version of pip. To update pip2 or pip3 using this command, only replace the first pip with the pip version.

How do I upgrade Python in PyCharm?

Configure the update policy To manage the PyCharm update policy, open Settings/Preferences Ctrl+Alt+S and select Appearance & Behavior | System Settings | Updates.

How do I change Python version in PyCharm project?

Change the Python interpreter in the project settingsPress Ctrl+Alt+S to open the IDE settings and select Project <project name> | Python Interpreter. Expand the list of the available interpreters and click the Show All link. Select the target interpreter.


1 Answers

To update pip on pycharm:

  1. Open project settings (File > Settings...) (preferences on Mac)
  2. Project > Project Interpreter
  3. Press the + button
  4. Type "pip" in the top search box
  5. In the lower right corner choose "specify version"
  6. Choose your version and press Install Package

image showing the screen

like image 103
Billion Shiferaw Avatar answered Oct 24 '22 13:10

Billion Shiferaw