PyPiServer调试“找不到满足要求的版本”

2024-04-28 12:06:03 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用PyPiServer创建一个私有包存储库。我在一个VPS实例上提供此服务,并尝试从另一个实例进行pip安装

从pip回溯:

root@managersvr:~# pip install --index-url http://<IP>:8080/simple/ global_toolkit --trusted-host <IP>
  Could not find a version that satisfies the requirement global_toolkit (from versions: )
No matching distribution found for global_toolkit
root@managersvr:~# 

来自PyPi的服务器日志:

[02/May/2020 23:57:10] "GET /simple/global-toolkit/ HTTP/1.1" 200 313

我正在努力调试。迄今采取的步骤: -我已经运行了pip install --upgrade pip -我已在浏览器中导航到PyPi IP地址,该地址正确显示:

Welcome to pypiserver!
This is a PyPI compatible package index serving 1 packages.

To use this server with pip, run the following command:

        pip install --index-url http://<IP>:8080/simple/ PACKAGE [PACKAGE2...]

To use this server with easy_install, run the following command:

        easy_install --index-url http://<IP>:8080/simple/ PACKAGE [PACKAGE2...]

The complete list of all packages can be found here or via the simple index.

This instance is running version 1.3.2 of the pypiserver software.

导航到“此处”链接以获得所有软件包的完整列表:

Index of packages
global_toolkit.tar.gz

导航到简单指数收益率:

Simple Index
global-toolkit

我还尝试使用全局工具箱而不是全局工具箱

我正在寻找步骤,以确定有错误的层,并调试它。谢谢

更新

我找到了pip搜索命令。奇怪的是,输出是:

(venv) root@managersvr:~# pip search --index http://<IP>:8080 global_toolkit
global_toolkit ()  - 

Tags: installpipofthe实例iphttpurl