当前位置:首页 > python > 正文内容

python scrapy库安装

zhangsir4年前 (2022-08-23)python395

(1)安装

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple scrapy

 (2) 报错1: building 'twisted.test.raiser' extension

              error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++

              Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

     解决1

       http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

       Twisted‑20.3.0‑cp37‑cp37m‑win_amd64.whl

       cp是你的python版本

       amd是你的操作系统的版本

       下载完成之后 使用pip install twisted的路径  安装

       切记安装完twisted 再次安装scrapy


 (3) 报错2  提示python -m pip install --upgrade pip

      解决2   运行python -m pip install --upgrade pip


 (4) 报错3   win32的错误

      解决3   pip install pypiwin32


 (5) 如果你觉得安装麻烦,可以直接安装anaconda


zhangsir版权c2防采集https://mianka.xyz

扫描二维码推送至手机访问。

版权声明:本文由zhangsir or zhangmaam发布,如需转载请注明出处。

本文链接:https://www.mianka.xyz/post/12.html

标签: pythonscrapy
分享给朋友:
返回列表

没有更早的文章了...

下一篇:scrapy创建项目与运行

“python scrapy库安装” 的相关文章

Python三方库ddddocr实现验证码识别

Python三方库ddddocr实现验证码识别环境要求python >= 3.8安装三方库pip install ddddocr -i https://pypi.tuna.tsinghua.edu.cn/simple参数说明:参数名参数类型默认值说明us...

python selenium find_element_by_xpath 方法已经被弃用的解决办法

背景:在使用最新3.10.4Python版本时候,用selenium进行xpath定位元素,编译器提示:DeprecationWarning:find_element_by_xpath is deprecated. Please use find_element(by=By.XPATH, value...

python 爬虫 报错:UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0x8b in position”解决方案

发现报错“UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1:invalid start byte”,方法一:根据报错提示,错误原因有一条是这样的:“'Accept-Encodi...

python 多线程与多进程的代码实例

一.两者区别多进程和多线程的主要区别是:线程是进程的子集(部分),一个进程可能由多个线程组成。多进程的数据是分开的、共享复杂,需要用IPC;但同步简单。多线程共享进程数据,共享简单;但同步复杂。(1)多进程进程是程序在计算机上的一次执行活动,即正在运行中的应用程序,通常称为进程。当你运行一个程序,你...

python—pymysql的增删改查操作实例展示

Python使用pymysql连接数据库1.导包import pymysql2.连接数据库connection = pymysql.connect(     host='',  # ...

python selenium 使用代理ip

代码如下:from selenium import webdriver chromeOptions = webdriver.ChromeOptions() chromeOptions.add_argument("--proxy-serv...