From a2b83532791a0613b904fab77942c5422de05c41 Mon Sep 17 00:00:00 2001 From: geekpi Date: Wed, 5 Jul 2017 08:49:52 +0800 Subject: [PATCH] translated --- ... install latest version into Linux Mint.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) rename {sources => translated}/tech/20170609 Python 3.6 - install latest version into Linux Mint.md (55%) diff --git a/sources/tech/20170609 Python 3.6 - install latest version into Linux Mint.md b/translated/tech/20170609 Python 3.6 - install latest version into Linux Mint.md similarity index 55% rename from sources/tech/20170609 Python 3.6 - install latest version into Linux Mint.md rename to translated/tech/20170609 Python 3.6 - install latest version into Linux Mint.md index dbe0b12482..45529479ba 100644 --- a/sources/tech/20170609 Python 3.6 - install latest version into Linux Mint.md +++ b/translated/tech/20170609 Python 3.6 - install latest version into Linux Mint.md @@ -1,50 +1,46 @@ -translating---geekpi - -Python 3.6 - install latest version into Linux Mint +Python 3.6 - 安装最新的版本到 Linux Mint 中 ============================================================ ![Python 3.6 - install latest version into Linux Mint](https://mintguide.org/uploads/posts/2017-06/1496865727_python-logo.png) -**Python** is one of the most popular programming languages for [Linux][3]. It is written many different tools and libraries. In addition, Python is popular among developers because it is very easy and quick programming, and it's actually simple to master. [][1]If you have installed the operating system [Linux mint][4], you are learning the programming language **Python** and want to work with the latest version, then this article is for you. -Now I have installed [Linux Mint 18][5].1 and the default installed version 2.7 and 3.5\. You can check this with commands +**Python** 是 [Linux][3] 中一种最流行的编程语言。它被写成了不同的工具和库。除此之外,Python 在开发者之间很流行因为它非常简单,并且实际很容易掌握。[][1]如果你安装了[Linux mint][4] 系统,另外你正在学习 **Python** 并想要使用最新的版本,那么这篇文章就是为你而写的。现在我已经安装了 [Linux Mint 18][5]。默认安装的版本是 2.7 和 3.5。你可以用这个命令检查: ``` TerminalShekin@mylinuxmintpc~$python -V python2 -V python3 -V ``` -**Installation latest Python 3.6 version into Linux Mint**: +**安装最新的 Python 3.6 到 Linux 中**: ``` TerminalShekin@mylinuxmintpc~$sudo add-apt-repository ppa:jonathonf/python-3.6 sudo apt update sudo apt install python3.6 ``` -Check the version of the installed Python 3.6 +检查已安装的 Python 3.6 版本 ``` TerminalShekin@mylinuxmintpc~$python3.6 -V ``` -**Please note** that the old version is still here, it still available by the name of **python3**and the new can now be loaded with the command **python3.6**. If you want to use this version instead of the 3.5 to run all the programs, there is a utility **update-alternatives**. But if you try to get a list of possibilities, we get the error: - [![Python 3.6 - install latest version into Linux Mint](https://mintguide.org/uploads/posts/2017-06/thumbs/1496871711_linux_mint_001.png)][6] This is normal, you need to first setup what files for that answer, because the maintainers did not care about it : +**请注意**旧版本仍然还在,它仍然可以通过 **python3** 可用,新的版本可以通过命令 **python3.6**。如果你想要使用这个版本而不是 3.5 运行所有的程序,这有个工具叫 **update-alternatives**。但是如果你尝试获取可能的列表,我们会得到错误: + [![Python 3.6 - install latest version into Linux Mint](https://mintguide.org/uploads/posts/2017-06/thumbs/1496871711_linux_mint_001.png)][6] 这是正常的,你首先需要为那个问题设置文件,因为维护者并不关心这个: ``` TerminalShekin@mylinuxmintpc~$sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2 ``` -Now look again: +现在再次查看: ``` TerminalShekin@mylinuxmintpc~$update-alternatives --list python3 ``` - [![Python 3.6 - install latest version into Linux Mint](https://mintguide.org/uploads/posts/2017-06/thumbs/1496871720_linux_mint_002.png)][7] Now we can choose the required version and switch as needed. For settings use the config command: + [![Python 3.6 - install latest version into Linux Mint](https://mintguide.org/uploads/posts/2017-06/thumbs/1496871720_linux_mint_002.png)][7] 现在我们选择需要的版本并按需切换。对于设置使用配置命令: ``` TerminalShekin@mylinuxmintpc~$sudo update-alternatives --config python3 ``` - [![Python 3.6 - install latest version into Linux Mint](https://mintguide.org/uploads/posts/2017-06/thumbs/1496871722_linux_mint_003.png)][8] In the prompt you need to specify the program number you want to use by default. -Be careful with a selection of versions, not to touch the python (python2), just use python3, as I said, Python 2.7 written in a variety of system tools, and if you try to run them the wrong version of the interpreter, then nothing happens.May the Force be with you, -Good Luck!!! + [![Python 3.6 - install latest version into Linux Mint](https://mintguide.org/uploads/posts/2017-06/thumbs/1496871722_linux_mint_003.png)][8] 在提示符中,你需要指定默认使用的编号。小心选择一个版本,不要按到 python(python2),只使用 python3,如我所说,Python 2.7 写了不同的系统工具,如果你尝试用错误的解释器版本运行,那么什么都不会发生。愿原力与你同在,好运!!! + [python.org][9] -------------------------------------------------------------------------------- @@ -52,7 +48,7 @@ Good Luck!!! via: https://mintguide.org/other/794-python-3-6-install-latest-version-into-linux-mint.html 作者:[ Shekin][a] -译者:[译者ID](https://github.com/译者ID) +译者:[geekpi](https://github.com/geekpi) 校对:[校对者ID](https://github.com/校对者ID) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出