使用Conda从私人PYPI中安装Python包装

发布于 2025-02-01 16:37:18 字数 220 浏览 1 评论 0原文

我是Conda的新手,最近更改为带有M1芯片的MacBook,因此有些软件包更容易或仅与Conda一起安装,这就是为什么我使用Conda。

我想做的是,但是有了康达:

pip install --index-url https://<private-pypi> private-package

找不到实现这一目标的方法,我能做什么线索?

I'm new to Conda and recently changed to a MacBook with the M1 chip, so there are some packages that are easier or only available to install with Conda, that's why I'm using Conda.

What I'm trying to do is this but with Conda:

pip install --index-url https://<private-pypi> private-package

Couldn't find a way to achieve this, any clue what can I do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦醒时光 2025-02-08 16:37:18

如果您可以使用此模板在git中版本来帮助获取软件包:

pip install git+https://{token}@gitprovider.com/user/project.git@{version}

如果您需要在conda env中安装pip:

conda install pip

https://gist.github.com/jaza/jaza/fcea493dd0ba6ebf09d3

在pypi中,有一个私人pypi package:
https://pypi.org/prog/project/proivate/private-pypi/
但是我不知道它会为您提供多少帮助。我认为您不需要这个,您的用法听起来要简单得多。

在GitHub中,您需要确保您的存储库设置了开发人员令牌供您使用:
https://techglimpse.com/git-push-push-push--push-tlow-------- - 无通话/

If its versioned in git that you can use this template to help get package:

pip install git+https://{token}@gitprovider.com/user/project.git@{version}

If you need to install pip within your conda env:

conda install pip

This gist should help: https://gist.github.com/Jaza/fcea493dd0ba6ebf09d3

In PyPi, there is the private-pypi package:
https://pypi.org/project/private-pypi/
But I don't know how much its going to help you. I don't think you need this, your usage sounds much simpler.

In Github, you need to make sure your repository has developer tokens set up for you to use:
https://techglimpse.com/git-push-github-token-based-passwordless/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文