Windows中安装python3.8最不费力的方法

应用scoop工具安装python3.8,只需要打开window-terminal,然后运行:

scoop install python

先用scoop命令查看scoop bucket都有哪些python版本:

PS C:Usersgaowei> scoop search python
'extras' bucket:
    anaconda3 (2020.07) --> includes 'python.exe'
    miniconda3 (4.7.12.1) --> includes 'python.exe'

'main' bucket:
    aws (1.18.44) --> includes 'python.exe'
    python (3.8.5)
    winpython (3.8.5.0)

从中看到python就是最新版的3.8.5。直接运行安装即可,安装信息如下:

Installing 'python' (3.8.5) [64bit]
Loading python-3.8.5-amd64.exe from cache
Checking hash of python-3.8.5-amd64.exe ... ok.
Loading install-pep-514.reg from cache
Checking hash of install-pep-514.reg ... ok.
Loading uninstall-pep-514.reg from cache
Checking hash of uninstall-pep-514.reg ... ok.
Running pre-install script...
Running installer script...
  WARNING: The scripts easy_install-3.8.exe and easy_install.exe are installed in 'C:Usersgaoweisco
opappspython3.8.5Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-scr
ipt-location.
  WARNING: The scripts pip.exe, pip3.8.exe and pip3.exe are installed in 'C:Usersgaoweiscoopappsp
ython3.8.5Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-scr
ipt-location.
Linking ~scoopappspythoncurrent => ~scoopappspython3.8.5
Creating shim for 'python'.
Creating shim for 'pythonw'.
Creating shim for 'python3'.
Creating shim for 'idle'.
Creating shim for 'idle3'.
'python' (3.8.5) was installed successfully!
Notes
-----
Allow applications and third-party installers to find python by running:
"C:Usersgaoweiscoopappspythoncurrentinstall-pep-514.reg"

提示'C:Usersgaoweiscoopappspython3.8.5Scripts'尚未添加到环境变量PATH中,因此不能从命令行中直接运行pip.exe。

将路径加入到PATH中,然后查看:

PS C:Usersgaowei> scoop info python
Name: python
Description: A programming language that lets you work quickly and integrate systems more effectively.
Version: 3.8.5
Website: https://www.python.org/
License: Python-2.0 (https://spdx.org/licenses/Python-2.0.html)
Manifest:
  C:Usersgaoweiscoopbucketsmainbucketpython.json
Installed:
  C:Usersgaoweiscoopappspython3.8.5
Binaries:
  python.exe pythonw.exe python3.exe Libidlelibidle.bat idle3.exe
Environment:
  PATH=%PATH%;C:Usersgaoweiscoopappspython3.8.5Scripts
  PATH=%PATH%;C:Usersgaoweiscoopappspython3.8.5
Notes
-----
Allow applications and third-party installers to find python by running:
"C:Usersgaoweiscoopappspython3.8.5install-pep-514.reg"

至此,python安装成功,其余相关的包,我们用pip安装。

展开阅读全文

页面更新:2024-04-28

标签:最新版   路径   环境变量   命令   提示   版本   工具   方法   科技   信息   费力

1 2 3 4 5

上滑加载更多 ↓
推荐阅读:
友情链接:
更多:

本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828  

© CopyRight 2020-2024 All Rights Reserved. Powered By 71396.com 闽ICP备11008920号-4
闽公网安备35020302034903号

Top