【问题标题】:Try to install Numpy: SystemError: Cannot compile 'Python.h'尝试安装 Numpy: SystemError: Cannot compile 'Python.h'
【发布时间】:2015-03-13 02:42:34
【问题描述】:

我目前正在使用运行在 yocto 发行版 Linux 上的 Cisco。它已经安装了 Python 2.7.3,我们想为这个 python 安装 numpy。 但是,当我尝试做python setup.py install 时,它给了我:

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

显然,这是一个问题,因为我没有安装 python-devel。 因为 Cisco 机器没有配置到互联网连接(很难配置),我不能只做sudo apt-get install python-dev 来为我抓取文件。

我可以做些什么来解决这个错误(没有互联网连接)?

【问题讨论】:

    标签: linux python-2.7 numpy yocto


    【解决方案1】:

    从有互联网连接的地方将 python-dev deb 文件下载到外部驱动器,将驱动器安装在 Cisco 上并安装 .deb

    # dpkg -i debfile.deb
    

    编辑:如果你还需要安装依赖,试试这个:http://www.tuxradar.com/answers/517

    【讨论】:

      猜你喜欢
      • 2014-01-02
      • 2017-09-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-05
      • 2019-11-17
      • 2013-04-04
      • 2020-01-26
      相关资源
      最近更新 更多