安装 BlueJeans 会议 API 客户端时出现“pipenv 需要 #egg 片段以获取版本控制的依赖项”警告
Posted
技术标签:
【中文标题】安装 BlueJeans 会议 API 客户端时出现“pipenv 需要 #egg 片段以获取版本控制的依赖项”警告【英文标题】:"pipenv requires an #egg fragment for version controlled dependencies" warning when installing the BlueJeans meeting API client 【发布时间】:2018-12-14 12:55:34 【问题描述】:调整来自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
?或者更好的是,我怎样才能禁用指定鸡蛋的要求?
【问题讨论】:
【参考方案1】:Martijn Pieters 在How to determine the name of an egg for a Python package on Github? 中描述了如何确定鸡蛋:在包的setup.py
中查找setup()
函数的name
参数。来自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
【讨论】:
以上是关于安装 BlueJeans 会议 API 客户端时出现“pipenv 需要 #egg 片段以获取版本控制的依赖项”警告的主要内容,如果未能解决你的问题,请参考以下文章
在 iOS 上启动 BlueJeans 应用程序的 URL 方案?
如何获取 BlueJeans REST API 的 user_id 或 enterprise_id?
使用 microsoft graph api c# 创建在线会议时出现 404 错误,但未登录 AzureActiveDirectory