我正在使用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.导航到"here“链接,查看所有软件包的完整列表,结果如下:
Index of packages
global_toolkit.tar.gz导航到简单的索引会产生以下结果:
Simple Index
global-toolkit我还尝试使用全局工具包,而不是global_toolkit。
我正在寻找步骤来识别存在错误的层,并对其进行调试。谢谢。
更新
我找到了pip search命令。输出结果很奇怪:
(venv) root@managersvr:~# pip search --index http://<IP>:8080 global_toolkit
global_toolkit () - 发布于 2020-05-03 08:40:14
我已经解决了这个问题。事后看来,我应该预见到这个问题。我没有在顶层setup.py中包含Cython值(所以ext_modules模块没有编译)。一个很好的调试技巧:使用-v标志!
https://stackoverflow.com/questions/61566928
复制相似问题