diff --git a/docs/intro/install.rst b/docs/intro/install.rst index c623cdb2f..112fbfe04 100644 --- a/docs/intro/install.rst +++ b/docs/intro/install.rst @@ -130,17 +130,7 @@ To install Scrapy on Windows using ``pip``: Now, you should be able to :ref:`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 `` instead (for example, - ``python -m scrapy startproject myproject``). +.. include:: windows-path-env-var-note.rst .. _intro-install-ubuntu: diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rst index 48a0d15e0..1ab5fd215 100644 --- a/docs/intro/tutorial.rst +++ b/docs/intro/tutorial.rst @@ -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 `` 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:: diff --git a/docs/intro/windows-path-env-var-note.rst b/docs/intro/windows-path-env-var-note.rst new file mode 100644 index 000000000..e4e1f7d0f --- /dev/null +++ b/docs/intro/windows-path-env-var-note.rst @@ -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 `` instead (for example, + ``python -m scrapy startproject myproject``).