wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz #下载安装包 tar zxvf Python-3.6.0.tgz #解压 ./configure —prefix=/etc/python/python3.6 #预安装到文件夹 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel #确保pip的时候不会有出错 make && make install #打包构建 ln -s /etc/python/python3.6/bin/python3.6 /usr/bin/python3 将执行文件软连接到 系统目录下 ln -s /etc/python/python3.6/bin/pip3.6 /usr/bin/pip3 pip3 install requests 测试安装包
相关文章
- 09-23安装eclipse scala插件
- 09-23python-面向对象速查表-内置方法-内置函数-内置属性(只整理了部分内容)
- 09-23python heapq
- 09-23python语法_算数运算+赋值运算符+比较运算符+逻辑运算符
- 09-23Python06-09_序列----列表元素的访问和计数
- 09-23Python06-07_序列----元素的五种添加方式
- 09-23是否可以将Python Seaborn与plotly集成
- 09-23python – 在FacetGrid上绘制小提琴图后更改轴标签
- 09-23python – Anaconda安装没有找到包
- 09-23python – Seaborn matplotlib:无法获得没有渲染器的窗口范围(RuntimeError)