1、python3.x.x下载
windows版安装包下载地址:https://www.python.org/downloads/windows/
windows64,3.7.2版本下载:Windows x86-64 executable installer
2、python安装
除了第一步注意勾选add python 3.x to path,其他的默认即可,有需要的可以多勾选。add python 3.x to path选项勾选后会帮你配置环境变量。
3、pip安装,及包管理
pip是一个包管理器,如果在安装python时没有勾选pip,可以在python安装目录的Scripts文件下找到pip.exe,双击安装即可。
在CMD中输入pip将会出现其说明,以下是截取的部分说明:
Usage:
pip <command> [options]
Commands:
install Install packages.
download Download packages.
uninstall Uninstall packages.
freeze Output installed packages in requirements format.
list List installed packages.
show Show information about installed packages.
check Verify installed packages have compatible dependencies.
config Manage local and global configuration.
search Search PyPI for packages.
wheel Build wheels from your requirements.
hash Compute hashes of package archives.
completion A helper command used for command completion.
help Show help for commands.
4、验证
在命令窗口中输入python -V(python 和横杠之间有空格,V是大写),如果正常安装将会输出Python 3.x.x
相关图文参考https://jingyan.baidu.com/article/67662997978a6c54d51b8487.html