看板 Python 關於我們 聯絡資訊
嗨 最近有了一台linux伺服器 所以想要把我的telegram bot放上去跑 我在安裝完 pip install urllib3後 我要執行時發現會跑出這樣的錯誤 from urllib3.connection import HTTPConnection ImportError: No module named connection 可是我網路上查 urllib3 裡面真的有這個module呀!! 我找了好久都解不了這個問題 拜託各位了!謝謝大家! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.138.25.222 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1482210444.A.F57.html
kenduest: 你系統有混用多個 python 程式版本嗎?12/20 17:00
kenduest: 有確認你的 telegram bot 是呼叫使用哪邊的python?12/20 17:01
uranusjr: 樓上, 注意錯誤訊息是沒有 connection 不是 urllib312/20 17:10
kenduest: 是的。剛剛測試手動安裝上可以執行該敘述,正常import12/20 17:35
kenduest: 所以原貼測試一下 python 執行一下可以手動 import 嗎?12/20 17:36
Cypresslin: urllib3.connectionpool12/21 17:36
Cypresslin: 有可能是urllib3比較舊,所以沒有connection12/21 17:40
回k大 裡面裝過3和2.7.6 有兩個版本 手動的話也是不行耶 也是會有一樣的錯誤 回C大 可是用--upgrade後還是有一樣的錯誤耶 不知道為什麼會這樣 ※ 編輯: HenryLiKing (114.43.72.161), 12/22/2016 07:53:55
Cypresslin: 你看一下上面這篇,看來urllib3 1.14之後的版本有 12/22 11:49