![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
StarFishing
这个作者很懒,什么都没留下…
展开
-
Could not find a version that satisfies the requirement urllib2 (from versions: )No matching distrib
python3 pip install urllib2安装错误Could not find a version that satisfies the requirement urllib2 (from versions:)No matching distribution found for urllib2因为在python3中已经将2.x版本的urllib和urllib2两个库合并为一...原创 2019-01-20 21:37:06 · 21934 阅读 · 3 评论 -
python3报错bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml.
报错信息: bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library?解决:bs4调用了python自带的html解析器,python3貌似是没有html解释器,所以会报错。只要给python3安...原创 2019-01-20 21:54:42 · 3231 阅读 · 0 评论 -
Python+Selenium 实现打开浏览器、定时刷新页面
直接上代码,可能会出现的问题以及解决办法在下面给出# coding = utf-8import timefrom selenium import webdriver# driver = webdriver.Firefox() 打开火狐浏览器driver = webdriver.Chrome() # 打开Chromedriver.maximize_window() #最大化...原创 2019-01-20 22:53:37 · 10909 阅读 · 2 评论 -
解决“selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set ...
selenium 启动firefox浏览器时,报错:selenium.common.exceptions.SessionN otCreatedException: Message: Unable to find a matching set of capabilities原因:如果出现如上信息,说明firefox浏览器版本和浏览器驱动版本不匹配。我环境:firefox49.0.2版本 g...转载 2019-01-26 00:00:06 · 16676 阅读 · 0 评论 -
Linux 下安装pip
安装pip使用脚本安装和升级pip要安装或升级pip,需要下载 get-pip.py. 地址:https://bootstrap.pypa.io/get-pip.py运行以下命令进行下载安装 (需要管理员权限):$ wget https://bootstrap.pypa.io/get-pip.py$ python get-pip.py$ pip -V #查看pip版本https:...转载 2019-01-26 00:05:05 · 5632 阅读 · 2 评论