6hz7vif 发表于 2024-8-18 10:50:33

全网最仔细的Python安装教程


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">首要</span>要先下载安装包:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">①win7,win8,win10系统,<span style="color: black;">意见</span>下载python3.7.4版本:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">【直达链接】</p>https://www.python.org/downloads/release/python-374/

    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">②win xp:<span style="color: black;">意见</span>下载 python 3.4.4版本</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">【直达链接】</p>https://www.python.org/downloads/release/python-344/
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Python安装包虽然版本<span style="color: black;">区别</span>,但安装过程其实都是差不多的。</p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">1、</span><span style="color: black;">第1</span>步 安装python环境</h1>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">1、下载python</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1-1 <span style="color: black;">首要</span>打开www.python.org (这个是python官网)下载配置环境。点击上方 <strong style="color: blue;">downloads</strong></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/63d6f7dccd3c4b44815d5eb1c2f1b6a8~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=145UiQ0%2B2aJSG4C7TQIqdI9UCuo%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1-2 <span style="color: black;">按照</span>系统<span style="color: black;">选取</span>python环境下载(如下图所示)</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/c8b99bb65ffa4e5092f989b25a1800f2~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=LI6hn1CuPbgDv6jZOkcX8ru9Mt8%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1-3 往下拉<span style="color: black;">能够</span>看到<span style="color: black;">非常多</span>版本,找到 python 3.7.4并【点击】,</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/2cc4498a476a42c4940cb61c7416e1d2~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=3RFnjfsE0iHHvEKtiGeP6B7Os0Y%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1-4 往下拉,看到 Files,如下图</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/5eb7677ad02e4caf8ca9dced4f1854c3~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=VbWybGQKX9jV6DGmDMvYBtG3Yzw%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">64位操作系统: 找到 windows x86-64 executable installer并点击,耐心等待下载完成!</strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">32位操作系统: 找到 windows x86 executable installer并点击,耐心等待下载完成!</strong></p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">2、安装python</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2-1 下载完后双击点开 python-3.7.4.exe。(<span style="color: black;">便是</span>你下载下来的python),点击后如下图:</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/401212d55de14ad0b91f88f820b8e9ed~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=k9FIazji0MxBcIF7Gtb%2Ff8bpy3g%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2-2 等待安装完成</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/1cbac6a02f0744f9bf455dca7cf88682~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=K9iJ3YbMyQEkyA9xDlPXottWp%2FA%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2-3 <span style="color: black;">显现</span>【setup was successful】,安装成功</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/0391039d94c647e19d3a46ed9b04e635~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=f2hJgnwSUsr9BK6F55o9hPN8WOY%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">3、检验<span style="color: black;">是不是</span>真的安装成功</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3-1 <span style="color: black;">经过</span>【win+r】调出【运行】弹窗,输入“cmd”之后打开【命令提示符】。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/5102759967a3427ea64128f31bcc24e2~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=V72fOrepUktLqRRQoFp3FQDaUw8%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/d9185b0242c045ce9b1224bb6d97a9f7~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=XiVviO7KNG8k0mRPLm9E66txakI%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3-2 输入python ,点击回车,看到下图,则安装python成功。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">【<span style="color: black;">重视</span>】</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这个<span style="color: black;">便是</span>安装成功的<span style="color: black;">表示</span>,3.7.4是你上面安装的python版本,与你安装的版本<span style="color: black;">相关</span>。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">可能你的<span style="color: black;">表示</span>跟我的有点差异,<span style="color: black;">然则</span><span style="color: black;">不碍事</span>。只要<span style="color: black;">显现</span> “ &gt;&gt;&gt;” 证明你安装成功了。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">当你看到 “&gt;&gt;&gt;” 的时候就说明进入了python交互模式,这种<span style="color: black;">状况</span>要输入exit() 回车,进行退出,括号是英文的括号,英文的。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这个后面会<span style="color: black;">显现</span>,进入交互模式后,记得退出(记住记住记住)</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/dee6a73f967c4a83ae702d2bd4699ac2~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=or%2B5OOWX5HTijxUjayNqNPNEHis%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">2、</span>第二步:安装pip</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">pip 是 Python 的包管理工具,该工具<span style="color: black;">供给</span>了对Python 包的<span style="color: black;">查询</span>、下载、安装、卸载的功能。不管你是win 7、win XP还是win 10,都要安装pip~(pip很重要,<span style="color: black;">为何</span>重要?<span style="color: black;">倘若</span>你想<span style="color: black;">认识</span>的,<span style="color: black;">能够</span><span style="color: black;">自动</span>百度哦~)</p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">1、检验<span style="color: black;">是不是</span>有pip</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">重新打开【命令提示符】,别告诉我你不会,不会往回看一下。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/c98e67ae347f446aade8b3b8a7868afc~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=A8922SLDq6%2B3Z5YpBJQVQSev9rM%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">(不是打开win+r后就直接输入pip,打开cmd后再输入!!!!!!</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">输入 pip 并点击回车,<span style="color: black;">显现</span>下图。有点儿小差异没事,<span style="color: black;">然则</span><span style="color: black;">倘若</span>有<span style="color: black;">很强</span>的差异,则证明不行。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/887507f29c8e4d99a3767d1c41beee67~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=4Es7jRuipFq9EoEqTvMcYmmvJL4%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">2、升级pip</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2-1 输入 :pip install --upgrade pip,并回车。【直接复制黏贴过去】</p><strong style="color: blue;">【<span style="color: black;">重视</span>】<span style="color: black;">倘若</span>网速太慢<span style="color: black;">显现</span>大片红色(如下图2所示),<span style="color: black;">能够</span>用下面的语句,<span style="color: black;">经过</span>清华镜像直接下载升级。(后面下载myqr模块<span style="color: black;">亦</span>可能<span style="color: black;">显现</span>大片爆红,同理<span style="color: black;">处理</span>)</strong>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">python -m pip install --upgrade pip </p>-ihttp://pypi.douban.com/simple --trusted-host http://pypi.douban.com,并回车【直接复制黏贴过去】
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">或</span>下面这条:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">python -m pip install --user --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">【直接复制黏贴过去】</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;">【注】:<span style="color: black;">倘若</span>pip的版本有<span style="color: black;">有些</span>不<span style="color: black;">同样</span><span style="color: black;">不碍事</span>,不影响<span style="color: black;">运用</span></strong></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/a4a016aafaab471083faa5a2a2dedfc1~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=ZNmAnC%2F3qibe52bFUjZPFnIg4yE%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/33e8187727cd46f990722f5d7a356b90~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=hixxQ044KqIwC%2B0ia6SRhKIXvAU%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">倘若</span><span style="color: black;">显现</span>下面报错:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">输入 :pip install --upgrade pip --user,并回车。【直接复制黏贴过去】</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">升级成功就会<span style="color: black;">表示</span>:requirememt already up-to-date</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/f00f3ecef5354a7f9e4d72014f73af19~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=QM6Y%2FsgjaUnGe9MgWSWRJDHGdMA%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">3、安装模块(17关的myqr模块)</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3-1 输入:pip install -i </p>https://pypi.tuna.tsinghua.edu.cn/simple myqr,并回车。
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">或</span>下面这条:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">pip install -i https://pypi.tuna.tsinghua.edu.cn/simple myqr --user</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">【直接复制黏贴过去】版本不<span style="color: black;">同样</span>不影响<span style="color: black;">运用</span>!!!!!!!!</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">其他镜像链接:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">阿里云</p>http://mirrors.aliyun.com/pypi/simple/

    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">中国科技大学 </p>https://pypi.mirrors.ustc.edu.cn/simple/

    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">豆瓣(douban) </p>http://pypi.douban.com/simple/

    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">清华大学 </p>https://pypi.tuna.tsinghua.edu.cn/simple/
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">中国科学技术大学 </p>http://pypi.mirrors.ustc.edu.cn/simple/

    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">【<span style="color: black;">重视</span>】正常安装模块的语句是:pip install 【模块名字】<span style="color: black;">例如</span>(pip install myqr,其中myqr是模块的名字),<span style="color: black;">然则</span><span style="color: black;">因为</span>某些<span style="color: black;">朋友</span>网速过慢会<span style="color: black;">显现</span>爆红<span style="color: black;">或</span>进度条不动,每每下载不成功,<span style="color: black;">因此</span>这边直接拿取清华的镜像链接过来,比较快。(看不懂这句话是什么意思是吧?没事,以后慢慢就懂了。想<span style="color: black;">认识</span><span style="color: black;">更加多</span>的<span style="color: black;">能够</span><span style="color: black;">自动</span>百度)<span style="color: black;">或</span>好好学习,进复习群好好给你们讲解。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/036fb5e6c4c3447399248130a979b2de~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=nHX4MLR9mIx06iw2SvpPr62IYuY%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/25e1c619f52343b48a95920b9273164c~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=Q7f1%2BdNyeiFSxLauhh%2FaZ2SRwxc%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3-2 检验<span style="color: black;">是不是</span>安装成功,输入pip list,检验<span style="color: black;">是不是</span>安装成功</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/fe37cc20b5c3409fba9b80490dd03d90~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=fb9bPD775LrI79EMS%2BTSMRQn5ks%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">弥补</span>:可能你<span style="color: black;">显现</span>的会比较少,那是正常的,我用久了,安装的模块<span style="color: black;">亦</span>多了~</strong></p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">4、<span style="color: black;">弥补</span>(安装pip)</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">倘若</span>输入pip后,<span style="color: black;">表示</span>下图的:</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">好,不要慌,跟着下面这个链接操作,</p>https://shimo.im/docs/qRHxtGXc9cctXQqp/ 《【python】pip包管理安装》

    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">倘若</span>你有pip包的,就跳过这一步。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/a438183183304396ad3b259a5ed4207d~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1723903735&amp;x-signature=2IiuhjM9FyHTcNXg2nI%2FoUblu04%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">【总结】每次安装完后,记得检验,<span style="color: black;">这般</span>才知道是不是成功了。</p>




情迷布拉格 发表于 2024-9-8 07:25:29

楼主发的这篇帖子,我觉得非常有道理。

m5k1umn 发表于 2024-9-26 23:52:53

系统提示我验证码错误1500次 \~゛,

b1gc8v 发表于 2024-10-18 20:48:11

期待楼主的下一次分享!”

4zhvml8 发表于 2024-10-19 00:58:03

论坛的成果是显著的,但我们不能因为成绩而沾沾自喜。

b1gc8v 发表于 2024-11-5 00:56:06

楼主节操掉了,还不快捡起来!
页: [1]
查看完整版本: 全网最仔细的Python安装教程