如何从github安装langid python库?

时间:2015-04-16 20:47:32

标签: python installation pip

我尝试过以下方法:

 sudo pip install git+https://github.com/saffsd/langid.py.git

但是我收到以下错误。

SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.

然而,已经安装了python-dev和numpy。

selah@selah-OptiPlex-9020:~$ dpkg -s python-numpy
Package: python-numpy
Status: install ok installed
...

selah@selah-OptiPlex-9020:~$ dpkg -s python-dev
Package: python-dev
Status: install ok installed
...

关于我接下来可以尝试的任何想法?

1 个答案:

答案 0 :(得分:0)

安装langid的依赖项,直接安装pypy

版本1.1.4
sudo pip install https://pypi.python.org/packages/source/l/langid/langid-1.1.4dev.tar.gz