StephinChou / Pythonspider

一个简单的python爬虫,原生python+BeautifulSoup
155 stars 118 forks source link

为什么会出现这样的错误?我是初学者 #2

Open reaCodes opened 8 years ago

reaCodes commented 8 years ago

Traceback (most recent call last): File "C:\Users\reaCodes\Documents\Visual Studio 2015\Projects\Python\Python\taobaomm.py", line 3, in from spider import SpiderHTML File "C:\Users\reaCodes\Documents\Visual Studio 2015\Projects\Python\Python\spider.py", line 5, in from urllib import request ImportError: cannot import name request

StephinChou commented 8 years ago

python版本一样的吗

reaCodes commented 8 years ago

@StephinChou 必须要3.4么,我用的是3.5版本

StephinChou commented 8 years ago

PYTHON兼容性很差,没琢磨过3.4和3.5的区别