当前位置:网站首页>Modulenotfounderror: no module named 'scratch' ultimate solution
Modulenotfounderror: no module named 'scratch' ultimate solution
2022-07-05 11:07:00 【senda66】
Use scrapy When the command generates a crawler item
Traceback (most recent call last):
xxx in <module>
from scrapy.cmdline import execute
ModuleNotFoundError: No module named 'scrapy'
For the above questions , It can still be used some time ago , The overall environment did not move , It suddenly doesn't work today . It took a long time to solve the problem . Most online solutions are not easy to use , It's not easy to unload and reload . Later, I found a frame :conda
Its official website is as follows :https://www.anaconda.com/products/distribution
Download and install directly .
brief introduction :
Conda Is an open source package and environmental management system , Can be in Windows、macOS and Linux Up operation .Conda Can be installed quickly 、 Run and update packages and their dependencies . It can also be easily created 、 preservation 、 Switch between loading and the environment on the local computer . It is for Python Program created , But it can package and distribute software for any language .
Use :
be based on pycharm CE . Configuration items : stay preference Middle configuration Python Interpreter.Python Interpreter. It is equivalent to an environment package , The environment package of the project can be switched at will .
We can create a new environment package . We use the dependency package in the environment Conda To load the .
python version Can choose 3.7 Version of .
After the environment is built We can open the client tools Search for scrapy Associate the dependency package with the newly built environment .
After application, you can pycharm Refresh the environment ,scrapy The dependent packages of the framework have been downloaded . At this time, it can run normally under the following path of the project scrapy The command .
summary
The reason for this problem , It is possible that the framework environment has changed , Or version differences .
边栏推荐
猜你喜欢
在C# 中实现上升沿,并模仿PLC环境验证 If 语句使用上升沿和不使用上升沿的不同
关于 “原型” 的那些事你真的理解了吗?【上篇】
Based on shengteng AI Aibi intelligence, we launched a digital solution for bank outlets to achieve full digital coverage of information from headquarters to outlets
关于vray 5.2的使用(自研笔记)
About the use of Vray 5.2 (self research notes)
数据库三大范式
Codeforces Round #804 (Div. 2)
【Oracle】使用DataGrip连接Oracle数据库
DDRx寻址原理
[JS learning notes 54] BFC mode
随机推荐
Codeforces Round #804 (Div. 2)
2022 Pengcheng cup Web
基于昇腾AI丨爱笔智能推出银行网点数字化解决方案,实现从总部到网点的信息数字化全覆盖
String
[JS] extract the scores in the string, calculate the average score after summarizing, compare with each score, and output
Crawler (9) - scrape framework (1) | scrape asynchronous web crawler framework
Huawei equipment configures channel switching services without interruption
Node の MongoDB Driver
Pull up loading principle
基于OpenHarmony的智能金属探测器
Explanation of full vulnerability script of network security C module of secondary vocational group script containing 4 vulnerabilities
GBase 8c数据库如何查看登录用户的登录信息,如上一次登录认证通过的日期、时间和IP等信息?
Common functions of go-2-vim IDE
Basic testing process of CSDN Software Testing Introduction
关于 “原型” 的那些事你真的理解了吗?【上篇】
The first product of Sepp power battery was officially launched
不要再说微服务可以解决一切问题了!
Review the whole process of the 5th Polkadot Hackathon entrepreneurship competition, and uncover the secrets of the winning projects!
Go-3-the first go program
[advertising system] parameter server distributed training