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 · 22135 阅读 · 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 · 3335 阅读 · 0 评论 -
Python+Selenium 实现打开浏览器、定时刷新页面
直接上代码,可能会出现的问题以及解决办法在下面给出 # coding = utf-8 import time from selenium import webdriver # driver = webdriver.Firefox() 打开火狐浏览器 driver = webdriver.Chrome() # 打开Chrome driver.maximize_window() #最大化...原创 2019-01-20 22:53:37 · 11194 阅读 · 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 · 16856 阅读 · 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 · 5703 阅读 · 2 评论
分享