对于想了解ERROR:Command"pythonsetup.pyegg_info"python-nss的读者,本文将是一篇不可错过的文章,并且为您提供关于centos7安装mysqlclient报错
对于想了解ERROR: Command "python setup.py egg_info" python-nss的读者,本文将是一篇不可错过的文章,并且为您提供关于centos7 安装 mysqlclient 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info Check、Command "python setup.py egg_info" failed with error code 1、Command "python setup.py egg_info" failed with error code 1 in、Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fn_dwf1b/MySQL-python/的有价值信息。
本文目录一览:- ERROR: Command "python setup.py egg_info" python-nss
- centos7 安装 mysqlclient 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info Check
- Command "python setup.py egg_info" failed with error code 1
- Command "python setup.py egg_info" failed with error code 1 in
- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fn_dwf1b/MySQL-python/
ERROR: Command "python setup.py egg_info" python-nss
[root@localhost ~]# pip install python-nss
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won''t be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: http://pypi.douban.com/simple
Collecting python-nss
Downloading http://pypi.doubanio.com/packages/6b/29/629098e34951c358b1f04f13a70b3590eb0cf2df817d945bd05c4169d71b/python-nss-1.0.1.tar.bz2 (222kB)
|████████████████████████████████| 225kB 31kB/s
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-JGnrT5/python-nss/setup.py", line 409, in <module>
sys.exit(main(sys.argv))
File "/tmp/pip-install-JGnrT5/python-nss/setup.py", line 333, in main
nss_include_dir = find_include_dir([''nss3'', ''nss''], [''nss.h'', ''pk11pub.h''], include_roots=include_roots)
File "/tmp/pip-install-JGnrT5/python-nss/setup.py", line 94, in find_include_dir
raise ValueError("unable to locate include directory containing header files %s" % include_files)
ValueError: unable to locate include directory containing header files [''nss.h'', ''pk11pub.h'']
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-JGnrT5/python-nss/
查看错误日志缺少头文件
进入python-nss官网,写着To build python-nss you the C language header files and libraries for both NSPR and NSS will need to be installed. This is system and distribution specific, as such we cannot give you explicit instructions. On Linux typically these packages are called:
- nss-devel
- nspr-devel
yum install nss-devel -y
yum install nspr-devel -y
centos7 安装 mysqlclient 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info Check
报错:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
- 解决方案
ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config
- 还是报错
yum install mysql-devel
Command "python setup.py egg_info" failed with error code 1
D:\Program Files\python_3_6_4>python -m pip install --upgrade pip
Cache entry deserialization Failed, entry ignored
Collecting pip
Cache entry deserialization Failed, entry ignored
Downloading https://files.pythonhosted.org/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl (1.7MB)
100% |████████████████████████████████| 1.7MB 299kB/s
Installing collected packages: pip
Found existing installation: pip 9.0.1
Uninstalling pip-9.0.1:
Successfully uninstalled pip-9.0.1
Successfully installed pip-21.3.1
特别注意:
如果安装了多个版本的python
要在正确的位置(目录,文件夹)执行 python -m pip install --upgrade pip
Command "python setup.py egg_info" failed with error code 1 in
使用 docker build -t $docker_name:test1.0 .
建立docker image 出现如下错误:
原因:base image的pip版本过低,在Dockerfile中pip install 命令之前加入以下命令:RUN pip install --upgrade pip
则问题解决:docker镜像创建成功
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fn_dwf1b/MySQL-python/
pip3 install MySQL-python
Collecting MySQL-python
Using cached MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-fn_dwf1b/MySQL-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/tmp/pip-build-fn_dwf1b/MySQL-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named ''ConfigParser''
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fn_dwf1b/MySQL-python/
关于ERROR: Command "python setup.py egg_info" python-nss的介绍现已完结,谢谢您的耐心阅读,如果想了解更多关于centos7 安装 mysqlclient 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info Check、Command "python setup.py egg_info" failed with error code 1、Command "python setup.py egg_info" failed with error code 1 in、Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fn_dwf1b/MySQL-python/的相关知识,请在本站寻找。
本文标签: