lib/sqlalchemy/cextension/processors.c:10:20: 致命错误: Python.h:没有那个文件或目录
本文地址:http://www.cnblogs.com/yhLinux/p/4063444.html
$ sudo easy_install sqlalchemy
[sudo] password for ovonel:
Searching for sqlalchemy
Reading http://pypi.python.org/simple/sqlalchemy/
Best match: SQLAlchemy 0.9.
Downloading https://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-0.9.8.tar.gz#md5=470ca4da4a0081efc830f0d90dd91682
Processing SQLAlchemy-0.9..tar.gz
Running SQLAlchemy-0.9./setup.py -q bdist_egg --dist-dir /tmp/easy_install-niIczD/SQLAlchemy-0.9./egg-dist-tmp-K7Kb1x
warning: no files found matching '*.jpg' under directory 'doc'
warning: no files found matching 'distribute_setup.py'
warning: no files found matching 'sa2to3.py'
warning: no files found matching 'ez_setup.py'
no previously-included directories found matching 'doc/build/output'
lib/sqlalchemy/cextension/processors.c::: 致命错误: Python.h:没有那个文件或目录
编译中断。
出现这个问题的原因是,系统中的python是自带的,而没有安装python的开发包并没有安装,
所以在shell下执行如下命令:
$ sudo apt-get install python-dev
$ sudo easy_install sqlalchemy
Searching for sqlalchemy
Reading http://pypi.python.org/simple/sqlalchemy/
Best match: SQLAlchemy 0.9.
Downloading https://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-0.9.8.tar.gz#md5=470ca4da4a0081efc830f0d90dd91682
Processing SQLAlchemy-0.9..tar.gz
Running SQLAlchemy-0.9./setup.py -q bdist_egg --dist-dir /tmp/easy_install-Nu0lzS/SQLAlchemy-0.9./egg-dist-tmp-R1tVSz
warning: no files found matching '*.jpg' under directory 'doc'
warning: no files found matching 'distribute_setup.py'
warning: no files found matching 'sa2to3.py'
warning: no files found matching 'ez_setup.py'
no previously-included directories found matching 'doc/build/output'
zip_safe flag not set; analyzing archive contents...
sqlalchemy.testing.plugin.noseplugin: module references __file__
Adding SQLAlchemy 0.9. to easy-install.pth file Installed /usr/local/lib/python2./dist-packages/SQLAlchemy-0.9.-py2.-linux-x86_64.egg
Processing dependencies for sqlalchemy
Finished processing dependencies for sqlalchemy
缷载easy_install安装的包
(个人感觉easy_install没有pip方便,推荐大家使用pip安装和缷载https://pypi.python.org/pypi/pip)
如何缷载esay_install安装的sqlalchemy呢,这里是官方文档:
https://pythonhosted.org/setuptools/easy_install.html#uninstalling-packages
$ sudo easy_install -m sqlalchemy
Searching for sqlalchemy
Best match: SQLAlchemy 0.9.
Processing SQLAlchemy-0.9.-py2..egg Using /usr/local/lib/python2./dist-packages/SQLAlchemy-0.9.-py2..egg Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version: pkg_resources.require("SQLAlchemy") # latest installed version
pkg_resources.require("SQLAlchemy==0.9.8") # this exact version
pkg_resources.require("SQLAlchemy>=0.9.8") # this version or higher Processing dependencies for sqlalchemy
Finished processing dependencies for sqlalchemy $ sudo easy_install -m SQLAlchemy==0.9.
Searching for SQLAlchemy==0.9.
Best match: SQLAlchemy 0.9.
Processing SQLAlchemy-0.9.-py2..egg Using /usr/local/lib/python2./dist-packages/SQLAlchemy-0.9.-py2..egg Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version: pkg_resources.require("SQLAlchemy") # latest installed version
pkg_resources.require("SQLAlchemy==0.9.8") # this exact version
pkg_resources.require("SQLAlchemy>=0.9.8") # this version or higher Processing dependencies for SQLAlchemy==0.9.
Finished processing dependencies for SQLAlchemy==0.9. $ sudo rm /usr/local/lib/python2./dist-packages/SQLAlchemy-0.9.-py2..egg/ -r
(完)
lib/sqlalchemy/cextension/processors.c:10:20: 致命错误: Python.h:没有那个文件或目录的更多相关文章
- ubuntu 致命错误: zlib.h:没有那个文件或目录【转】
本文转载自:https://blog.csdn.net/u013359794/article/details/44922685?locationnum=15&fps=1 编译时,出现错误,提示 ...
- _mysql.c:29:20: error: Python.h: No such file or directory
在Centos系统中安装 pip install MySQL-python 提示: _mysql.c:29:20: error: Python.h: No such file or directory ...
- make: *** /lib/modules/3.10.0-327.el7.x86_64/build: 没有那个文件或目录。 停止。
1.问题: [root@localhost]# make make -C /lib/modules/-.el7.x86_64/build M=/home/csri/poc/adore modules ...
- Linux命令(20)linux服务器之间复制文件和目录
linux的scp命令: scp就是secure copy的简写,用于在linux下进行远程拷贝文件的命令,和它类似的命令有cp,不过cp只是在本机进行拷贝不能跨服务器. 有时我们需要获得远程服务器上 ...
- (转自http://www.blogjava.net/moxie/archive/2006/10/20/76375.html)WebWork深入浅出
(转自http://www.blogjava.net/moxie/archive/2006/10/20/76375.html) WebWork深入浅出 本文发表于<开源大本营> 作者:钱安 ...
- 背水一战 Windows 10 (20) - 绑定: DataContextChanged, UpdateSourceTrigger, 对绑定的数据做自定义转换
[源码下载] 背水一战 Windows 10 (20) - 绑定: DataContextChanged, UpdateSourceTrigger, 对绑定的数据做自定义转换 作者:webabcd 介 ...
- Scrum会议10.20
Scrum会议 组名称:好好学习 项目名称:记账本 参会成员:林莉(Master)胡丽娜 汪东涵 宫丽君 时间:2016.10.20 已完成内容: 1.理解项目和代码. 2.讨论新功能. 计划完成 ...
- 查询数据库:models.Books.objects.all()[10: 20]与models.Books.objects.filter(id__gt=10, id__lt=20).values() 的区别
1. models.Books.objects.all()[10: 20] (10:20 之间是冒号,不是逗号.)查出的是 QuerySet对象,如需进行操作,得进一步进行剥皮. 查询代码: 查询结 ...
- OSC Source Code Innovation Salon(2018.10.20)
时间:2018.10.20地点:北京 朝阳 浦项中心B座2层
随机推荐
- BZOJ2038: [2009国家集训队]小Z的袜子(hose)
Time Limit: 20 Sec Memory Limit: 259 MB Description 作为一个生活散漫的人,小Z每天早上都要耗费很久从一堆五颜六色的袜子中找出一双来穿.终于有一天, ...
- php底层
http://www.phpchina.com/member.php?mod=logging&action=login 我们从未手动开启过PHP的相关进程,它是随着Apache的启动而运行的: ...
- c++ oop
C ++语言的主要优势之一是与其前身语言C不同的是,它被设计为支持面向对象编程(OOP). 这是一个相当简单的概念:你将操纵不同的对象,每个对象都是一个特定类的实例. 类是一组方法(绑定到这个类的函数 ...
- List<Object> to JSONArray一
package com.beijxing.TestMain; import java.util.ArrayList; import java.util.List; import com.beijxin ...
- 分享一个Object.defineProperties 定义一个在原对象可读可写的方法
function A(){ this.name = 'hellow word'; } Object.defineProperties( A.prototype,{ doSomething2 : { v ...
- 浅谈Java 8的函数式编程
函数式编程语言是什么? 函数式编程语言的核心是它以处理数据的方式处理代码.这意味着函数应该是第一等级(First-class)的值,并且能够被赋值给变量,传递给函数等等.(转载自http://xz.p ...
- svn各个图标代表什么意思
最近参与公司项目开发要使用SVN,下面随笔记下在使用SVN中常见的图标各代表什么意思 灰色向右箭头:本地修改过 ,本地代码没有及时上库.灰色向右且中间有个加号的箭头:本地比SVN上多出的文件灰色向右且 ...
- LAMP之准备,samba搭建
搭建lamp其实并没有多复杂,只是,最多的时间是花在下载等待和计算机编译等上面耗时,要是时间多花在这些事情上面总感觉有点亏.经过我多次实践,发现在linux下使用下载会有诸多问题,甚至不如window ...
- Mac上的欧路词典单词本迁移到有道词典 #node.js
摘要 有道词典提供了柯林斯和朗文辞典,加上最近在背单词且Mac版的屏幕取词也够用了,为了云单词本的同步,决定抛弃Mac上的欧路词典.单词欧路上的单词本也存了一百多个单词.怎样迁移到有道呢? 关键词:n ...
- 安装好grunt,cmd 提示"grunt不是内部或外部命令" 怎么办?
Grunt和所有grunt插件都是基于nodejs来运行的,因此,必须安装node.js. (一) 去官网http://nodejs.org/ 下载安装包 node-v6.9.2.msi,直接点击安装 ...