Python 如何让pipenv安装包子依赖项

Python 如何让pipenv安装包子依赖项,python,git,pipenv,Python,Git,Pipenv,我有一个包,它有一个依赖项B(sg_包装器),它本身有一个依赖项C(shotgun_api3)。 使用pipenv安装时,我可以访问B(sg_包装器),但B本身无法导入C 这是我的档案 [[source]] name = "pypi" url = "https://pypi.org/simple" verify_ssl = true [dev-packages] [packages] edl = "*" timecode="

我有一个包,它有一个依赖项B(sg_包装器),它本身有一个依赖项C(shotgun_api3)。 使用pipenv安装时,我可以访问B(sg_包装器),但B本身无法导入C

这是我的档案

[[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"
这是包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'
    ]
)

您需要键入真实的包名

install_requires=[
        'package_name @ git+https://github.com/shotgunsoftware/python-api.git'
    ]

但你输入的是包裹的名称<代码>依赖项链接被宣布为过时,最后在
pip
19.0中。它的替代品是
install\u requires
with(从
pip
19.1开始受支持)。谢谢,我刚刚更改了它,我看不出有什么不同。谢谢,让我试试(几小时后)如果它起作用,请与您联系!