I created a virtual environment and installed scrapy through pip
, but when I ran the scrapy
command, I got the error below. I’m hoping someone might’ve ran into this and is able to help troubleshoot.
Traceback (most recent call last):
File "P:pipelineappspythonPython310librunpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "P:pipelineappspythonPython310librunpy.py", line 86, in _run_code
exec(code, run_globals)
File "P:pipelineappspython.scrapy-venvScriptsscrapy.exe__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'scrapy.cmdline'
I’m using Python 3.10.11 on Windows 11 and scrapy 2.11.2, installed through python -m pip install scrapy
. pip
version is 24.0.
Thanks in advance!
—
Things I tried:
- Uninstalling and reinstalling scrapy through pip (as well as a
pip --upgrade --force-reinstall scrapy
) - Deleting the virtual environment and creating it again.
- Removing my Python installation, restarting my machine and starting the process again.
New contributor
Alberto B. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.