安装BlueJeans会议API客户端时,出现“pipenv需要一个#egg片段来控制版本依赖关系”的警告。

29

根据https://github.com/bluejeans/api-rest-meetings/tree/master/libs/python#pip-install的说明,我正在尝试在pipenv shell中运行

pipenv install git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo

然而,我收到了以下错误信息:

⠋警告:pipenv需要版本控制依赖项的#egg片段。请以git+https://github.com/bluejeans/api-rest-meetings.git#egg=的形式安装远程依赖项。

这是完整的命令和响应:

(lucy-web-CVxkrCFK) bash-3.2$ pipenv install git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo
Installing git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo...
⠋WARNING: pipenv requires an #egg fragment for version controlled dependencies. Please install remote dependency in the form git+https://github.com/bluejeans/api-rest-meetings.git#egg=<package-name>.
ABORTING INSTALL... You will have to reinstall any packages that failed to install.
You may have to manually run pipenv lock when you are finished.

我该如何获取此软件包的egg?或者更好的是,我怎样才能禁用指定egg的要求?

1个回答

39

Martijn Pieters在如何确定Github上Python包的egg名称?中描述了如何确定egg:查找包的setup.pyname参数。从https://github.com/bluejeans/api-rest-meetings/blob/master/libs/python/setup.py,这种情况下是BlueJeansMeetingsRestApi。因此,以下内容有效:

(lucy-web-CVxkrCFK) bash-3.2$ pipenv install git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo#egg=BlueJeansMeetingsRestApi
Installing git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo#egg=BlueJeansMeetingsRestApi...
⠇Warning: You installed a VCS dependency in non-editable mode. This will work fine, but sub-dependencies will not be resolved by $ pipenv lock.
  To enable this sub-dependency functionality, specify that this dependency is editable.
Collecting BlueJeansMeetingsRestApi from git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo#egg=BlueJeansMeetingsRestApi
  Cloning https://github.com/bluejeans/api-rest-meetings.git (to revision pip-repo) to /private/var/folders/dc/nv4yxcrd0zqd2dtxlj281b740000gn/T/pip-install-s0g6q9m5/BlueJeansMeetingsRestApi
Requirement already satisfied: urllib3>=1.15 in /Users/kurtpeek/.local/share/virtualenvs/lucy-web-CVxkrCFK/lib/python3.6/site-packages (from BlueJeansMeetingsRestApi) (1.23)
Requirement already satisfied: six>=1.10 in /Users/kurtpeek/.local/share/virtualenvs/lucy-web-CVxkrCFK/lib/python3.6/site-packages (from BlueJeansMeetingsRestApi) (1.11.0)
Requirement already satisfied: certifi in /Users/kurtpeek/.local/share/virtualenvs/lucy-web-CVxkrCFK/lib/python3.6/site-packages (from BlueJeansMeetingsRestApi) (2018.4.16)
Requirement already satisfied: python-dateutil in /Users/kurtpeek/.local/share/virtualenvs/lucy-web-CVxkrCFK/lib/python3.6/site-packages (from BlueJeansMeetingsRestApi) (2.6.0)
Building wheels for collected packages: BlueJeansMeetingsRestApi
  Running setup.py bdist_wheel for BlueJeansMeetingsRestApi: started
  Running setup.py bdist_wheel for BlueJeansMeetingsRestApi: finished with status 'done'
  Stored in directory: /private/var/folders/dc/nv4yxcrd0zqd2dtxlj281b740000gn/T/pip-ephem-wheel-cache-adn35yq2/wheels/9b/3f/9d/57d42cddf6b678af2c5d2c805a74b1f35102ab62d4da6f5d4e
Successfully built BlueJeansMeetingsRestApi
Installing collected packages: BlueJeansMeetingsRestApi
Successfully installed BlueJeansMeetingsRestApi-1.0.0

Adding git+https://github.com/bluejeans/api-rest-meetings.git@pip-repo#egg=BlueJeansMeetingsRestApi to Pipfile's [packages]...
Pipfile.lock (7950e0) out of date, updating to (584b28)...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Updated Pipfile.lock (584b28)!
Installing dependencies from Pipfile.lock (584b28)...
     ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 80/80  00:00:10

2
我不得不在 git+... 部分周围加上引号,然后它就可以工作了。谢谢! - amanatee

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接