如何在没有 sudo 的情况下安装 python-dev?

d.p*_*tto 5 linux python ubuntu installation

我正在尝试在我的用户目录(在我没有 sudo 权限的 ubuntu 服务器上)上安装 python 包(scikits.learn),但我得到

error: Python.h: No such file or directory
Run Code Online (Sandbox Code Playgroud)

可能是因为我没有安装python-dev。但是如何在没有 sudo 的情况下安装 python-dev ?或者 Python.h 还有其他简单的方法吗?

小智 3

您可以从源代码编译您自己的 python,然后安装您想要的任何模块。 http://docs.python.org/devguide/