error
hustlxb
一斤白酒,两斤牛肉
展开
-
Centos7 ImportError: No module named Tkinter
linux版本:Centos7 python环境:python2.7.5sudo pip install TkinterCollecting Tkinter Could not find a version that satisfies the requirement Tkinter (from versions: )No matching distribution found f...原创 2018-03-17 10:55:27 · 3235 阅读 · 1 评论 -
Centos7 "fatal error: Python.h: No such file or directory "commmand 'gcc' failed with exit status 1
使用pip安装matplotlib的时候出现了以下错误:.... _posixsubprocess.c:3:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. er...原创 2018-03-12 19:28:42 · 9743 阅读 · 1 评论 -
Failed to connect to github-production-release-asset-2e65be.s3.amazonaws.com port 443: Timed out
添加URL添加vagrant box,vagrant box add centos7 https://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/1.1.0/centos-7.0-x86_64.box出现了这个问题: Failed to connect to github-production-rele...原创 2018-03-12 19:34:16 · 7097 阅读 · 0 评论 -
ubuntu14.04装mqtt遇到的几个错误
ubuntu14.04装mqtt时遇到的几个错误在github上下载的源码: wget https://github.com/eclipse/mosquitto/archive/v1.4.14.tar.gz编译时,遇到了几个错误,在此小记,make时read_handle_server.c:31:25: fatal error: uuid/uuid.h: No such file...原创 2018-01-26 19:21:39 · 2373 阅读 · 0 评论 -
No package python-pip available----Centos7 安装pip
centos7 安装 pip初始的centos7没有python pip工具,需要自己安装sudo yum -y install python-pip出现以下错误: No package python-pip available 运行以下命令,安装epel:yum -y install epel-release安装后重新运行,解决~sudo yum -y insta...原创 2018-03-12 20:51:20 · 2700 阅读 · 1 评论 -
ImportError: No module named _ckernel
安装pyml后,import PyML出错:>>> import PyML>Traceback (most recent call last): File "<stdin>", line 1, in <module> File "PyML/__init__.py", line 4, in <module>原创 2018-03-12 21:29:17 · 644 阅读 · 0 评论 -
pandas: 读取包含中文的csv文件报错
解决办法: 1、把文件改成csv格式的,import pandas an pddata = pd.read_csv(u'例如.csv')2、使用open() 方法import pandas an pdfile = open('例如.csv','r')data = pd.read_csv(file)...原创 2018-03-21 14:43:29 · 2287 阅读 · 1 评论 -
pandas保存csv文件:python to_csv permission denied
windows下保存to_csv文件会出现没有权限的问题, 解决方法:先创建文件,再使用to_csv( )file = open('我是demo.csv',"w")sleep_data.to_csv(file )to_csv()使用方法: …待续...原创 2018-03-21 14:48:06 · 9774 阅读 · 1 评论