Python安装模块的常见问题及解决方法

栏目: 编程语言 · Python · 发布时间: 7年前

内容简介:下面小编就为大家分享一篇Python安装模块的常见问题及解决方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧

1、error: command ‘x86_64-linux-gnu-gcc' failed with exit status

解决办法:

# Python 3
$ sudo apt-get install python3 python-dev python3-dev \
   build-essential libssl-dev libffi-dev \
   libxml2-dev libxslt1-dev zlib1g-dev \
   python-pip
# Python 2
$ sudo apt-get install python-dev \
   build-essential libssl-dev libffi-dev \
   libxml2-dev libxslt1-dev zlib1g-dev \
   python-pip

2、AttributeError: module ‘html5lib.treebuilders' has no attribute ‘_base'

解决办法:

sudo pip install --upgrade beautifulsoup4 
sudo pip install --upgrade html5lib 

3、raise EnvironmentError(“%s not found” % (mysql_config.path,))EnvironmentError: mysql_config not found

解决办法:

sudo apt-get install libmysqlclient-dev

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Natural Language Processing with Python

Natural Language Processing with Python

Steven Bird、Ewan Klein、Edward Loper / O'Reilly Media / 2009-7-10 / USD 44.99

This book offers a highly accessible introduction to Natural Language Processing, the field that underpins a variety of language technologies, ranging from predictive text and email filtering to autom......一起来看看 《Natural Language Processing with Python》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换