怎么下载python并安装3.9.0,python下载安装教程3.10.0

本文详细介绍了如何在Windows系统上下载和安装Python3.9.0,包括Python开发环境概述、下载Python官方版本、选择合适的安装包、自定义安装设置、添加Python到系统路径以及测试安装是否成功的方法,还提供了安装失败时的解决方案。

大家好,小编来为大家解答以下问题,下载和安装python的主要步骤,怎么下载python并安装3.9.0,现在让我们一起来看看吧!

Source code download: 本文相关源码

前言:Hello大家好,我是小哥谈。Python是一种高级、通用、解释型的编程语言,由Guido van Rossum于1989年开始设计,1991年首次发布python用turtle画简单树形图。它以简洁易读的语法而著称,并且强调代码的可读性和简洁性,使得程序员能够更容易理解和编写代码。本节课就给大家讲解一下如何安装Python解释器!🌈

     目录

🚀1.Python开发环境概述

🚀2.下载Python

🚀3.安装Python

🚀4.测试Python是否安装成功

🚀5.Python安装失败的解决方法

🚀1.Python开发环境概述

Python是跨平台的开发工具,它可以在多个操作系统上进行使用,编写好的程序也可以在不同系统上运行。进行Python开发常用的操作系统及说明如下表所示。


🚀2.下载Python

要进行Python开发,需要先安装Python解释器。由于Python是解释型编程语言,所以需要一个解释器才能运行编写的代码。这里说的安装Python实际上就是安装Python解释器。下面以Windows操作系统为例,介绍下载及安装Python的方法。

在Python的官方网站中,可以很方便地下载Python的开发环境,具体下载步骤如下:

步骤1:打开浏览器(例如Google Chrome浏览器),输入Python官方网站,如下图所示。👇

说明:♨️♨️♨️

1.Python官网:Welcome to Python.org

2.Python官网是一个国外的网站,加载速度比较慢,打开时请读者耐心等待即可。

步骤2:将鼠标移动到 Downloads 菜单上,将显示和下载有关的菜单项,从上图所示的菜单可以看出,Python可以在Windows、Mac OS X等多种平台上使用。这里单击Windows菜单项,进入详细的下载列表,如下图所示。👇

说明:在上图所示的列表中,带有“x86”字样的压缩包,表示该开发工具可以在Windows 32位系统上使用;而带有“x86-64”字样的压缩包,则表示该开发工具可以在Windows 64位系统上使用。另外,标记为“web-based installer”字样的压缩包,表示需要通过联网才能完成安装;标记为“executable installer”字样的压缩包,表示通过可执行文件(*.exe)方式进行离线安装;标记为“embeddable zip file”字样的压缩包,表示嵌入式版本,可以集成到其他应用中。

步骤3:在Python下载列表页面中,列出了Python提供的各个版本的下载链接,读者可以根据需要下载。由于笔者的操作系统为Windows 64位,所以单击“Windows x86-64 executable installer”超链接,下载适用于Windows 64位操作系统的离线安装包即可。

步骤4:下载完成后,将得到一个名称为“python-3.8.2-amd64.exe”的安装文件(版本可自行选择)。


🚀3.安装Python

在Windows 64位系统上安装Python的步骤如下:👇

步骤1:双击下载后得到的安装文件python-3.8.2-amd64.exe,将显示安装向导对话框,勾选“Add Python 3.8 to PATH”复选框,表示将自动配置环境变量,如下图所示。

步骤2:单击“Customize installation”按钮,进行自定义安装,在弹出的安装选项对话框中采用默认设置,如下图所示。

步骤3:单击Next按钮,打开高级选项对话框,在该对话框中,除了默认设置外,还需要手动选中“Install for all users”复选框(即表示使用这台计算机的所有用户都可以使用),然后单击“Browse”按钮来设置Python的安装路径,如下图所示。

说明:在设置安装路径时,建议路径中不要有中文或空格,以避免使用过程中出现一些莫名的错误。

步骤4:单击Install按钮,开始安装Python,并显示安装进度,如下图所示。

步骤5:安装完成后将显示如下图所示的对话框,单击“Close”按钮关闭窗口即可。


🚀4.测试Python是否安装成功

在Python安装完成后,需要测试Python是否成功安装。例如,在Windows 10系统中检测Python是否成功安装,可以单击开始菜单右侧的“在这里输入你要搜索的内容”文本框,在其中输入cmd命令,如下图所示,按下<Enter>键,启动命令行窗口;在当前的命令提示符后面输入“python”,并按下<Enter>键,如果出现如图所示的信息,则说明Python安装成功,同时系统将进入交互式Python解释器中。


