You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the Linux installation instructions to reflect Fedora
* Fedora does not come with Python 2 pre-installed since Fedora 23
* RHEL with Python 2.4 is no longer supported (section removed)
* Added Fedora installation instructions for Python 3.6 as well
* Be carefull about /usr/bin/pip
Copy file name to clipboardExpand all lines: docs/starting/install3/linux.rst
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,23 @@ If you're using another version of Ubuntu (e.g. the latest LTS release), we reco
22
22
$ sudo apt-get update
23
23
$ sudo apt-get install python3.6
24
24
25
+
If you are using other Linux distribution, chances are you already have Python 3
26
+
pre-installed as well. If not, use your distribution's package manager.
27
+
For example on Fedora, you would use `dnf`:
28
+
29
+
.. code-block:: console
30
+
31
+
$ sudo dnf install python3
32
+
33
+
Note that if the version of the ``python3`` package is not recent enough
34
+
for you, there may be ways of installing more recent versions as well,
35
+
depending on you distribution. For example installing the ``python36`` package
36
+
on Fedora 25 to get Python 3.6. If you are a Fedora user, you might want
37
+
to read about `multiple Python versions available in Fedora`_.
38
+
39
+
.. _multiple Python versions available in Fedora: https://developer.fedoraproject.org/tech/languages/python/multiple-pythons.html
40
+
41
+
25
42
Working with Python 3
26
43
---------------------
27
44
@@ -59,6 +76,17 @@ To see if pip is installed, open a command prompt and run
59
76
60
77
To install pip, `follow the official pip installation guide <https://pip.pypa.io/en/latest/installing/>`_ - this will automatically install the latest version of setuptools.
61
78
79
+
Note that on some Linux distributions including Ubuntu and Fedora the ``pip``
80
+
command is meant for Python 2, while the ``pip3`` command is meant for Python 3.
81
+
82
+
.. code-block:: console
83
+
84
+
$ command -v pip3
85
+
86
+
However, when using virtual environments (described bellow), you don't need to
0 commit comments