如何在 setup.py 文件中包含 conda 包依赖项?
How to include a conda package dependency in a setup.py file?
我正在为 Python 包处理 setup.py 文件。我想在我的包的“install_requires”依赖项中包含包“rdkit”。但是,这不起作用,因为 rdkit 不能直接通过 pip 安装。在这种情况下,我的首选方法是使用 conda (https://anaconda.org/rdkit/rdkit).
如果需要在 setup.py 文件中使用 conda 的软件包,是否有一种方法可以自动安装(或升级),类似于 install_requires 对 pip 可安装依赖项的作用?
非常感谢您的帮助
setup(
...
install_requires=[
'numpy >= 1.8.0',
'scipy >= 1.6.1',
],
)
Is there a way to automate the installation (or upgrade) if required of a package using conda in a setup.py file…?
不行,不行。 setup.py
用于 python setup.py install
或 pip install
,它对 conda
.
一无所知
也许应该以其他方式解决 — 从 conda
开始,然后 安装 pip-installable 软件包。
我正在为 Python 包处理 setup.py 文件。我想在我的包的“install_requires”依赖项中包含包“rdkit”。但是,这不起作用,因为 rdkit 不能直接通过 pip 安装。在这种情况下,我的首选方法是使用 conda (https://anaconda.org/rdkit/rdkit).
如果需要在 setup.py 文件中使用 conda 的软件包,是否有一种方法可以自动安装(或升级),类似于 install_requires 对 pip 可安装依赖项的作用?
非常感谢您的帮助
setup(
...
install_requires=[
'numpy >= 1.8.0',
'scipy >= 1.6.1',
],
)
Is there a way to automate the installation (or upgrade) if required of a package using conda in a setup.py file…?
不行,不行。 setup.py
用于 python setup.py install
或 pip install
,它对 conda
.
也许应该以其他方式解决 — 从 conda
开始,然后