完整报错如下:

Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/35/4b/ed10f7a313704bb77e0bd87817c938ad79bedfe21529873157a149a0a418/django-tables2-1.21.2.tar.gz (2.7 MB)
     |████████████████████████████████| 2.7 MB 2.6 MB/s 
Requirement already satisfied: django<2.3,>=1.11 in /root/.virtualenvs/python3.6/lib/python3.6/site-packages (from django-oscar) (2.2.10)
Requirement already satisfied: purl>=0.7 in /root/.virtualenvs/python3.6/lib/python3.6/site-packages (from django-oscar) (1.5)
Requirement already satisfied: phonenumbers in /root/.virtualenvs/python3.6/lib/python3.6/site-packages (from django-oscar) (8.11.4)
Collecting django-phonenumber-field<2.1,>=2.0
  Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/f8/f0/dd808a95190880975772127accb6f09fe59b548c6e34adbe1cca11608b9d/django-phonenumber-field-2.0.1.tar.gz (16 kB)
Collecting django-haystack<3.0.0,>=2.5.0
  Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/69/43/3e247b7b2134b48e9a53fb387e191e5e05b5f38f2faf78ca892097c2b441/django-haystack-2.8.1.tar.gz (1.6 MB)
     |████████████████████████████████| 1.6 MB 24.1 MB/s 
    ERROR: Command errored out with exit status 1:
     command: /root/.virtualenvs/python3.6/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sly19_q6/django-haystack/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sly19_q6/django-haystack/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-sly19_q6/django-haystack/pip-egg-info
         cwd: /tmp/pip-install-sly19_q6/django-haystack/
    Complete output (33 lines):
    WARNING: The repository located at mirrors.cloud.aliyuncs.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.cloud.aliyuncs.com'.
    ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)
    ERROR: No matching distribution found for setuptools_scm

    Traceback (most recent call last):
      File "/root/.virtualenvs/python3.6/lib/python3.6/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
        subprocess.check_call(cmd)
      File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/root/.virtualenvs/python3.6/bin/python3.6', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp5kh62lbh', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1.
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-sly19_q6/django-haystack/setup.py", line 71, in <module>
        setup_requires=['setuptools_scm'],
      File "/root/.virtualenvs/python3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 143, in setup
        _install_setup_requires(attrs)
      File "/root/.virtualenvs/python3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 138, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/root/.virtualenvs/python3.6/lib/python3.6/site-packages/setuptools/dist.py", line 721, in fetch_build_eggs
        replace_conflicting=True,
      File "/root/.virtualenvs/python3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 774, in resolve
        replace_conflicting=replace_conflicting
      File "/root/.virtualenvs/python3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1057, in best_match
        return self.obtain(req, installer)
      File "/root/.virtualenvs/python3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1069, in obtain
        return installer(requirement)
      File "/root/.virtualenvs/python3.6/lib/python3.6/site-packages/setuptools/dist.py", line 777, in fetch_build_egg
        return fetch_build_egg(self, req)
      File "/root/.virtualenvs/python3.6/lib/python3.6/site-packages/setuptools/installer.py", line 130, in fetch_build_egg
        raise DistutilsError(str(e))
    distutils.errors.DistutilsError: Command '['/root/.virtualenvs/python3.6/bin/python3.6', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp5kh62lbh', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

报错原因:

注意这种报错要仔细看ERROR里面提供了什么信息

这次错误的原因是django-oscar-paypal里面的

make sandbox

里面的pip -r install requirements.txt里面的setuptools_scm找不到合适的版本导致的.

那么解决方案是:

在pip  install -r requirements.txt之前,

先运行pip install  setuptools_scm,

然后再运行pip install -r requirements.

也就是说我们不使用requirements.txt中指定的setuptools_scm的版本,而是使用自定的setuptools_scm的版本,

这样问题就可以解决了.