🚀5.Python安装失败的解决方法

如果在cmd命令窗口中输入python后,没有出现如上图所示的信息,而是显示“'python'不是内部或外部命令,也不是可运行的程序或批处理文件”的提示内容,即

原因是在安装Python时,没有选中“Add Python 3.8 to PATH”复选框,导致系统找不到python.exe的可执行文件,这时就需要手动在环境变量中配置Python环境变量,具体步骤如下:

步骤1:在“我的电脑”图标上单击鼠标右键,然后在弹出的快捷菜单中执行“属性”命令,并在弹出的“属性”对话框的左侧单击“高级系统设置”,在弹出的“系统属性”对话框中,单击“环境变量”按钮,如图所示。

步骤2:在弹出的“环境变量”对话框中,在该对话框下半部分的 “系统变量”区域选中Path变量,然后单击“编辑”按钮。如下图所示:

步骤3:在弹出的“编辑环境变量”对话框中,通过单击“新建”按钮,添加两个环境变量,两个环境变量的值分别是“C:\Program Files\Python38\”和“C:\Program Files\Python38\Scripts\”(这是笔者的Python安装路径,读者可以根据自身的实际情况进行修改),如下图所示。在添加完环境变量后,选中添加的环境变量,通过单击对话框右侧的“上移”按钮,可以将其移动到最上方,单击“确定”按钮完成环境变量的设置。

配置完成后,重新打开cmd命令窗口,输入Python命令测试即可。

参考书籍:《Python GUI设计—PyQt5从入门到实践(全彩版)》


