Why does installing numpy require python-dev in Kubuntu 12.04(为什么在 Kubuntu 12.04 中安装 numpy 需要 python-dev)
问题描述
刚开始在 pendrive 12.04 Kubuntu 环境中使用 python.我必须安装 GCC(明白这一点),但我还必须安装 python-dev 才能使用 PIP 安装 numpy.为什么我需要 python-dev?
Just starting out in python on a pendrive 12.04 Kubuntu environment. I had to install GCC (understand that), but I also had to install python-dev before I could use PIP to install numpy. Why do I need python-dev?
sudo apt-get install gcc
sudo apt-get install pip
cd /usr/lib/python2.7/
sudo apt-get install python-dev
sudo pip install numpy
推荐答案
当你使用 pip
安装 numpy 时,包是从源代码编译的.pythonx.x-dev
包包含链接 python 所需的头文件.
When you use pip
to install numpy, the packages is compiled from source. The pythonx.x-dev
packages contain the necessary header files for linking against python.
这篇关于为什么在 Kubuntu 12.04 中安装 numpy 需要 python-dev的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:为什么在 Kubuntu 12.04 中安装 numpy 需要 python-dev


基础教程推荐
- 求两个直方图的卷积 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- 包装空间模型 2022-01-01