mirror of https://github.com/scrapy/scrapy.git
Extract PATH note into reusable include file
This commit is contained in:
parent
496e649663
commit
8be6d5cf32
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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::
|
||||
|
||||
|
|
|
|||
|
|
@ -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``).
|
||||
Loading…
Reference in New Issue