1.直接下載dmg文件進行安裝
2.運行項目時遇到了這個問題“no python interpreter configured for the project的提示”
在新建python項目的時候,出現no python interpreter configured for the project的提示,
中文意思是沒有解析器,這可能是安裝python之后,
沒有添加系統環境變量的原因,導致PyCharm找不到解析器
解決方案
這句話的意思是沒有為這個項目配置Python解釋器
既然錯誤信息是沒有解釋器,那么我們加上解釋器不OK了
第一步,點擊上圖右側的configure Python interpreter,彈出如下界面
mac自帶python2.7路徑
mac安裝python3.8路徑選擇:/usr/local/bin/python3.8
打開終端輸入python顯示自帶的python安裝版本
輸入python3顯示安裝的版本,輸入exit()進行退出python端。
參考:
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