python 3.x安装教程一

Python安装教程

本文讲述,安装Python3.8.4版本

Windows

第一步、

找到对应的python安装包文件,双击打开,或者右键选择打开

第二步、

这里有两个选择和两个勾选

需要先勾选两个选项

✔ Install launcher for all users (recommended) 

✔ Add Eython 3.8 to PATH

如果不需要修改路径的,有默认安装的不需要管路径问题,直接选择第一个

Install Now
#  现在安装 C:\Users\admin\AppData\Local\Programs\Python Python38
#  注意这是默认的用户安装路径

首先,我我这里选择更改路径,我选择第二个

Customize installation
#  自定义安装

在这里插入图片描述

第三步、

这里有6个选项,下面时对应的示意

#  文档;  安装Python文档文件。
✔ Documentation
Installs the Python documentation file. 

#  pip指令; 安装pip,它可以下载和安装其他Python包。
✔ pip
Installs pip, which can download and install other Python packages.

#  tcl/tk和IDLE; 安装tkinter GUI编程和空闲开发环境
✔ tcl/tk and IDLE
Installs tkinter and the IDLE development environment

#  Python测试套件; 安装标准库测试套件。
✔ Python test suite
Installs the standard library test suite.

#  py启动器,适用于所有用户(需要提升);安装全局的“py”启动器,以便更容易地启动Python。
✔ py launcher
✔ for all users (requires elevation)
Installs the global 'py' launcher to make it easier to start Python.

建议全部勾选,这里的6个选项

在这里插入图片描述

第四步、

这里有7个选项,下面时对应的示意

  install for all users
  为所有用户安装

✔ Associate files with Python (requires the py launcher)
  将文件与Python关联(需要使用py启动程序)

✔ Create shortcuts for installed applications
  为已安装的应用程序创建快捷方式

✔ Add Python to environment variables
  向环境变量中添加Python

  Precompile standard libraryI
  预编译标准libraryI

  Download debugging symbols
  下载调试符号

  Download debuq binaries (requires VS 2015 or later)
  下载调试二进制文件(需要VS 2015或更高版本)

这里面选择默认,点击安装Install即可

在这里插入图片描述

后面就是正在安装文件

在这里插入图片描述

第五步、

Disable path length limit
禁用路径长度限制

Changes your machine configuration to allow programs, including Python, to bypass the 260 character "MAX PATH" limitation.
更改您的机器配置,以允许程序(包括Python)绕过260字符的“最大路径”限制。

点击 Disable path length limit。

在这里插入图片描述

然后选择Close

在这里插入图片描述

第六步

注意如果第二步✔ Add Eython 3.8 to PATH,可以不用操作下面的

此步骤是在未点击添加path环境变量时的操作

配置环境变量

右键此电脑 > 属性

在这里插入图片描述

点击高级系统设置 > 选择高级 > 点击环境变量 > 点击Path > 选择编辑

在这里插入图片描述

找到安装python解释器位置下的Scripts的路径

在这里插入图片描述

点击新建 > 输入上方的环境变量 > 点击确定

在这里插入图片描述

第七步

以上操作完成,测试python解释器

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_42475194/article/details/108548359