Extract PATH note into reusable include file

This commit is contained in:
nijil 2026-03-02 21:19:37 +05:30
parent 496e649663
commit 8be6d5cf32
3 changed files with 13 additions and 22 deletions

View File

@ -130,17 +130,7 @@ To install Scrapy on Windows using ``pip``:
Now, you should be able to :ref:`install Scrapy <intro-install-scrapy>` using ``pip``.
.. note::
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``).
.. include:: windows-path-env-var-note.rst
.. _intro-install-ubuntu:

View File

@ -53,17 +53,7 @@ directory where you'd like to store your code and run::
scrapy startproject tutorial
.. note::
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``).
.. include:: windows-path-env-var-note.rst
This will create a ``tutorial`` directory with the following contents::

View File

@ -0,0 +1,11 @@
.. note::
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``).