我在debian 7上的virtualenv中安装flask时得到以下错误.apt-get-install告诉我我已经有了GCC.我试过,apt-get install libpcre3-dev但后来重新安装烧瓶,pip install Flask-scss --force-reinstall -I但仍然有同样的错误.如何修复此问题以便使用加速?
错误:
markupsafe/_speedups.c:12:20: fatal error: Python.h: No such file or directory
compilation terminated.
==========================================================================
WARNING: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
Retrying the build without the C extension now.
==========================================================================
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python installation succeeded.
==========================================================================
Run Code Online (Sandbox Code Playgroud)
Mar*_*ers 38
你也需要安装python-dev包 ; 它取决于包含Python.h的正确包:
apt-get install python-dev
Run Code Online (Sandbox Code Playgroud)
sudo apt-get install python-dev
Run Code Online (Sandbox Code Playgroud)
要么
sudo apt-get install python3-dev for python3
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11573 次 |
| 最近记录: |