我的操作系统是ubuntu 14.04这是我的代码
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"
当我导入其他模块(如随机)时,没有任何问题。
但是当我用SublimeREPL在Sublimetxt3中运行此代码时(我之前将其设置为运行python3),没问题
那么问题出在哪里呢?。?THX!!
通过将配置更改为:
'runner':
'scopes':
'python':'python3'