ERROR: Command errored out with exit status 1一例相关推荐

  1. ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full comm

    目录 问题 解决方法 问题 Python3.7环境下安装PySide pip install PySide Collecting PySideUsing cached PySide-1.2.4.tar ...

  2. ubuntu18.04安装python的mysqlclient==1.4.6报错ERROR Command errored out with exit status 1python setup

    安装python的mysqlclient==1.4.6报错 环境: ubuntu18.04 python 3.7.2 Django 2.2 想要使用Django来操作MySQL,报错: LookupE ...

  3. ERROR: Command errored out with exit status 1:

    这个问题是伴随性质的问题.解决了[C++]工具的包的问题就直接顺带解决了. 问题:[ERROR: Command errored out with exit status 1:] 解决方案 直接去下载 ...

  4. pip sintall pyspider 报错:ERROR: Command errored out with exit status 10

    系统环境: Windows 10 64位 Python 3.6.5 pyspider 是国人写的一款开源爬虫框架,作者博客:http://blog.binux.me/ ,使用 pip install ...

  5. ModuleNotFoundError: No module named '_ctypes' ERROR:Command errored out with exit status 1: python

    Ubuntu下载 nginx 时报错: ERROR: Command errored out with exit status 1:command: /usr/local/bin/python3.7 ...

  6. Python PIP Mysql-python 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info C

    pip install mysql-python 安装Mysql-python时,报错,先看下错误内容: ERROR: Command errored out with exit status 1:c ...

  7. PIP scrapydo时报错ERROR: Command errored out with exit status 1: python setup.py egg_info Check the log

    今天PIP安装scrapydo 包时,报错,图如下 ERROR: Command errored out with exit status 1: python setup.py egg_info Ch ...

  8. 安装PaddleOCR遇到ERROR: Command errored out with exit status 1:command: ‘f:\python3.7\python.exe‘ -u -c

    一.安装Paddle遇到ERROR: Command errored out with exit status 1: 二.错误内容: ERROR: Command errored out with e ...

  9. windows安装imgaug ERROR: Command errored out with exit status 1: ERROR: Command errored out with exit

    在windows10下安装imgaug,我的python是3.7版本,一直在报错 报错信息如下所示: ERROR: Command errored out with exit status 1:   ...

最新文章

  1. python第三方库中函数调用_Python学习笔记(2)——Python的函数、模块、包和库...
  2. AC解 - Phone List(HDOJ#1671) 前缀树的一个应用
  3. C语言再学习 -- 转义字符
  4. C++ Opengl 粒子系统(Particles)源码
  5. CreateProcess的使用方法
  6. python中setpos_如何用类初始化Python中的多个turtle
  7. Java根据表格生成图_java绘制数据表格并导出为图片格式
  8. React Native应用实现步骤
  9. phoenixframework自动化测试平台1.4.6版本发布
  10. 对研发团队稳定性的思考
  11. 【测试】echo发送和接收TCP/UDP数据包|shell 发送TCP/UDP数据包
  12. matlab读取hdf显示,matlab读取hdf
  13. Python3抓取猫眼电影排行
  14. 2020年的成长印记
  15. 杭州电子科技大学acm--2006
  16. 【人脸属性分类】Deep Multi-task Multi-label CNN for Effective Facial Attribute Classification(FAC)
  17. php实现短信找回密码,thinkphp5怎么调用云片接口实现发送短信验证码找回密码功能...
  18. element-ui时间选择器如何把今日日期改为“至今”
  19. 飞秋(FeiQ)关闭好友上下线提示功能
  20. C语言 输入三个字符串,由小到大输出

热门文章

  1. WPF插件开发:使用FrameworkElementAdapters时VS报错的问题
  2. 【Spring】SpringMVC之REST编程风格
  3. Qt QTcpSocket 对连接服务器中断的不同情况进行判定
  4. pgsql_sql查询效率优化
  5. JavaScript- 正则表达式匹配汉字
  6. (一) : iview-form 表单循环数组 - 验证规则
  7. linux mpc boot 串口初始化,uboot移植阶段二--3串口终结篇
  8. The “data“ option should be a function that returns a per-instance value in component definitions
  9. typescript可辨识联合
  10. 通过 39 个 问答方式快速了解学习 Git