简体   繁体   English

无法解析主机:@github.com 与 pipenv

[英]Could not resolve host: @github.com with pipenv

Hello I am trying to install a python package with pipenv, the package is in a private repository and I am using access token in order to download it.您好,我正在尝试使用 pipenv 安装 python package,package 位于私有存储库中,我正在使用访问令牌来下载它。

The problem is that when I execute pipenv I got the following error:问题是当我执行 pipenv 时出现以下错误:

Could not resolve host: @github.com无法解析主机:@github.com

The GitHub URL is https://token@github.com/user/repo, and when I put it into the browser I can get access to it. GitHub URL 是 https://token@github.com/user/repo,当我将它放入浏览器时,我可以访问它。

The GitHub token has the following permissions: GitHub 令牌具有以下权限:

在此处输入图像描述

Any idea about why cannot download install with pipenv?关于为什么无法使用 pipenv 下载安装的任何想法?

Thanks谢谢

UPDATE I used the following examples:更新我使用了以下示例:

pipenv install -e "git://token@github.com/user/repo#egg=package"

WARNING: not enough values to unpack (expected 2, got 1)警告:没有足够的值来解包(预期 2,得到 1)

pipenv install -e "git+http://token@github.com/user/repo#egg=package"

pipenv install -e "git+https://token@github.com/user/repo#egg=package"

Could not resolve host: @github.com无法解析主机:@github.com

Finally, it only worked putting the package in the pipenv file and installing.最后,它只能将 package 放入 pipenv 文件并安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我使用 https://github.com/amosbastian/fpl 访问 FPL API 的代码会失败? - Why could my code to access the FPL API using https://github.com/amosbastian/fpl be failing? curl:无法解析主机 - curl: could not resolve host 无法解析主机:> - Could not resolve host: > Lasso.py 不包含在 github.com/scikit-learn 中 - Lasso.py is not included in github.com/scikit-learn 错误:由于 OSError 无法安装软件包:HTTPSConnectionPool(host='codeload.github.com', port=443) - ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='codeload.github.com', port=443) 如何使用 GitHub 页面 https://github.com/ 使用 Selenium 和 ZA7F5F35426B923741BFC31 单击登录元素 - How to click on the Sign in element with GitHub page https://github.com/ using Selenium and Python 代码python中的深层anpr错误?https://github.com/matthewearl/deep-anpr - deep anpr error in code python ?https://github.com/matthewearl/deep-anpr 错误:无法将一些引用推送到“https://github.com/loliadus/djangolocallibrary.git” - error: failed to push some refs to 'https://github.com/loliadus/djangolocallibrary.git' python simhash导入问题[github.com/seomoz/simhash-py] - python simhash import issue [github.com/seomoz/simhash-py] 我如何登录“ https://github.com/NoMore201/googleplay-api” - How do I login in “https://github.com/NoMore201/googleplay-api”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM