當我嘗試運行一個機器人,我在終端收到此錯誤信息:蟒蛇電報機器人 - 機器人運行錯誤
[email protected]:~/python-telegram-bot/examples$python
echobot.py
/usr/local/lib/python2.7/dist-packages/python_telegram_bot-8.0-
py2.7.egg/telegram/utils/request.py:38: UserWarning: python-telegram-
bot wasn't properly installed. Please refer to README.rst on how to
properly install.
Traceback (most recent call last):
File "echobot.py", line 8, in <module>
import telegram
File "build/bdist.linux-x86_64/egg/telegram/__init__.py", line 94, in
<module>
File "build/bdist.linux-x86_64/egg/telegram/bot.py", line 34, in
<module>
File "build/bdist.linux-x86_64/egg/telegram/utils/request.py", line
33, in <module>
ImportError: No module named ptb_urllib3.urllib3
我的Ubuntu上運行的Python 2.7,Git和電報機器人安裝。 - 我該如何解決它?
是否安裝安裝代碼'urllib3' ? – AndMar
是的,我安裝了urllib3 –
你使用virtualenv嗎?如果是的話,可能你沒有激活它 – AndMar