2
我的操作系統是Ubuntu的14.04 這裏是我的代碼不能在原子亞軍導入urilib.request
from urllib.request import urlopen
html=urlopen("https://github.com/")
print(html.read())
而且在原子亞軍ATOM我得到這個
Traceback (most recent call last):
File "/home/ryan/PYTHON/runnertest.py", line 1, in <module>
from urllib.request import urlopen
ImportError: No module named request
我有像這樣設置ATOM的配置
runner:
python: "/usr/bin/python3"
當我導入像random這樣的其他模塊時,沒有什麼不對。
但是當我運行這段代碼Sublimetext3與SublimeREPL(我將它之前運行python3)這是確定的
那麼是什麼問題?。? THX !!