[英]AWS Codeartifact not pointing to private repository
Following the AWS instructions, I can authenticate codeartifact on Linux via按照 AWS 说明,我可以通过以下方式在 Linux 上验证 codeartifact
aws codeartifact login --tool twine --repository pypi-mystore --domain mydomain --dom ain-owner xxxxxxxxxxx aws codeartifact 登录 --tool twine --repository pypi-mystore --domain mydomain --dom ain-owner xxxxxxxxxxx
But when trying to pip install some packages I get the following error: 404 Client Error: Not Found for url: https://pypi.org/simple/mypackage/但是当尝试 pip 安装一些包时,我收到以下错误:404 客户端错误:url 未找到: https://pypi.org/simple/mypackage/
It looks like its pointing to pypi instead of my private repo它看起来像是指向 pypi 而不是我的私人仓库
Any suggestions would be appreciated任何建议,将不胜感激
After successful execution of the login command, it should write to the following config file with details.成功执行登录命令后,应将详细信息写入以下配置文件。 Please confirm if this happens indeed:请确认这是否确实发生:
~/.config/pip/pip.conf
Example:例子:
» cat ~/.config/pip/pip.conf
[global]
index-url = https://<TOKEN>@my-domain-123456789012.d.codeartifact.us-east-1.amazonaws.com/pypi/pypi-store/simple/
You may want to use pip
rather than twine
as the tool.您可能希望使用pip
而不是twine
作为工具。
aws codeartifact login --tool pip --repository pypi-mystore --domain mydomain --dom ain-owner xxxxxxxxxxx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.