pip安装问题记录

时间:2022-07-22
本文章向大家介绍pip安装问题记录,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

1、gpgme.h: No such file or directory

yum -y install gpgme-devel

2、attr/xattr.h: No such file or directory

yum -y install libattr-devel

3、xslt-config: command not found

yum <span class="hljs-keyword">install</span> libxml2 libxslt libxslt-devel

4、ReadTimeoutError: HTTPSConnectionPool(host=’pypi.python.org’, port=443): Read

pip --default-timeout=300 install 包名

5、glib-2.0 was not found

yum -y install libgnomeui-devel

6、The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source

yum -y install zlib-devel libjpeg-turbo-devel

7、No package ‘gobject-introspection-1.0’ found

centos: yum -y install gobject-introspection-devel

ubuntu: yum -y install  libgirepository1.0-dev

8、No module named ‘_ctypes’

yum install libffi-devel -y