Gentoo Archives: gentoo-user

From: Ralph Seichter <abbot@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] g-cpan equivalent for python
Date: Fri, 22 Nov 2019 21:38:42
Message-Id: 87pnhjh9rd.fsf@wedjat.horus-it.com
In Reply to: [gentoo-user] g-cpan equivalent for python by Dan Johansson
1 * Dan Johansson:
2
3 > The recommended way to install it is using pip which will then install
4 > everything including dependencies (which could lead to conflicts with
5 > software installed using emerge (I guess)).
6
7 There will be no conflicts if you use 'pip' with virtual Python
8 environments. The following example works in BASH:
9
10 cd /path/to/some/workdir
11 python3.7 -m venv venv
12 . venv/bin/activate
13
14 You have now activated a virtual Python 3.7 environment, including
15 'pip'. Now you can use
16
17 pip install foobar
18
19 To install 'foobar' and all dependencies from pypi.org, with all files
20 being written inside the /path/to/some/workdir/venv directory. Virtual
21 environments ensure there are no conflicts between different Python
22 applications or the system's own Python installations.
23
24 -Ralph