Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
418 views
in Technique[技术] by (71.8m points)

Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'dir:projectPathvenvScriptspython.exe'

I am using python 3.6.5 with PyCharm.

While trying to install any package, it gives the error "Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:projectPathvenvScriptspython.exe'"

Project path and actual python installed paths are different.

In settings of PyCharm, pip version is 19.0.3 and latest version is 19.3.1

Also, "python -m pip --version" from command prompt says pip version is 9.0.3

What do I do?

Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I imagine that you have more than one Python installed in your system. you should go to Pycharm --> file> settings> project>project interpreter.

you should find the other Python instance on your system and try to change your interpreter to that one. if it does not appear in the list click on the button that looks like star in front of the project interpreter.

I had the same problem. I realized that I installed one python by myself and another is installed while installing PyCharm.

After changing my interpreter I do not receive that error anymore.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...