Skip to content
Permalink
Browse files

Replace alternative OSX install workaround with virtualenv

  • Loading branch information
curita authored and dangra committed Dec 30, 2015
1 parent 1925db1 commit 98b63eeba442d85fed3e315b60e4af2943d856fb
Showing with 7 additions and 13 deletions.
  1. +7 −13 docs/intro/install.rst
@@ -138,21 +138,14 @@ solutions:

brew update; brew upgrade python

* *(Alternative)* Force system python to load the user installed packages
first:
* *(Optional)* Install Scrapy inside an isolated python environment.

* Update your ``PYTHONPATH`` variable (Change ``.bashrc`` to ``.zshrc``
accordantly if you're using `zsh`_ as default shell)::
This method is a workaround for the above OS X issue, but it's an overall
good practice for managing dependencies and can complement the first method.

echo "export PYTHONPATH=/Library/Python/2.7/site-packages:$PYTHONPATH" >> ~/.bashrc

* Reload ``.bashrc`` to ensure the changes have taken place::

source ~/.bashrc

* Install ``pip``::

sudo easy_install pip
`virtualenv`_ is a tool you can use to create virtual environments in python.
We recommended reading a tutorial like
http://docs.python-guide.org/en/latest/dev/virtualenvs/ to get started.

After any of these workarounds you should be able to install Scrapy::

@@ -168,3 +161,4 @@ After any of these workarounds you should be able to install Scrapy::
.. _AUR Scrapy package: https://aur.archlinux.org/packages/scrapy/
.. _homebrew: http://brew.sh/
.. _zsh: http://www.zsh.org/
.. _virtualenv: https://virtualenv.pypa.io/en/latest/

0 comments on commit 98b63ee

Please sign in to comment.