Mac下導入pytest報錯 No module named pytest

import pytest 報錯,提示No module named pytest 找不到pytest模塊 解決方法:安裝pytest pycharm --Preferences 找到project點擊Porject Interpreter 右側列表是當期已經安裝的內容,這個圖是安裝後截屏所以已經包含了pytest,沒安裝的在右側列表查不到 點擊+號 在彈出框裏面搜索pytest,選中後點擊安裝
相關文章
相關標籤/搜索