ERROR: Ignored the following versions that require a different python version: 0.6.0.dev0 Requires-Python >=3.9; 0.6.0rc0 Requires-Python >=3.9; 0.6.1 Requires-Python >=3.9; 0.6.1rc0 Requires-Python >=3.9; 0.6.2 Requires-Python >=3.9; 0.7.0 Requires-Python >=3.9; 0.7.0.dev0 Requires-Python >=3.9; 0.7.0rc0 Requires-Python >=3.9; 0.7.0rc1 Requires-Python >=3.9; 1.0.0 Requires-Python >=3.9.0; 1.0.0rc0 Requires-Python >=3.9.0; 1.0.0rc1 Requires-Python >=3.9.0; 1.0.0rc2 Requires-Python >=3.9.0; 1.0.0rc3 Requires-Python >=3.9.0; 1.0.0rc4 Requires-Python >=3.9.0; 1.0.0rc5 Requires-Python >=3.9.0; 1.0.0rc6 Requires-Python >=3.9.0; 1.0.0rc7 Requires-Python >=3.9.0; 1.0.1 Requires-Python >=3.9.0; 1.1.0 Requires-Python >=3.9.0; 1.1.0rc0 Requires-Python >=3.9.0; 1.1.0rc1 Requires-Python >=3.9.0; 1.1.0rc2 Requires-Python >=3.9.0; 1.1.1 Requires-Python >=3.9.0; 1.1.2 Requires-Python >=3.9.0; 1.1.3 Requires-Python >=3.9.0; 1.1.4 Requires-Python >=3.9.0; 1.1.5 Requires-Python >=3.9.0; 1.11.0 Requires-Python <3.13,>=3.9; 1.11.0rc1 Requires-Python <3.13,>=3.9; 1.11.0rc2 Requires-Python <3.13,>=3.9; 1.11.1 Requires-Python <3.13,>=3.9; 1.11.2 Requires-Python <3.13,>=3.9; 1.11.3 Requires-Python <3.13,>=3.9; 1.11.4 Requires-Python >=3.9; 1.12.0 Requires-Python >=3.9; 1.12.0rc1 Requires-Python >=3.9; 1.12.0rc2 Requires-Python >=3.9; 1.13.0 Requires-Python >=3.9; 1.13.0rc1 Requires-Python >=3.9; 1.13.1 Requires-Python >=3.9; 1.14.0 Requires-Python >=3.10; 1.14.0 Requires-Python >=3.9; 1.14.0rc1 Requires-Python >=3.10; 1.14.0rc1 Requires-Python >=3.9; 1.14.0rc2 Requires-Python >=3.10; 1.14.0rc2 Requires-Python >=3.9; 1.14.1 Requires-Python >=3.10; 1.15.0 Requires-Python >=3.10; 1.15.0rc1 Requires-Python >=3.10; 1.15.0rc2 Requires-Python >=3.10; 1.15.1 Requires-Python >=3.10; 1.15.2 Requires-Python >=3.10; 1.15.3 Requires-Python >=3.10; 1.16.0 Requires-Python >=3.11; 1.16.0rc1 Requires-Python >=3.11; 1.16.0rc2 Requires-Python >=3.11; 1.16.1 Requires-Python >=3.11; 1.16.2 Requires-Python >=3.11; 1.16.3 Requires-Python >=3.11; 1.2.0 Requires-Python >=3.9; 1.2.1 Requires-Python >=3.9; 1.2.1rc1 Requires-Python >=3.9; 1.25.0 Requires-Python >=3.9; 1.25.1 Requires-Python >=3.9; 1.25.2 Requires-Python >=3.9; 1.26.0 Requires-Python <3.13,>=3.9; 1.26.1 Requires-Python <3.13,>=3.9; 1.26.2 Requires-Python >=3.9; 1.26.3 Requires-Python >=3.9; 1.26.4 Requires-Python >=3.9; 1.3.0 Requires-Python >=3.9; 1.3.1 Requires-Python >=3.10; 1.3.2 Requires-Python >=3.10; 1.3.3 Requires-Python >=3.11; 1.4.0a4 Requires-Python >=3.9; 1.4.0a5 Requires-Python >=3.9; 1.4.0a6 Requires-Python >=3.9; 1.4.0a7 Requires-Python >=3.9; 1.4.0a8 Requires-Python >=3.9; 1.4.0b1 Requires-Python >=3.9; 1.4.0b2 Requires-Python >=3.9; 1.4.10rc0 Requires-Python >=3.10; 1.4.8 Requires-Python >=3.10; 1.4.9 Requires-Python >=3.10; 1.71.0 Requires-Python >=3.9; 1.71.0rc2 Requires-Python >=3.9; 1.71.2 Requires-Python >=3.9; 1.72.0 Requires-Python >=3.9; 1.72.0rc1 Requires-Python >=3.9; 1.72.1 Requires-Python >=3.9; 1.72.2 Requires-Python >=3.9; 1.73.0 Requires-Python >=3.9; 1.73.0rc1 Requires-Python >=3.9; 1.73.1 Requires-Python >=3.9; 1.74.0 Requires-Python >=3.9; 1.74.0rc1 Requires-Python >=3.9; 1.75.0 Requires-Python >=3.9; 1.75.0rc1 Requires-Python >=3.9; 1.75.1 Requires-Python >=3.9; 1.76.0 Requires-Python >=3.9; 1.76.0rc1 Requires-Python >=3.9; 11.0.0 Requires-Python >=3.9; 11.1.0 Requires-Python >=3.9; 11.2.1 Requires-Python >=3.9; 11.3.0 Requires-Python >=3.9; 12.0.0 Requires-Python >=3.10; 2.0.0 Requires-Python >=3.9; 2.0.1 Requires-Python >=3.9; 2.0.2 Requires-Python >=3.9; 2.1.0 Requires-Python >=3.10; 2.1.0 Requires-Python >=3.9; 2.1.0rc0 Requires-Python >=3.9; 2.1.1 Requires-Python >=3.10; 2.1.1 Requires-Python >=3.9; 2.1.2 Requires-Python >=3.10; 2.1.2 Requires-Python >=3.9; 2.1.3 Requires-Python >=3.10; 2.1.3 Requires-Python >=3.9; 2.1.4 Requires-Python >=3.9; 2.14.1 Requires-Python >=3.9; 2.15.0 Requires-Python >=3.9; 2.15.1 Requires-Python >=3.9; 2.15.2 Requires-Python >=3.9; 2.16.0 Requires-Python >=3.9; 2.16.1 Requires-Python >=3.9; 2.16.2 Requires-Python >=3.9; 2.17.0 Requires-Python >=3.9; 2.17.1 Requires-Python >=3.9; 2.18.0 Requires-Python >=3.9; 2.19.0 Requires-Python >=3.9; 2.2.0 Requires-Python >=3.10; 2.2.0 Requires-Python >=3.9; 2.2.0rc0 Requires-Python >=3.9; 2.2.1 Requires-Python >=3.10; 2.2.1 Requires-Python >=3.9; 2.2.2 Requires-Python >=3.10; 2.2.2 Requires-Python >=3.9; 2.2.3 Requires-Python >=3.10; 2.2.3 Requires-Python >=3.9; 2.2.4 Requires-Python >=3.10; 2.2.5 Requires-Python >=3.10; 2.2.6 Requires-Python >=3.10; 2.20.0 Requires-Python >=3.9; 2.3.0 Requires-Python >=3.11; 2.3.0 Requires-Python >=3.9; 2.3.1 Requires-Python >=3.11; 2.3.1 Requires-Python >=3.9; 2.3.2 Requires-Python >=3.11; 2.3.2 Requires-Python >=3.9; 2.3.3 Requires-Python >=3.11; 2.3.3 Requires-Python >=3.9; 2.3.4 Requires-Python >=3.11; 2.3.5 Requires-Python >=3.11; 2.32.5 Requires-Python >=3.9; 2.5.0 Requires-Python >=3.9; 2025.10.0 Requires-Python >=3.9; 2025.10.22 Requires-Python >=3.9; 2025.10.23 Requires-Python >=3.9; 2025.11.3 Requires-Python >=3.9; 2025.3.2 Requires-Python >=3.9; 2025.5.0 Requires-Python >=3.9; 2025.5.1 Requires-Python >=3.9; 2025.7.0 Requires-Python >=3.9; 2025.7.31 Requires-Python >=3.9; 2025.7.33 Requires-Python >=3.9; 2025.7.34 Requires-Python >=3.9; 2025.8.29 Requires-Python >=3.9; 2025.9.0 Requires-Python >=3.9; 2025.9.1 Requires-Python >=3.9; 2025.9.18 Requires-Python >=3.9; 25.1 Requires-Python >=3.9; 25.1.1 Requires-Python >=3.9; 25.2 Requires-Python >=3.9; 25.3 Requires-Python >=3.9; 3.0.0 Requires-Python >=3.9; 3.0.1 Requires-Python >=3.9; 3.0.2 Requires-Python >=3.9; 3.0.3 Requires-Python >=3.9; 3.1.0 Requires-Python >=3.9; 3.10 Requires-Python >=3.10; 3.10.0 Requires-Python >=3.10; 3.10.0rc1 Requires-Python >=3.10; 3.10.1 Requires-Python >=3.10; 3.10.3 Requires-Python >=3.10; 3.10.5 Requires-Python >=3.10; 3.10.6 Requires-Python >=3.10; 3.10.7 Requires-Python >=3.10; 3.12.0 Requires-Python >=3.9; 3.13.0 Requires-Python >=3.9; 3.14.0 Requires-Python >=3.9; 3.15.0 Requires-Python >=3.9; 3.15.1 Requires-Python >=3.9; 3.16.0 Requires-Python >=3.9; 3.17.0 Requires-Python >=3.10; 3.17.0 Requires-Python >=3.9; 3.18.0 Requires-Python >=3.9; 3.19.1 Requires-Python >=3.9; 3.2 Requires-Python >=3.9; 3.2.0 Requires-Python >=3.10; 3.2.0 Requires-Python >=3.9; 3.2.0b1 Requires-Python >=3.9; 3.2.0b2 Requires-Python >=3.9; 3.2.0b3 Requires-Python >=3.9; 3.2.0rc1 Requires-Python >=3.9; 3.2.1 Requires-Python >=3.9; 3.2.2 Requires-Python >=3.9; 3.2.3 Requires-Python >=3.9; 3.2.4 Requires-Python >=3.9; 3.2.5 Requires-Python >=3.9; 3.20.0 Requires-Python >=3.10; 3.2rc0 Requires-Python >=3.9; 3.3 Requires-Python >=3.10; 3.3.0a1 Requires-Python >=3.9; 3.3.0b1 Requires-Python >=3.9; 3.3rc0 Requires-Python >=3.10; 3.4 Requires-Python >=3.10; 3.4.1 Requires-Python >=3.10; 3.4.2 Requires-Python >=3.10; 3.4rc0 Requires-Python >=3.10; 3.5 Requires-Python >=3.11; 3.5rc0 Requires-Python >=3.11; 3.6 Requires-Python >=3.11; 3.6rc0 Requires-Python >=3.11; 3.8 Requires-Python >=3.9; 3.8.0 Requires-Python >=3.9; 3.8.0rc1 Requires-Python >=3.9; 3.8.1 Requires-Python >=3.9; 3.8.2 Requires-Python >=3.9; 3.8.3 Requires-Python >=3.9; 3.8.4 Requires-Python >=3.9; 3.9 Requires-Python >=3.9; 3.9.0 Requires-Python >=3.9; 3.9.0rc2 Requires-Python >=3.9; 3.9.1 Requires-Python >=3.9; 3.9.1.post1 Requires-Python >=3.9; 3.9.2 Requires-Python >=3.9; 3.9.3 Requires-Python >=3.9; 3.9.4 Requires-Python >=3.9; 4.0.0 Requires-Python >=3.10; 4.58.0 Requires-Python >=3.9; 4.58.1 Requires-Python >=3.9; 4.58.2 Requires-Python >=3.9; 4.58.3 Requires-Python >=3.9; 4.58.4 Requires-Python >=3.9; 4.58.5 Requires-Python >=3.9; 4.59.0 Requires-Python >=3.9; 4.59.1 Requires-Python >=3.9; 4.59.2 Requires-Python >=3.9; 4.60.0 Requires-Python >=3.9; 4.60.1 Requires-Python >=3.9; 6.0.0 Requires-Python >=3.9; 6.1.0 Requires-Python >=3.9; 6.2.0 Requires-Python >=3.9; 6.2.1 Requires-Python >=3.9; 6.2.2 Requires-Python >=3.9; 6.30.0 Requires-Python >=3.9; 6.30.0rc1 Requires-Python >=3.9; 6.30.0rc2 Requires-Python >=3.9; 6.30.1 Requires-Python >=3.9; 6.30.2 Requires-Python >=3.9; 6.31.0 Requires-Python >=3.9; 6.31.0rc1 Requires-Python >=3.9; 6.31.0rc2 Requires-Python >=3.9; 6.31.1 Requires-Python >=3.9; 6.32.0 Requires-Python >=3.9; 6.32.0rc1 Requires-Python >=3.9; 6.32.0rc2 Requires-Python >=3.9; 6.32.1 Requires-Python >=3.9; 6.33.0 Requires-Python >=3.9; 6.33.0rc1 Requires-Python >=3.9; 6.33.0rc2 Requires-Python >=3.9; 6.33.1 Requires-Python >=3.9; 6.5.0 Requires-Python >=3.9; 6.5.1 Requires-Python >=3.9; 6.5.2 Requires-Python >=3.9; 75.4.0 Requires-Python >=3.9; 75.5.0 Requires-Python >=3.9; 75.6.0 Requires-Python >=3.9; 75.7.0 Requires-Python >=3.9; 75.8.0 Requires-Python >=3.9; 75.8.1 Requires-Python >=3.9; 75.8.2 Requires-Python >=3.9; 75.9.0 Requires-Python >=3.9; 75.9.1 Requires-Python >=3.9; 76.0.0 Requires-Python >=3.9; 76.1.0 Requires-Python >=3.9; 77.0.1 Requires-Python >=3.9; 77.0.3 Requires-Python >=3.9; 78.0.1 Requires-Python >=3.9; 78.0.2 Requires-Python >=3.9; 78.1.0 Requires-Python >=3.9; 78.1.1 Requires-Python >=3.9; 79.0.0 Requires-Python >=3.9; 79.0.1 Requires-Python >=3.9; 8.2.0 Requires-Python >=3.10; 8.2.1 Requires-Python >=3.10; 8.2.2 Requires-Python >=3.10; 8.3.0 Requires-Python >=3.10; 8.3.1 Requires-Python >=3.10; 8.6.0 Requires-Python >=3.9; 8.6.1 Requires-Python >=3.9; 8.7.0 Requires-Python >=3.9; 80.0.0 Requires-Python >=3.9; 80.0.1 Requires-Python >=3.9; 80.1.0 Requires-Python >=3.9; 80.2.0 Requires-Python >=3.9; 80.3.0 Requires-Python >=3.9; 80.3.1 Requires-Python >=3.9; 80.4.0 Requires-Python >=3.9; 80.6.0 Requires-Python >=3.9; 80.7.0 Requires-Python >=3.9; 80.7.1 Requires-Python >=3.9; 80.8.0 Requires-Python >=3.9; 80.9.0 Requires-Python >=3.9 ERROR: Could not find a version that satisfies the requirement torch==2.0.0+cu118 (from versions: 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1) ERROR: No matching distribution found for torch==2.0.0+cu118
最新发布
11-29
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值