看板 Python 關於我們 聯絡資訊
小弟在jupyter notebook 打上 from fake_useragent import UserAgent ModuleNotFoundError: No module named 'fake_useragent' 已經在cmd中 pip install fake-useragent 安裝完成,卻還是發生找不到module的問題, 有人有經驗嗎? -- -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.249.107.152 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1520517606.A.CFA.html ※ 編輯: levenspiel (111.249.107.152), 03/08/2018 22:00:36
levenspiel: 換成IDEL可以執行 但還是有發生錯誤訊息 03/08 22:48
neil987: 有確定裝進jupyter的python裡面嗎 03/09 00:23
phoenixcx: pip install fake_useragent ? 03/09 11:50
s860134: 對症下藥第一招: 在 cmd 下 "where pip" 03/10 00:43
s860134: 你會發現你的 pip 的路徑根本和 jupyter 八竿子打不著 03/10 00:43
s860134: 隔空抓抓藥你是裝 anaconda 之類的,又灌了官方 python 03/10 00:45
s860134: 最後會發現根本就是要用 conda 裝或是 venv 的 pip 裝 03/10 00:47