Skip to content

Commit 8f134d4

Browse files
committed
distinguish the CentOS/RHEL options between system-updating and parallel
1 parent 9abe0a7 commit 8f134d4

1 file changed

Lines changed: 39 additions & 26 deletions

File tree

‎source/install_requirements_linux.rst‎

Lines changed: 39 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -54,44 +54,57 @@ CentOS/RHEL
5454
CentOS and RHEL don't offer :ref:`pip` or :ref:`wheel` in their core repositories,
5555
although :ref:`setuptools` is installed by default.
5656

57-
There's three options available to fill in :ref:`pip` and :ref:`wheel`, and to
58-
upgrade :ref:`setuptools`:
57+
To install pip and wheel for the system Python, there are two options:
5958

60-
1. Use the "Sofware Collections" feature to enable a collection that includes
61-
pip, setuptools, and wheel.
59+
1. Enable the `EPEL repository <https://fedoraproject.org/wiki/EPEL>`_ using
60+
`these instructions
61+
<https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F>`__. On
62+
EPEL 6 and EPEL7, you can install pip like so::
6263

63-
* For Redhat, see here:
64-
http://developers.redhat.com/products/softwarecollections/overview/
65-
* For CentOS, see here: https://www.softwarecollections.org/en/
64+
sudo yum install python-pip
6665

67-
Be aware that collections may not contain the most recent versions.
66+
On EPEL 7 (but not EPEL 6), you can install wheel like so::
6867

69-
2. You can install a fairly recent version of pip from the `EPEL repository
70-
<https://fedoraproject.org/wiki/EPEL>`_. Enable EPEL using `these
71-
instructions
72-
<https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F>`__,
73-
and install like so::
68+
sudo yum install python-wheel
7469

75-
sudo yum install python-pip
70+
Since EPEL only offers extra, non-conflicting packages, EPEL does not offer
71+
setuptools, since it's in the core repository.
7672

77-
EPEL 7 (but not EPEL 6) also maintains a recent version of wheel and is
78-
installed like so::
7973

80-
sudo yum install python-wheel
74+
2. Enable the `PyPA Copr Repo
75+
<https://copr.fedoraproject.org/coprs/pypa/pypa/>`_ using `these instructions
76+
<https://fedorahosted.org/copr/wiki/HowToEnableRepo>`__ [1]_. You can install
77+
pip and wheel like so::
78+
79+
sudo yum install python-pip python-wheel
80+
81+
To additionally upgrade setuptools, run::
8182

83+
sudo yum upgrade python-setuptools
8284

83-
3. You can enable the `PyPA Copr Repo
84-
<https://copr.fedoraproject.org/coprs/pypa/pypa/>`_ using `Copr Repo
85-
instructions <https://fedorahosted.org/copr/wiki/HowToEnableRepo>`__ [1]_,
86-
and run::
8785

88-
sudo yum install python-pip python-setuptools python-wheel
86+
To install pip, wheel, and setuptools, in a parallel, non-system environment
87+
(using yum) then there are two options:
88+
89+
90+
1. Use the "Sofware Collections" feature to enable a parallel collection that
91+
includes pip, setuptools, and wheel.
92+
93+
* For Redhat, see here:
94+
http://developers.redhat.com/products/softwarecollections/overview/
95+
* For CentOS, see here: https://www.softwarecollections.org/en/
96+
97+
Be aware that collections may not contain the most recent versions.
98+
99+
2. Enable the `IUS repository <https://iuscommunity.org/pages/Repos.html>`_ and
100+
install one of the `parrallel-installable
101+
<https://iuscommunity.org/pages/TheSafeRepoInitiative.html#parallel-installable-packages>`_
102+
Pythons, along with pip, setuptools, and wheel, which are kept fairly up to
103+
date.
89104

105+
For example, for Python 3.4 on CentOS7/RHEL7::
90106

91-
Also, note that if you're using the `IUS repository
92-
<https://iuscommunity.org/pages/Repos.html>`_ to install alternative Python
93-
versions, IUS also maintains corresponding versions of pip, setuptools,
94-
and wheel that are usually up to date.
107+
sudo yum install python34u python34u-wheel
95108

96109

97110
Debian/Ubuntu

0 commit comments

Comments
 (0)