今天我需要使用pylab模塊 但是報錯:No module named 'pylab’
上網(wǎng)找了很多的方法
sudo apt-get install python-numpy python-scipy python-matplotlib
和
sudo apt-get install python3-numpy python3-scipy python3-matplotlib
都不能解決我的問題,因為我所使用的sublime text的python解釋器地址設(shè)置在anaconda3/bin中,所以我必須在anaconda環(huán)境下安裝numpy和scipy和matplotlib
因此我嘗試使用命令
conda install numpy
conda install scipy
conda install matplotlib
終于解決問題
|