Python 我能';不要安装Gevent

Python 我能';不要安装Gevent,python,python-2.7,gevent,Python,Python 2.7,Gevent,我需要为python2.7安装Gevent,但在尝试了几乎所有的方法之后,我仍然没有安装它。 我有Python2.6.6,在这里一切正常。。。但是我需要python2.7+,然后我安装了python2.7.9,现在只有问题了。。。 在我的项目的某些部分使用python 2.6之前,好吧,但是现在我的项目没有运行2.6和2.7,不知道为什么它停止使用2.6,但是nvm我需要它使用2.7,但是。。。。我不能安装gevent,我已经安装了libevent-devel和greenlet,但我不能安装ge

我需要为python2.7安装Gevent,但在尝试了几乎所有的方法之后,我仍然没有安装它。
我有Python2.6.6,在这里一切正常。。。但是我需要python2.7+,然后我安装了python2.7.9,现在只有问题了。。。 在我的项目的某些部分使用python 2.6之前,好吧,但是现在我的项目没有运行2.6和2.7,不知道为什么它停止使用2.6,但是nvm我需要它使用2.7,但是。。。。我不能安装gevent,我已经安装了libevent-devel和greenlet,但我不能安装gevent

#pip2.7安装gevent
集流管
使用缓存的gevent-1.0.1.tar.gz
已满足要求(使用--升级到升级):greenlet in/usr/local/lib/python2.7/site-packages(来自gevent)
安装收集的软件包:gevent
正在运行gevent的setup.py安装
配置:错误:在“/tmp/pip build fpnLvN/gevent/build/temp.linux-x86_64-2.7/libev”中:
配置:错误:无法运行C编译程序。
如果要交叉编译,请使用“---host”。
有关详细信息,请参阅“config.log”
在/tmp/pip build fpnLvN/gevent/build/temp.linux-x86_64-2.7/libev中运行“/bin/sh/tmp/pip build fpnLvN/gevent/libev/configure>configure output.txt”
建筑“gevent.core”扩建
ccache gcc-fno严格别名-g-O2-DNDEBUG-g-O3-Wall-Wstrict原型-fPIC-DLIBEV_EMBED=1-DEV_COMMON=-DEV_cleanu_ENABLE=0-DEV_EMBED_ENABLE=0-DEV_PERIODIC_PERIODIC_ENABLE=0-Ibuild/temp.linux-x86-u64-2.7/libev-Ilibev-I/usr/local/include/python2.7-c-c-gevent/gevent/gevent.core.c-build/temp
在gevent/libev.h:2中包含的文件中,
来自gevent/gevent.core.c:313:
libev/ev.c:45:22:错误:config.h:没有这样的文件或目录
libev/ev.c:477:48:警告:“/*”在评论中
在gevent/libev.h:2中包含的文件中,
来自gevent/gevent.core.c:313:
libev/ev.c:1531:警告:“ev_default_loop_ptr”已初始化并声明为“extern”
在gevent/libev.h:2中包含的文件中,
来自gevent/gevent.core.c:313:
libev/ev.c:在函数“ev\u io\u start”中:
libev/ev.c:3554:警告:建议在“|”的操作数中的算术值周围加括号
libev/ev.c:4795:27:警告:“/*”在评论中
libev/ev.c:4796:27:警告:“/*”在评论中
错误:命令“ccache”失败,退出状态为1
从命令/usr/local/bin/python2.7-c“导入setuptools,tokenize;uuu文件uuu=”/tmp/pip build fpnLvN/gevent/setup.py';exec(compile)(getattr(tokenize,'open',open)(uuu文件uuuuu).read().replace('\r\n','\n'),uuu文件uuu,'exec'))安装--record/tmp/pip-Ruy7Xb-record/install-record.txt--外部管理的单一版本编译:
正在运行的安装
运行构建
运行build\u py
创建构建
创建build/lib.linux-x86_64-2.7
创建build/lib.linux-x86_64-2.7/gevent
复制gevent/resolver_thread.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/socket.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/threadpool.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/util.py->build/lib.linux-x86_64-2.7/gevent
正在复制gevent/_init__.py->build/lib.linux-x86_64-2.7/gevent
正在复制gevent/monkey.py->build/lib.linux-x86_64-2.7/gevent
正在复制gevent/queue.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/coros.py->build/lib.linux-x86_64-2.7/gevent
正在复制gevent/server.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/_threading.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/thread.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/select.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/hub.py->build/lib.linux-x86_64-2.7/gevent
正在复制gevent/fileobject.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/wsgi.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/pywsgi.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/event.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/greenlet.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/ssl.py->build/lib.linux-x86_64-2.7/gevent
正在复制gevent/local.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/subprocess.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/threading.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/os.py->build/lib.linux-x86_64-2.7/gevent
正在复制gevent/win32util.py->build/lib.linux-x86_64-2.7/gevent
正在复制gevent/baseserver.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/lock.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/backdoor.py->build/lib.linux-x86_64-2.7/gevent
正在复制gevent/pool.py->build/lib.linux-x86_64-2.7/gevent
复制gevent/resolver_ares.py->build/lib.linux-x86_64-2.7/gevent
正在复制gevent/timeout.py->build/lib.linux-x86_64-2.7/gevent
运行build_ext
配置:错误:在“/tmp/pip build fpnLvN/gevent/build/temp.linux-x86_64-2.7/libev”中:
配置:错误:无法运行C编译程序。
如果要交叉编译,请使用“---host”。
有关详细信息,请参阅“config.log”
在/tmp/pip build fpnLvN/gevent/build/temp.linux-x86_64-2.7/libev中运行“/bin/sh/tmp/pip build fpnLvN/gevent/libev/configure>configure output.txt”
建筑“gevent.core”扩建
创建build/temp.linux-x86_64-2.7/gevent
ccache gcc-fno严格别名-g-O2-DNDEBUG-g-O3-Wall-Wstrict原型-fPIC-DLIBEV_EMBED=1-DEV_COMMON=-DEV_cleanu_ENABLE=0-DEV_EMBED_ENABLE=0-DEV_PERIODIC_PERIODIC_ENABLE=0-Ibuild/temp.linux-x86-u64-2.7/libev-Ilibev-I/usr/local/include/python2.7-c-c-gevent/gevent/gevent.core.c-build/temp
在gevent/libev.h:2中包含的文件中,
来自gevent/gevent.core.c:313:
libev/ev.c:45:22:错误:config.h:没有这样的文件或目录
libev/ev.c:477:48:警告:“/*”在评论中
在gevent/libev.h:2中包含的文件中,
来自gev
sudo apt-get install libevent-dev
sudo apt-get install python-all-dev
pip install greenlet
pip install gevent
"gevent": {
        "hashes": [
            "sha256:004cdbc6c18b4076acfa256c1794abf87bf9b97e0cfd4136f5098535c4b4132e",
            "sha256:3ae1ca0f533ddcb17aab16ce66b424b3f3b855ff3b9508526915d3c6b73fba31",
            "sha256:704a048005e6389fcb8276113bb9e7d0a3160bc382b9bcc629e398a43645de5c",
            "sha256:80ee22c28dae6dc70c7e4385f0d0292da9eebccf14b90620a32f10d71797838e",
            "sha256:aa224957cbbc028bbdfbec89625c7efa66bb8ddb845ed2fe323bd6b24e919dcf",
            "sha256:f3e8656f0b7bce355f14896d0b644c0a91e01fa12d9d65e6b09faad1d2c06e65"
        ],
        "index": "pypi",
        "version": "==1.0.2"
}
easy_install gevent
pip3 install greenlet
pip3 install gevent-websocket