LoginSignup
2
1

More than 5 years have passed since last update.

ubuntu 14.04にpythonパッケージのlxmlを入れるときのメモ

Posted at
pip install lxml

でこんなエラーが。。

error: libxml/xmlversion.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

なんかgcc的なのが入ってないみたいなので、↓的なコマンドを実行する。

$ sudo apt-get install -y libxml2-dev libxslt1-dev

このあと

pip install lxml

で無事パッケージがはいる。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1