An error was reported when creating a new scrapy project. The module No module named 'twisted.persisted' was not found.

system: Ubuntu 16.4
python3.6
twisted-15.2.1
Scrapy 1.5.0 is also installed in the virtual environment

prompt the following message when creating a Scrapy:

(pyvirSpider) root@ubuntu:/myScrapy-sharp scrapy startproject test
Traceback (most recent call last):
File "/ myPyVirtualenv/pyvirSpider/bin/scrapy", line 7, in < module >

from scrapy.cmdline import execute

File "/ myPyVirtualenv/pyvirSpider/lib/python3.6/site-packages/scrapy/__init__.py", line 27, in < module >

from . import _monkeypatches

File "/ myPyVirtualenv/pyvirSpider/lib/python3.6/site-packages/scrapy/_monkeypatches.py", line 20, in < module >

import twisted.persisted.styles  -sharp NOQA

ModuleNotFoundError: No module named "twisted.persisted"

Mar.03,2021

solution to the problem first uninstall the existing version of twisted
pip uninstall twisted and refer to
https://blog.csdn.net/ZunHaiF.

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b311d8-2bd6f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b311d8-2bd6f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?