[英]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.