当前位置:网站首页>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 .
边栏推荐
猜你喜欢
Codeforces Round #804 (Div. 2)
Go language learning notes - first acquaintance with go language
32: Chapter 3: development of pass service: 15: Browser storage media, introduction; (cookie,Session Storage,Local Storage)
[JS learning notes 54] BFC mode
Broyage · fusion | savoir que le site officiel de chuangyu mobile end est en ligne et commencer le voyage de sécurité numérique!
Some understandings of heterogeneous graphs in DGL and the usage of heterogeneous graph convolution heterographconv
Question bank and answers of special operation certificate examination for main principals of hazardous chemical business units in 2022
Wechat nucleic acid detection appointment applet system graduation design completion (7) Interim inspection report
Huawei equipment configures channel switching services without interruption
32:第三章:开发通行证服务:15:浏览器存储介质,简介;(cookie,Session Storage,Local Storage)
随机推荐
DDR4的特性与电气参数
Operation of simulated examination platform of special operation certificate examination question bank for safety production management personnel of hazardous chemical production units in 2022
【广告系统】增量训练 & 特征准入/特征淘汰
第五届 Polkadot Hackathon 创业大赛全程回顾,获胜项目揭秘!
Wechat nucleic acid detection appointment applet system graduation design completion (7) Interim inspection report
【广告系统】Parameter Server分布式训练
脚手架开发基础
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
一次edu证书站的挖掘
在C# 中实现上升沿,并模仿PLC环境验证 If 语句使用上升沿和不使用上升沿的不同
websocket
Crawler (9) - scrape framework (1) | scrape asynchronous web crawler framework
GBase 8c数据库如何查看登录用户的登录信息,如上一次登录认证通过的日期、时间和IP等信息?
Implement the rising edge in C #, and simulate the PLC environment to verify the difference between if statement using the rising edge and not using the rising edge
Explanation of full vulnerability script of network security C module of secondary vocational group script containing 4 vulnerabilities
四部门:从即日起至10月底开展燃气安全“百日行动”
32:第三章:开发通行证服务:15:浏览器存储介质,简介;(cookie,Session Storage,Local Storage)
Honing · fusion | know that the official website of Chuangyu mobile terminal is newly launched, and start the journey of digital security!
Taro advanced
Three suggestions for purchasing small spacing LED display