Skip to content

Commit 1d0c096

Browse files
committed
Update installation docs
1 parent 4c701d7 commit 1d0c096

File tree

1 file changed

+39
-32
lines changed

1 file changed

+39
-32
lines changed

docs/intro/install.rst

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,31 @@
44
Installation guide
55
==================
66

7-
Pre-requisites
8-
==============
7+
Installing Scrapy
8+
=================
9+
10+
.. note:: Check :ref:`intro-install-platform-notes` first.
911

1012
The installation steps assume that you have the following things installed:
1113

1214
* `Python`_ 2.7
13-
* `lxml`_. Most Linux distributions ships prepackaged versions of lxml. Otherwise refer to http://lxml.de/installation.html
14-
* `OpenSSL`_. This comes preinstalled in all operating systems except Windows (see :ref:`intro-install-platform-notes`)
15-
* `pip`_ or `easy_install`_ Python package managers
1615

17-
Installing Scrapy
18-
=================
16+
* `pip`_ and `setuptools`_ Python packages. Nowadays `pip`_ requires and
17+
installs `setuptools`_ if not installed.
1918

20-
You can install Scrapy using easy_install or pip (which is the canonical way to
21-
distribute and install Python packages).
19+
* `lxml`_. Most Linux distributions ships prepackaged versions of lxml.
20+
Otherwise refer to http://lxml.de/installation.html
2221

23-
.. note:: Check :ref:`intro-install-platform-notes` first.
22+
* `OpenSSL`_. This comes preinstalled in all operating systems, except Windows
23+
where the Python installer ships it bundled.
24+
25+
You can install Scrapy using pip (which is the canonical way to install Python
26+
packages).
2427

2528
To install using pip::
2629

2730
pip install Scrapy
2831

29-
To install using easy_install::
30-
31-
easy_install Scrapy
32-
3332
.. _intro-install-platform-notes:
3433

3534
Platform specific installation notes
@@ -38,34 +37,33 @@ Platform specific installation notes
3837
Windows
3938
-------
4039

41-
After installing Python, follow these steps before installing Scrapy:
40+
* Install Python 2.7 from http://python.org/download/
41+
42+
You need to adjust ``PATH`` environment variable to include paths to
43+
the Python executable and additional scripts. The following paths need to be
44+
added to ``PATH``::
4245

43-
* add the ``C:\python27\Scripts`` and ``C:\python27`` folders to the system
44-
path by adding those directories to the ``PATH`` environment variable from
45-
the `Control Panel`_.
46+
C:\Python2.7\;C:\Python2.7\Scripts\;
4647

47-
* install OpenSSL by following these steps:
48+
To update the ``PATH`` open a Command prompt and run::
4849

49-
1. go to `Win32 OpenSSL page <http://slproweb.com/products/Win32OpenSSL.html>`_
50+
c:\python27\python.exe c:\python27\tools\scripts\win_add2path.py
5051

51-
2. download Visual C++ 2008 redistributables for your Windows and architecture
52+
Close the command prompt window and reopen it so changes take effect, run the
53+
following command and check it shows the expected Python version::
5254

53-
3. download OpenSSL for your Windows and architecture (the regular version, not the light one)
55+
python --version
5456

55-
4. add the ``c:\openssl-win32\bin`` (or similar) directory to your ``PATH``, the same way you added ``python27`` in the first step`` in the first step
57+
* Install `pip`_ from https://pip.pypa.io/en/latest/installing.html
5658

57-
* some binary packages that Scrapy depends on (like Twisted, lxml and pyOpenSSL) require a compiler available to install, and fail if you don't have Visual Studio installed. You can find Windows installers for those in the following links. Make sure you respect your Python version and Windows architecture.
59+
Now open a Command prompt to check ``pip`` is installed correctly::
5860

59-
* pywin32: http://sourceforge.net/projects/pywin32/files/
60-
* Twisted: http://twistedmatrix.com/trac/wiki/Downloads
61-
* zope.interface: download the egg from `zope.interface pypi page <http://pypi.python.org/pypi/zope.interface>`_ and install it by running ``easy_install file.egg``
62-
* lxml: http://pypi.python.org/pypi/lxml/
63-
* pyOpenSSL: https://launchpad.net/pyopenssl
61+
pip --version
6462

65-
Finally, this page contains many precompiled Python binary libraries, which may
66-
come handy to fulfill Scrapy dependencies:
63+
* At this point Python 2.7 and ``pip`` package manager must be working, let's
64+
install Scrapy::
6765

68-
http://www.lfd.uci.edu/~gohlke/pythonlibs/
66+
pip install Scrapy
6967

7068
Ubuntu 9.10 or above
7169
~~~~~~~~~~~~~~~~~~~~
@@ -77,10 +75,19 @@ Instead, use the official :ref:`Ubuntu Packages <topics-ubuntu>`, which already
7775
solve all dependencies for you and are continuously updated with the latest bug
7876
fixes.
7977

78+
Archlinux
79+
~~~~~~~~~
80+
81+
You can follow the generic instructions or install Scrapy from `AUR Scrapy package`::
82+
83+
yaourt -S scrapy
84+
8085

8186
.. _Python: http://www.python.org
8287
.. _pip: http://www.pip-installer.org/en/latest/installing.html
8388
.. _easy_install: http://pypi.python.org/pypi/setuptools
8489
.. _Control Panel: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sysdm_advancd_environmnt_addchange_variable.mspx
8590
.. _lxml: http://lxml.de/
8691
.. _OpenSSL: https://pypi.python.org/pypi/pyOpenSSL
92+
.. _setuptools: https://pypi.python.org/pypi/setuptools
93+
.. _AUR Scrapy package: https://aur.archlinux.org/packages/scrapy/

0 commit comments

Comments
 (0)