python learning (5) -python installation --for view python3 on Mac mac various installation path

1. Download dmg file to install

2. encountered this problem when running the project "no python interpreter configured for the project hints"

When the new python project, prompted no python interpreter configured for the project, and

Chinese meaning is not the parser, which may be after installing python,

There is no reason to add the system environment variables, resulting in the parser can not find PyCharm

 

solution

What this means is not configured Python interpreter for this project 
since the error message is no interpreter, then we add the interpreter is not OK the 
first step, click on configure Python interpreter right side of the menu, the following interface

 

 

mac comes python2.7 path

mac installation python3.8 Path Selection: /usr/local/bin/python3.8

 

 

 Open display terminal type python version Installation carrying python

Enter python3 display the installed version, enter exit () python conduct exit end.

 

 

 

 reference:
1.mac chromedriver的安装目录:/usr/local/bin

2.mac htmltestrunner的存放目录:命令行下 import sys sys.path
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7

3.查看mac site-packages的路径:命令行下 import sys sys.path
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages

 

1.mac chromedriver的安装目录:/usr/local/bin

2.mac htmltestrunner的存放目录:命令行下 import sys sys.path
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7

3.查看mac site-packages的路径:命令行下 import sys sys.path
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages

Guess you like

Origin www.cnblogs.com/yiyaxuan/p/12331868.html