程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

pip does not exist in Mac, Python version and pycharm do not match

編輯:Python

As shown in the picture, I clearly have the python3.8 version, but my command line tells me that my python version number is 2.x

That's fucking outrageous, right?

The reason is: the 2.x version of Python is the one that comes with the computer.

We just need to find the python that pycharm downloaded when it is downloaded.

How to find it: Generally speaking, if you install pycharm as default, then the location of python 3.x is likely to be in: /usr/local/bin/ folder

If you are not sure, you can go to pycharm's preference to find out where it is

ref: About the various pitfalls of python and pycharm in the mac environmentKind of pit - CodeAntenna

Then, what I mainly want to say is that we are still on the command line: but I want to find out the location of python 3.x or similar related pip and what to do:

The command changed from python to python3 , and the pip command changed from pip to pip3

As above, and then pip sometimes needs to be updated. If you update, remember the command is also:

pip3 install --upgrade pip

ref : python - How to upgradepip3? - Stack Overflow


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved