提交 bcfe17ce authored 作者: Bart's avatar Bart

Use pip --user instead of --install-option

I don't know if there is a specific reason that --install-option='--prefix=~/.local' is used instead of pip's --user, but it seems to break things when installing Theano without root access (both myself and Jae Hyun had this issue).
上级 99a994cb
.. _install:
......@@ -134,16 +133,15 @@ to your machine, you can install to an alternate prefix using
.. code-block:: bash
pip install Theano --install-option='--prefix=~/.local'
pip install Theano --user
e.g. using ``--install-option='--prefix=~/.local'`` on Python 2.4 would
which on e.g. Python 2.4 would
install Theano into ``.local/lib/python2.4/site-packages`` inside your home
directory on Mac OS X or Unix/Linux (this ``site-packages`` directory must be
listed in your ``PYTHONPATH`` environment variable; for Python 2.6 and later,
``~/.local`` is
automatically searched and does *not* need to be explicitly included in
``PYTHONPATH``, see :ref:`config_pythonpath` for instructions).
You can change ``~/.local``, but you need to change your ``PYTHONPATH`` as said above.
Alternatively you can use virtualenv_ to create an isolated ``site-packages``
directory; see the `virtualenv documentation`_ for details.
......@@ -225,7 +223,7 @@ or (if you want to install it for the current user only):
.. code-block:: bash
pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git --install-option='--prefix=~/.local'
pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git --user
The following are general instructions that will set you up with the
bleeding-edge version of Theano and allow you to hack it. First,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论