按照网上得方法:安装依赖库:yum install freetype freetype-develyum install libjpeg libjpeg-develyum install zlib zlib-devel 然后卸载 PIL 再安装PIL ,擦,问题还在,折腾了两个多小时,瞎几把乱安装,终于在安装了pillow后,问题完美解决了 pip install pillow…
安装docker:curl -sSL https://get.daocloud.io/docker | sh 给权限:usermod -aG docker [current_user] 启动:systemctl start docker 验证(未报错即成功):docker ps 安装docker-composer:curl -L https://get.daocloud.io/docker/compose/releases/download/1.22.0/docker-compose-`unam…
docker安装后启动不起来: 查看日志  /var/log/message    其中有一行为:  Your kernel does not support cgroup memory limit 原因是:由于内核不支持限制内存的设置 解决办法是:vim /etc/default/grub 修改为: 或者:GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1" 重启后可以解决…
IOError: [Errno 22] invalid mode ('r') or filename: 这种错误的出现是在使用built-in函数file()或者open()的时候. 或者是因为文件的打开模式不对,或者是文件名有问题. 前者的话只需要注意文件是否可读或者可写就可以了. 后者则是与文件路径相关的问题,需要在文件名前加r或者R转义,如:file(r"e:\Test.txt",'r').或者将反斜杠\变成两个,如file("e:\Test.txt",'r'…
python 3.5.2安装mysql驱动报错 python 3.5.2安装mysql驱动时出现如下异常: [root@localhost www]# pip install mysql-connector-python Collecting mysql-connector-python Could not find a version that satisfies the requirement mysql-connector-python (from versions: ) No match…
近期工作中遇到一个问题,执行json.loads(json_data)时,在json_data中加上tab空格后就报错,不加则不报错 一.json.loads(json_data) 报错json.decoder.JSONDecodeError: Invalid control character at: line 25 column 18 (char 18) 原因:json默认使用的是严谨格式,json_data键值中有非法控制符号如\n\t, 当跨语言传递数据时,就容易报出这个错误. 解决方法…
Python报错module 'scipy.misc' has no attribute 'imresize' 解决办法: 安装Pillow包,命令如下: pip install Pillow 然后重启python环境 Python报错module 'scipy.misc' has no attribute 'imread' 解决办法: 大部分解决办法都是说没有安装PIL第三方库,库名现在为Pillow,推荐直接使用命令pip install Pillow进行安装,但是我的问题并没有因此得到解决…
Heka 编译安装后 运行报错 panic: runtime error: cgo argument has Go pointer to Go pointer 解决办法: 1.  Start hekad with the GODEBUG variable exported in its environment: export GODEBUG=cgocheck=0 2. 之后出现如下报错,找不到lua文件 2017/01/16 10:33:38 Decoder 'MemStats-MemStats…
在部署open-falcon环境过程中,安装Dashboard时候报错"SSLError: The read operation timed out".如下: [root@open dashboard]# ./env/bin/pip install -r pip_requirements.txt Downloading/unpacking Flask==0.10.1 (from -r pip_requirements.txt (line 1)) Downloading Flask-0.…
selenium python 报错如下: raise exception_class(message, screen, stacktrace)selenium.common.exceptions.WebDriverException: Message: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability…