[英]how can I get pipenv to install package sub dependencies
I have a package that has a dependency B (sg_wrapper) which itself has a dependency C (shotgun_api3).我有一个 package,它有一个依赖 B(sg_wrapper),它本身有一个依赖 C(shotgun_api3)。 When installing with pipenv, I have access to B (sg_wrapper), but B itself fails to import C.使用 pipenv 安装时,我可以访问 B (sg_wrapper),但 B 本身无法导入 C。
This is my pipfile这是我的 pipfile
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
edl = "*"
timecode="*"
sg_wrapper = {git = "git+https://gitlab.com/kickstartent/sg_wrapper.git", editable=true}
[requires]
python_version = "3.7"
This is package B setup.py这是 package B setup.py
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="Shotgun wrapper",
version="0.0.1",
author="",
author_email="",
description="shotgun wrapper",
long_description=long_description,
long_description_content_type="text/markdown",
url="hidden",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=[
'package_name @ git+https://github.com/shotgunsoftware/python-api.git'
]
)
You need to type the real package name.您需要输入真正的 package 名称。
install_requires=[
'package_name @ git+https://github.com/shotgunsoftware/python-api.git'
]
But you typed package_name instead!!!但是您输入的是 package_name !!!
For example:例如:
install_requires=[
pycocotools @ git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI
]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.