![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Error
竹杖蓑衣客
技术菜鸟
展开
-
ConnectionError
描述:爬取TED网站页面主题和网址方法:requests + bs4问题:(1)爬取第一页还没问题,第二页出现如下显示:(2)技术菜鸟的做法就是百度,然后试试,先运行然后再学习;添加timeout=(timeout=(3,7))def getHtml(url): headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.0; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0'} page =原创 2020-05-14 20:33:27 · 1912 阅读 · 0 评论 -
Anaconda3提示ModuleNotFoundError: No module named 'pyecharts'
起因:看到关注公众号写的做桑基图,感觉可以学着做一做。午休时候仿照代码敲了一遍,结果Anaconda3弹出ModuleNotFoundError: No module named ‘pyecharts’,如下图1所示:然后就是艰辛的安装过程。尝试:(1)pip install pyecharts结果:依然显示 No module(2)下载 pyecharts-0.1.9.4-py2.p...原创 2020-04-13 20:40:45 · 4062 阅读 · 0 评论 -
Anaconda3提示ModuleNotFoundError: No module named 'wx'
问题描述:电脑安装成功wxPython后,Anaconda3中的Spyder仍然显示 ModuleNotFoundError: No module named ‘wx’这种情况下扔显示 ModuleNotFoundError曾想换个工具甚至不用wxPython,在尝试PyQt5和Tkinter都不能在Anaconda3使用后,只能尝试其他办法。(1)Anaconda3环境中搜索wx,没有...原创 2020-02-26 19:25:17 · 6951 阅读 · 0 评论 -
OSError: [WinError 123] 文件名、目录名或卷标语法不正确。
OSError: [WinError 123] 文件名、目录名或卷标语法不正确。Traceback (most recent call last): .... os.rename(items, newname)OSError: [WinError 123] 文件名、目录名或卷标语法不正确。参考:https://blog.csdn.net/SueMagic/article/deta...原创 2019-06-16 20:53:13 · 58854 阅读 · 0 评论 -
TypeError: not enough arguments for format string
TypeError: not enough arguments for format stringdef formattedOutput(myString,myInt): print('The result of the processing for %s was %d' % {myString,myInt}) #print('The result of the processi...原创 2019-06-13 09:24:01 · 1627 阅读 · 0 评论 -
IndexError: list index out of range
href = i.attrs['href']lst.append(re.findall(r"[s][hz]\d{6}", href)[0])#IndexError: list index out of range 修改为: try: href = i.attrs['href'] lst.append(re.findall(r"...原创 2019-07-23 11:07:59 · 466 阅读 · 0 评论