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

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

内容简介:下面小编就为大家分享一篇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

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

查看所有标签

猜你喜欢:

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

Probability and Computing

Probability and Computing

Michael Mitzenmacher、Eli Upfal / Cambridge University Press / 2005-01-31 / USD 66.00

Assuming only an elementary background in discrete mathematics, this textbook is an excellent introduction to the probabilistic techniques and paradigms used in the development of probabilistic algori......一起来看看 《Probability and Computing》 这本书的介绍吧!

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具