主页 > Linux > Linux平台上Python环境工具搭建及问题集合(2)

Linux平台上Python环境工具搭建及问题集合(2)

我们继续安装freetype

安装这两个插件

yum install -y tkinter

yum install -y tk-devel

最后通过pip安装matplotlib

pip install matplotlib

出现问题,超时问题

解决:使用国内镜像下载python 的方法

国内镜像地址

阿里云

http://mirrors.aliyun.com/pypi/simple/

中国科技大学

https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban)

http://pypi.douban.com/simple/

清华大学

https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学

http://pypi.mirrors.ustc.edu.cn/simple/

使用方式:

pip install -i https://pypi.douban.com/simple <需要安装的包>

比如:pip install -i https://pypi.douban.com/simple requests

那么我们使用

pip install -i https://pypi.douban.com/simple matplotlib

出现问题:我们升级到python3.4以上

目前的版本号

我们先准备编译环境

yum install gcc-c++ gcc make cmake zlib-devel bzip2-devel openssl-devel ncurse-devel –y

我们下载

wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz

因为速度较慢我直接上传本地的tar包

解压并配置

说点什么吧
  • 全部评论(0
    还没有评论,快来抢沙发吧!