首页 > 编程 > Python > 正文

python模块安装

2019-11-09 14:57:35
字体:
来源:转载
供稿:网友
apt-get install python-setuptools        --> easy_install python-xxapt-get install python-pip            --> pip search xx/pip install xx/pip uninstall xxsudo apt-get install python-dev            --> include "Python.h"easy_install python-ldapIn file included from Modules/LDAPObject.c:9:0:Modules/errors.h:8:18: fatal error: lber.h: No such file or directory #include "lber.h"                  ^compilation terminated.error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1解决办法:sudo apt-get install libldap2-devsudo apt-get install libsasl2-devsudo pip install pyExceleratorsudo pip install sudseasy_install MySQL-PythonEnvironmentError: mysql_config not found解决办法:sudo apt-get install libmysqlclient-deveasy_install MySQL-Pythonsudo pip install xlrd
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表