Refine wording and clarify PATH instructions for scrapy command

This commit is contained in:
nijil 2026-03-02 19:21:56 +05:30
parent e8b5ab5e14
commit 496e649663
2 changed files with 20 additions and 8 deletions

View File

@ -131,10 +131,16 @@ To install Scrapy on Windows using ``pip``:
Now, you should be able to :ref:`install Scrapy <intro-install-scrapy>` using ``pip``.
.. note::
**Windows users:** If you see a message like ``'scrapy' is not recognized
as an internal or external command`` after installation, you can run
``python -m scrapy <arguments>`` instead (e.g.,
``python -m scrapy startproject myproject``).
If you see a message like ``'scrapy' is not recognized as an internal or external command``
when trying to run the ``scrapy`` command-line tool, it usually means that the
Python ``Scripts`` directory is not in your system ``PATH``.
To make the ``scrapy`` command available, add the ``Scripts`` directory of your
Python installation to the ``PATH`` environment variable.
As a workaround, you can run ``python -m scrapy <arguments>`` instead (for example,
``python -m scrapy startproject myproject``).
.. _intro-install-ubuntu:

View File

@ -54,10 +54,16 @@ directory where you'd like to store your code and run::
scrapy startproject tutorial
.. note::
**Windows users:** If you see a message like ``'scrapy' is not recognized
as an internal or external command``, you can run
``python -m scrapy <arguments>`` instead (e.g.,
``python -m scrapy startproject myproject``).
If you see a message like ``'scrapy' is not recognized as an internal or external command``
when trying to run the ``scrapy`` command-line tool, it usually means that the
Python ``Scripts`` directory is not in your ``PATH``.
To make the ``scrapy`` command available, add the ``Scripts`` directory of
your Python installation to your ``PATH`` environment variable.
As a workaround, you can run ``python -m scrapy <arguments>`` instead
(for example, ``python -m scrapy startproject tutorial``).
This will create a ``tutorial`` directory with the following contents::