Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

install notes: update python install notes to not reference out of su…#1151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
clintonsteiner wants to merge1 commit intorealpython:master
base:master
Choose a base branch
Loading
fromclintonsteiner:updatePythonVersionsInInstallNotes
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletionsdocs/starting/install3/linux.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,25 +7,25 @@ Installing Python 3 on Linux

.. image:: /_static/photos/34435689480_2e6f358510_k_d.jpg

This document describes how to install Python 3.6 or 3.8 on Ubuntu Linux machines.
This document describes how to install Python 3 on Ubuntu Linux machines.

To see which version of Python 3 you have installed, open a command prompt and run

.. code-block:: console

$ python3 --version

If you are using Ubuntu 16.10 or newer, then you can easily install Python 3.6 with the following commands::
If you are using Ubuntu 16.10 or newer, then you can easily install Python 3 with the following commands::

$ sudo apt-get update
$ sudo apt-get install python3.6
$ sudo apt-get install python3

If you're using another version of Ubuntu (e.g. the latest LTS release) or you want to use a more current Python, we recommend using the `deadsnakes PPA <https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa>`_ to install Python 3.8::
If you're using another version of Ubuntu (e.g. the latest LTS release) or you want to use a more current Python, we recommend using the `deadsnakes PPA <https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa>`_ to install Python 3::

$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt-get update
$ sudo apt-get install python3.8
$ sudo apt-get install python3

If you are using other Linux distribution, chances are you already have Python 3
pre-installed as well. If not, use your distribution's package manager.
Expand All@@ -37,8 +37,8 @@ For example on Fedora, you would use `dnf`:

Note that if the version of the ``python3`` package is not recent enough
for you, there may be ways of installing more recent versions as well,
depending on you distribution. For example installing the ``python3.9`` package
on Fedora 32 to get Python 3.9. If you are a Fedora user, you might want
depending on you distribution. For example installing the ``python3.13`` package
on Fedora 32 to get Python 3.13. If you are a Fedora user, you might want
to read about `multiple Python versions available in Fedora`_.

.. _multiple Python versions available in Fedora: https://developer.fedoraproject.org/tech/languages/python/multiple-pythons.html
Expand Down
16 changes: 4 additions & 12 deletionsdocs/starting/install3/osx.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,8 +12,7 @@ Installing Python 3 on Mac OS X
**Mac OS X comes with Python 2.7 out of the box between versions 10.8 and 12.3.**

If your Mac OS X version is between the above versions,
you do not need to install or configure anything else to use Python 2. These
instructions document the installation of Python 3.
you do not need to install or configure anything else to use Python.

The version of Python that ships with OS X is great for learning, but it's not
good for development. The version shipped with OS X may be out of date from the
Expand DownExpand Up@@ -88,8 +87,8 @@ Homebrew installs ``pip`` pointing to the Homebrew'd Python 3 for you.
Working with Python 3
*********************

At this point, you have the system Python 2.7 available, potentially the
:ref:`Homebrew version of Python 2 <install-osx>` installed, and the Homebrew

At this point, you have the system Python available, and the Homebrew
version of Python 3 as well.

.. code-block:: console

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

9

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

correct

Expand All@@ -98,19 +97,12 @@ version of Python 3 as well.

will launch the Homebrew-installed Python 3 interpreter.

.. code-block:: console

$ python2

will launch the Homebrew-installed Python 2 interpreter (if any).

.. code-block:: console

$ python3

will launch the Homebrew-installed Python 3 interpreter.

If the Homebrew version of Python 2 is installed then ``pip2`` will point to Python 2.
If the Homebrew version of Python 3 is installed then ``pip`` will point to Python 3.

The rest of the guide will assume that ``python`` references Python 3.
Expand All@@ -119,7 +111,7 @@ The rest of the guide will assume that ``python`` references Python 3.

# Do I have a Python 3 installed?
$ python --version
Python 3.7.1 # Success!
Python 3.9.6 # Success!


*****************************
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp