官术网_书友最值得收藏!

  • The Python Apprentice
  • Robert Smallshire Austin Bingham
  • 218字
  • 2021-07-02 22:16:51

Linux

  1. To install Python on Linux you will want to use your system's package
    manager. We'll show how to install Python on a recent version of Ubuntu, but the process is very similar on most other modern Linux distributions.

  2. On Ubuntu, first start the Ubuntu Software Center. This can usually be run by clicking on it's icon in the launcher. Alternatively, you can run it from the dashboard by searching on Ubuntu Software Center and clicking the selection.

  3. Once you're in the software center, enter the search term python 3.5 in the search bar in the upper right-hand corner and press return.

  4. One of the results you'll get will say Python (v3.5) with Python Interpreter (v3.5) in smaller type beneath it. Select this entry and click the Install button that appears.

  5. You may need to enter your password to install the software at this point.

  6. You should now see a progress indicator appear, which will disappear when installation is complete.

  7. Open a terminal (using Ctrl+Alt+T) and verify that you can run Python 3.5 from the command line:

$ python3.5
Python 3.5.0+ (default, Oct 11 2015, 09:05:38)
[GCC 5.2.1 20151010] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Welcome to Python!

The triple arrow prompt shows you that Python is waiting for your input.

主站蜘蛛池模板: 林西县| 西乌珠穆沁旗| 拜城县| 伽师县| 静海县| 平昌县| 中方县| 曲靖市| 山阳县| 霍城县| 于田县| 阿拉善右旗| 大冶市| 长沙县| 保靖县| 南雄市| 丹江口市| 翁源县| 台前县| 分宜县| 神池县| 玛纳斯县| 安化县| 平塘县| 浑源县| 宾川县| 牡丹江市| 连山| 涟源市| 略阳县| 贺州市| 远安县| 奈曼旗| 会昌县| 山东省| 平凉市| 顺昌县| 威远县| 大厂| 云梦县| 克拉玛依市|