問題:jupyter 顯示 No module named***
解決方案1
- 在安裝前加上!,按照一下方法安裝
!pip install pulp
再進(jìn)行導(dǎo)入
import pulp as pl
解決方法2
- 在jupyter notebook中輸入一下內(nèi)容,查找到正在使用的python的路徑
import os
os.sys.executable
路徑如下圖:文章來源:http://www.zghlxwxcb.cn/news/detail-507439.html
- 然后使用cmd,輸入路徑并安裝包
D:\\Anaconda\\python.exe -m pip install pulp
- 在jupyter種導(dǎo)入包
import pulp as pl
參考文獻(xiàn)
解決jupyter 中ModuleNotFoundError: No module named xxx
jupyter Notebook顯示“No module named numpy” 但anaconda已安裝numpy 解決方法文章來源地址http://www.zghlxwxcb.cn/news/detail-507439.html
到了這里,關(guān)于jupyter 顯示 No module named**的兩種方法的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!