Shingrace的个人博客分享 http://blog.sciencenet.cn/u/Shingrace

博文

server-base

已有 1537 次阅读 2017-11-2 20:29 |个人分类:server|系统分类:科研笔记

sudo mv /usr/bin/python /usr/bin/python2.7

sudo ln -s /usr/bin/python3.6 /usr/bin/python


参考

http://www.cnblogs.com/tigerm/p/5794386.html




用安装python模块出现error: command 'gcc' failed with exit status 1 ,明明装了gcc的,怎么会不行呢,然后发觉是failed不是not found,这说明这个错误个gcc没多大关系,应该是缺少某些功能模块,然后谷歌了一下,先后安装了python-devel,libffi-devel后还是不行,最后发觉要安装openssl-devel才行

可如下命令行安装:

yum install gcc libffi-devel python3-devel openssl-devel



pip3 install numpy

pip3 install pyproj


yum install libsmbclient-devel

pip3 install pysmbc



error: command'gcc'failed with exitstatus 1

yum remove audit   #不懂为什么????
yum installgcc
yum installlibxslt-devel libxml2-devel



pip3 install matplotlib



https://blog.sciencenet.cn/blog-669638-1083519.html

上一篇:error about "cannot import name \'downsample\'"
下一篇:linux base
收藏 IP: 218.98.33.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-22 03:54

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部