pip3安装cv2报错

Traceback (most recent call last):
  File "/usr/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 215, in main
    locale.setlocale(locale.LC_ALL, ‘‘)
  File "/usr/lib/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

解决方法:

export LC_ALL=C

再次执行时,报错消失

原文地址:https://www.cnblogs.com/expttt/p/9326269.html

时间: 2024-07-30 10:29:50

pip3安装cv2报错的相关文章

pip3安装Crypto报错ModuleNotFoundError: No module named &#39;Crypto&#39;

问题: pip3 install Crypto后 仍报错 ModuleNotFoundError: No module named 'Crypto' 解决办法: 1.进入存放Crypto的目录看下他在不在 cd /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages ls 2.发现没有Crypto,只有crypto ??‍♀? 直接重命名文件改为Crypto mv crypto Crypto 思考

Ubuntu pip3安装uwsgi报错

笔者在ubuntu16.04使用pip3安装uwsgi时报错了,报错信息如下 [email protected]:~$ sudo pip3 ×××tall uwsgi The directory '/home/leslie/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions an

import cv2 报错:ModuleNotFoundError: No module named &#39;cv2&#39;

tensorflow,import cv2报错:ModuleNotFoundError: No module named 'cv2' 我是这样解决的:conda install opencv 然后不报错了,但是报另外一个错:ImportError: /lib64/libstdc .so.6: version `CXXABI_1.3.8' not found: 百度后说gcc更新后libstdc++.so.6没有更新,CXXABI_1.3.8版本还是原来的,所以报错 解决办法: 第一步:首先fin

MAC 安装psycopg2报错ld: library not found for -lssl

pip3 install psycopg2 报错:ld: library not found for -lssl 解决参考:https://github.com/PyMySQL/mysqlclient-python/issues/169 安装前定义这两个环境变量就好了 export LDFLAGS="-L/usr/local/opt/openssl/lib" export CPPFLAGS="-I/usr/local/opt/openssl/include" 原文地

Ceph安装QEMU报错:User requested feature rados block device configure was not able to find it

CentOS6.3中,要想使用Ceph的block device,需要安装更高版本的QEMU. 安装好ceph后,安装qemu-1.5.2 # tar -xjvf qemu-1.5.2.tar.bz2 # cd qemu-1.5.2 # ./configure --enable-rbd 一定要加上--enable-rbd选项,这样qemu才能支持rbd协议. 这一步可能会报错: ERROR: User requested feature rados block device configure

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED 问题描写叙述 使用pip依照virtualenv报错,例如以下: pip install virtualenv Collecting virtualenv /opt/python27/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An

CentOS安装过程报错

Unable to read group information from repositories.  This is a problem with the generation of your install tree 网上搜到说是bug http://bbs.linuxtone.org/thread-16947-1-1.html 个人解决办法:把boot大小由200改为1024安装不报错

安装MySQL-python报错error: command &#39;gcc&#39; failed with exit status 1

[[email protected] MySQL-python-1.2.3]# python setup.py install function) .... _mysql.c:133: error: 'ER_SYNTAX_ERROR' undeclared (first use in this function) _mysql.c:380: error: '_mysql_ConnectionObject' has no member named 'connection' _mysql.c:382

Centos安装fabric 报错:error: ‘FFI_DEFAULT_ABI’ undeclared (first use in this function)

Centos安装fabric 报错: error: 'FFI_DEFAULT_ABI' undeclared (first use in this function) 需要安装libffi-devel Debian或Ubuntu需要安装 libffi-dev