Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 957 Bytes

c01_20.rst

File metadata and controls

40 lines (23 loc) · 957 Bytes

1.20 在 CentOS 7.2 上安装 Python3.7

image0

首先下载 python3.7的源码包,然后解压

$ cd ~
$ wget -c https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz
$ tar xf Python-3.7.1.tgz && cd Python-3.7.1

安装 一些依赖包

$ yum install gcc zlib-devel bzip2-devel openssl openssl-devel ncurses-devel sqlite-devel libffi-devel python3-devel -y

编译安装

$ ./configure
$ make
$ sudo make install

至此,你已经成功安装 了 Python3, pip3,setuptools

requests.get(“https://www.baidu.com”)

python3 -m pip install --user requests aiohttp cryptography pymysql prettytable sh Fabric paramiko apscheduler bashplotlib httpie PathPicker -i https://pypi.douban.com/simple

image1