python——平时遇到问题记录

Posted 沄持

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python——平时遇到问题记录相关的知识,希望对你有一定的参考价值。

# pyhs2安装

#centos
yum install groupinstall development tools
yum install python34-devel
yum install libevent-devel
pip install gevent
yum install cyrus-sasl-plain  cyrus-sasl-devel  cyrus-sasl-gssapi
pip install pyhs2
pip install thrift-sasl==0.2.1

#ubuntu
apt install sasl2-bin libsasl2-2 libsasl2-dev
pip install gevent
pip install thrift-sasl==0.2.1
pip install pyhs2

 

# 安装tensorflow时报Cannot uninstall wrapt

pip install -U --ignore-installed wrapt enum34 simplejson netaddr

 

# import matplotlib时报缺少Libgl.so.1

yum install libglvnd

 

# 安装psycopg2时报错,Command "python setup.py egg_info" failed with error code 1

yum install python-devel postgresql-devel

 

以上是关于python——平时遇到问题记录的主要内容,如果未能解决你的问题,请参考以下文章