On Fri, Apr 15, 2016 at 1:06 PM, Vincent Delecroix
<20100.delecr...@gmail.com> wrote:
[..]
> You can also do this "out of the distro" using "pip".
>
> If you want to add user packages you need to setup environment variables
> PYTONPATH and/or PYTHONHOME [1] pointing to the appropriate directory.
> Otherwise your python would not be able to find your libraries. To install a
> module that way with pip
>
>  $ pip install -t DIR package
>
> Concrete example
>
>  $ pip install -t /home/john/lib/ biopython
>  $ export PYTHONPATH=/home/john/lib/
>  $ python
>
> and then biopython is available!

You can also do

$ pip install --user biopython
$ python  (or sage)

and then biopython is available.    It puts things in ~/.local, and
you don't have to do anything with PYTHONPATH.

> There is also the alternative possibility of having virtual environment for
> even more isolation [2].
>
> I am sure that there are more ways of doing things some of which I do not
> know of.
>
> Vincent
>
> [1] https://docs.python.org/3.4/using/cmdline.html
> [2] http://docs.python-guide.org/en/latest/dev/virtualenvs/
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.



-- 
William (http://wstein.org)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to