我尝试了几个小时,得到了这个:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-UWeLSq-build/
Command '['/bin/sh', '/tmp/tmpkajulyzd', 'python2',
'/home/adi/Eclipse-Workspace/cumulus/parts/cumulus/install/usr/bin/pip2',
'install', '--global-option=build_ext',
'--global-option=-I/home/adi/Eclipse-Workspace/cumulus/parts/cumulus/install/usr/include/python2.7',
'--target', '/home/adi/Eclipse-Workspace/cumulus/parts/cumulus/install/usr/lib/python2.7/site-packages',
'.']' returned non-zero exit status 1
我已阅读过指南,也已查看过示例,其中唯一一个使用 python 的示例是一个不需要依赖项的小脚本。
编辑,yaml 的内容:
name: cumulus
version: "1.0.0"
summary: Test summary
description: Test description
confinement: devmode
apps:
cumulus:
command: python2 cumulus
parts:
cumulus:
plugin: python2
source: https://github.com/kd8bny/cumulus.git
source-type: git
答案1
问题是我有两个版本pip
:
- 一个安装使用
sudo apt-get python-pip
- 一个安装使用
pip install -U pip setuptools
snapcraft
当第二条命令用于安装另一个版本的 pip 时, 显然不知道从哪里复制它。