【发布时间】:2022-02-15 04:35:41
【问题描述】:
我需要在我们的组织中设置 conda 使用 pypi local antifactory 来安装包。
这可能吗?这样当我运行 conda install package_name 时,它会从我们的本地 pypi 服务器中提取它。
请注意,对于 pip,我已将 pip 配置更改为如下,它是从本地 pypi 中提取的
[global]
index-url = https://artifactory-qa.my_organization.net/artifactory/api/pypi/pypi-virtual/simple
我尝试过的: 我在项目中创建了一个yaml文件
name: conda_env
channels:
- defaults
dependencies:
- python
- pip
- pip
- --extra-index-url https://artifactory-qa.my_company.net/artifactory/api/pypi/pypi-virtual/simple
- pytest
然后运行conda env create -f conda_env.yaml
它仍然没有为我创造环境,这是错误:
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'conda.anaconda.org\', port=443): Max retries exceeded with url: /conda-forge/win-64/repodata.json (Caused by SSLError("Can\'t connect to
HTTPS URL because the SSL module is not available."))'))
【问题讨论】:
标签: python pip conda artifactory jfrog