一、Windows
1.下载:https://www.python.org/downloads/
2.安装
勾选“Add Python3.6 to PATH”, 点击“Customize installation”
设置安装路径
3.测试是否安装成功
二、Linux
Debian安装python3.6
1.安装gcc、make和zlib
# sudo aptitude -y install gcc make zlib1g-dev
2.下载安装包
# wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
# tar zxvf Python-3.6.3.tgz
# cd Python-3.6.3
# ./configure --prefix=/usr/local/python36
# sudo make
# sudo make install
# sudo ln -s /usr/local/python36/bin/python3.6 /usr/bin/python3
# Python3 -V
3.安装pip
# sudo apt-get install python3-pip
原文地址:https://www.cnblogs.com/wb8736/p/9508985.html
时间: 2024-11-06 03:56:36