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

相关推荐