当前位置:网站首页>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 .
边栏推荐
- Paradigm in database: first paradigm, second paradigm, third paradigm
- Pull up loading principle
- Wechat nucleic acid detection appointment applet system graduation design completion (6) opening defense ppt
- 2021年山东省赛题库题目抓包
- 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
- 华为设备配置信道切换业务不中断
- PWA (Progressive Web App)
- 埋点111
- Process control
- iframe
猜你喜欢

Go language-1-development environment configuration

Honing · fusion | know that the official website of Chuangyu mobile terminal is newly launched, and start the journey of digital security!

Broyage · fusion | savoir que le site officiel de chuangyu mobile end est en ligne et commencer le voyage de sécurité numérique!

How to close the log window in vray5.2

赛克瑞浦动力电池首台产品正式下线
![[Oracle] use DataGrid to connect to Oracle Database](/img/4f/886378667889f730eaed39b97f0a39.png)
[Oracle] use DataGrid to connect to Oracle Database

Wechat nucleic acid detection appointment applet system graduation design completion (6) opening defense ppt
![[JS learning notes 54] BFC mode](/img/47/a07084ef6064589d2eeb6f091753e0.png)
[JS learning notes 54] BFC mode

磨礪·聚變|知道創宇移動端官網煥新上線,開啟數字安全之旅!

如何将 DevSecOps 引入企业?
随机推荐
九、磁盘管理
Three paradigms of database
关于 “原型” 的那些事你真的理解了吗?【上篇】
GBase 8c数据库如何查看登录用户的登录信息,如上一次登录认证通过的日期、时间和IP等信息?
Wechat nucleic acid detection appointment applet system graduation design completion (6) opening defense ppt
DGL中的消息传递相关内容的讲解
Web3基金会「Grant计划」赋能开发者,盘点四大成功项目
A usage example that can be compatible with various database transactions
Applet framework taro
How to introduce devsecops into enterprises?
Wechat nucleic acid detection appointment applet system graduation design completion (8) graduation design thesis template
BOM//
R3live series learning (IV) r2live source code reading (2)
Three suggestions for purchasing small spacing LED display
DDR4的特性与电气参数
32:第三章:开发通行证服务:15:浏览器存储介质,简介;(cookie,Session Storage,Local Storage)
Beego cross domain problem solution - successful trial
Codeforces Round #804 (Div. 2)
matlab cov函数详解
Process control