添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Installing collected packages: greenlet
  Running setup.py install for greenlet ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-s5MENU/greenlet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-s5MENU/greenlet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-wkj7hW/install-record.txt --single-version-externally-managed --compile
         cwd: /tmp/pip-install-s5MENU/greenlet/
    Complete output (13 lines):
    running install
    running build
    running build_ext
    building 'greenlet' extension
    creating build
    creating build/temp.linux-x86_64-2.7
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c greenlet.c -o build/temp.linux-x86_64-2.7/greenlet.o
    In file included from greenlet.c:5:0:
    greenlet.h:8:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-s5MENU/greenlet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-s5MENU/greenlet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-wkj7hW/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

换了很多个greenlet版本都出错,从低到高都试了,最终成功的版本是

[root@node00 quotesys]# pip install greenlet==0.4.10
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Looking in indexes: http://pypi.douban.com/simple
Collecting greenlet==0.4.10
  Downloading http://pypi.doubanio.com/packages/fd/4b/108108a5a4234b2c7f81a7e9513950caf5146c9b2d47664348dbe9aebaf8/greenlet-0.4.10-cp27-cp27mu-manylinux1_x86_64.whl (41 kB)
     |████████████████████████████████| 41 kB 2.2 MB/s 
Installing collected packages: greenlet
Successfully installed greenlet-0.4.10

python版本是python2.7

本文给出安装Scrapy时遇到:Running setup.py install for Twisted … error错误的解决方案。 1.错误描述 安装Scrapy爬虫框架时经常会遇到Running setup.py install for Twisted … error的错误 2.解决方法 2.1 通过 pip 检查工具检查接受安装的标签 具体方法如下:进入Python环境输入如下命令: >>> import pip._internal >>> print(pip._internal.pep425tags.get_supported()) [('cp38', 'cp38', 'win_a 出现以下错误 ERROR: Command errored out with exit status 1: command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -c ... 环境信息: centos7操作系统,python3.8 执行pip3 install clickhouse_sqlalchemy或者pip3 install greenlet报以下报错: Command "/opt/python3.6.10-customized/bin/python3.6 -u -c "import se... 最近想学习Locust性能测试,没想到卡在了安装上。 根据官方指导文档,执行pip install locust,报错信息如下所示: Downloading MarkupSafe-1.1.1-cp36-cp36m-win32.whl (15 kB) Using legacy setup.py install for ConfigArgParse, since package 'wheel' is not installed. Using legacy setup.py install for geventh Failed building wheel for pyltpRunning setup.py clean for pyltpFailed to build pyltpInstalling collected packages: pyltpRunning setup.py install for pyltp ... errorComplete output from command D:\uncl... $ py setup.py install/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'repository'warnings.warn(msg)running installrunning bdist_eggrunning egg_infowriting greenlet... 在安装python3前安装了xcode和homebrew,从中午折腾到晚上,终于弄好了 为了装xcode更新了系统到15.3,然后整整一个下午都在装homebrew,最后参考这位博主的文章解决了问题https://heliquan.blog.csdn.net/article/details/103849472 接着装上python3,看到最后一句pip3,搜到另一位博主的内容解释了pip3,留...