python - 我无法从nexus pip Repositories 下载我的python 包
问题描述
我通过 nexus 创建了一个自我存储库,并通过 twine 将我自己的 python 包上传到 nexus 存储库,但我无法通过 pip install 安装它们。
我通过以下方式上传python包:
python setup.py sdist bdist_wheel
twine upload --repository-url http://127.0.0.1:8081/repository/wangs_host/ dist/*
我通过以下方式安装python包:
pip install -i http://127.0.0.1:8081/repository/wangs_host/ package_test_wangs
但它不起作用,我该怎么办?谢谢。
解决方案
索引 URL 不正确,它需要以“/simple”结尾。看这里:
推荐阅读
- python - 如何从字符串中删除某些符号?
- r - Reiterating through a list of matrices in R
- angular - ionic 3 Firestore 添加和更新功能错误
- spring-cloud - Spring Cloud Loadbalancer 可以和 Netflix Eureka 一起使用而不是 Netflix Ribbon 吗?
- python - 如何将变量添加到熊猫中的列标题
- node.js - How do I use nested schemas in mongoose, using 'type', to create arrays?
- c# - .NET Core 控制台应用程序 Mediatr 命令处理程序不会被调用
- .net - CPU 被垃圾收集用尽
- java - Android - Why people refer to a static context inline repeatedly, instead of pass it in the Method() once?
- python - How do I create a Python loop that will end at a specific time?