Mac如何安装Python?(没有苹果电脑,下一个!)
Windows如何安装Python?
进入Python的官网(链接不让放,自己去百度搜吧)
然后找到你想要安装的版本,点击右边的“Download”(如图)

以Python3.7.8为例,点击“Download”之后,会跳转到这个页面,然后往下翻(如图)

根据你的电脑找到你要下载的那个版本,建议下个安装包(如下图)

不知道自己电脑是多少位的,看下面!拿win7举个栗子,在桌面或者开始菜单里找到“计算机”(也就是那个小电脑图标的玩意),然后点击右键,点“属性”,看看系统类型是多少位的就下哪个安装包(实在看不懂的话可以放弃了)


下载完之后,双击一下,安装!

选下面那个,然后点“Next”


选择安装位置,然后点击“Install”,等它安装完就可以了

划重点!!!
记住你的安装位置!!!
等会要配置环境变量的!!!


还是点那个小电脑,右键——属性

左边有个“高级系统设置”,点一下

点击“环境变量”

在里边找找看有没有“PATH”,有的话编辑,没有的话新建一个,把你下载的路径复制到变量值里头(路径之间一定要加分号!!!不要用中文的分号,必须是英文的,输入法按一下Shift就能切换

下面这个路径是示范,不要直接复制我的,没有用!!!除非你安装路径跟我一样!!!
D:\Python\Python37\Scripts\;D:\Python\Python37\

系统变量里头找到Path,没有的话新建一个,有的话点编辑,把下面这段加进去
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
划重点!!!
每一次添加变量值的时候,一定要跟前面的变量值之间加个分号!!!
举个例子(%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\)


配置完之后,点确定——确定
如果第一步已经勾选了“Add Python 3.7 to PATH”,那就不用自己配置环境变量了,它会给你配置好

学废了吗!!!
网友评论