当前位置:网站首页>Scrapy shell出现的一个错误
Scrapy shell出现的一个错误
2022-07-26 10:52:00 【ha_lee】
Scrapy shell出现的一个错误:TypeError: init() got an unexpected keyword argument ‘inputhook’
我是在默认的环境下安装的scrapy包,一开始使用pip安装会出现需要vc++14的环境,嫌麻烦就使用Anaconda来安装,一路畅通无阻,唯一缺点是安装慢,需要添加镜像源(网上有,这里不详细说)。
在使用scrapy shell url 命令时就出现了该错误,网上基本没有找到解决的方法,就决定重新安装scrapy包。
重新安装的时候,由于担心python版本会有影响,于是用anaconda创建了一个虚拟环境,创建的过程如下:
1、创建虚拟环境(这里创建了3.7)
conda create -n 环境名 python=3.7
2、激活虚拟环境
activate 环境名
3、给虚拟环境安装外部包
conda install 包名
然后在创建的虚拟环境中安装Scrapy:
conda install Scrapy

完美解决!
所以解决的办法就是新建一个虚拟环境重新安装scrapy包!
接着将这个安装好scrapy包的虚拟环境导入pycharm中,就可以直接运行Scrapy项目了!
导入过程:


然后就可以在pycharm中愉快的使用scrapy包了!!!
边栏推荐
- MySQL quicklearn-2021-09-01
- RT thread learning notes (I) -- configure RT thread development environment
- 20210807 1 c language program structure
- logging 高级使用
- logging 学习最终版-配置的不同级别日志打印的颜色
- Bash shell learning notes (III)
- logging基本使用
- Pengge C language lesson 4 (3)
- Sword finger offer (8): jump the steps
- Bash shell学习笔记(三)
猜你喜欢

RT thread learning notes (VI) -- start the elmfat file system based on SPI flash (Part 1)

Postman export import

SCADA and three industrial control systems PLC, DCS and FCS

Software Testing Overview: the background, essence and process of software testing

二叉树的遍历 递归+迭代

Drbl diskless startup + Clonezilla network backup and restore system

企鹅龙(DRBL)无盘启动+再生龙(clonezilla)网络备份与还原系统

Pytest fixture decorator

pytest 用例执行顺序

0x00007ffd977c04a8 (qt5sqld.dll) (in a.exe): 0xc0000005: an access violation occurred when reading position 0x0000000000000010
随机推荐
pytest pytest.ini配置 用例分组 用例跳过
ISO 639:1988 : Code for the representation of names of languages
logging基本使用
shell 脚本 失败自动重复执行
面试过程中,面试官是如何考察Rust工程师的水平?
The assignment of member pointer defined in C structure and the use of structure pointer as member function parameter
Solve the problem of the popularity of org.apache.commons.codec.binary.base64
2021-08-13 learn C language with pengge - array
Bash shell学习笔记(四)
Sword finger offer (44): flip the word order sequence
ArrayList of novice source code
按二进制数中1的个数分类
Wechat official account development obtains openid times error 40029 invalid code solution
232. Implement queue with stack
Sword finger offer (52): regularization expression
Bash shell学习笔记(二)
BigDecimal's addition, subtraction, multiplication and division, size comparison, rounding up and down, and BigDecimal's set accumulation, judge whether BigDecimal has decimal
RT thread learning notes (V) -- edit, download and debug programs
BLE之ATT请求
list升序和降序