mirror of https://github.com/scrapy/scrapy.git
Refine wording and clarify PATH instructions for scrapy command
This commit is contained in:
parent
e8b5ab5e14
commit
496e649663
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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::
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue