日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

ERROR: Command errored out with exit status 1一例

發布時間:2023/12/20 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ERROR: Command errored out with exit status 1一例 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

完整報錯如下:

? 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一例的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。