我正在使用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 () -
我已经解决了这个问题。事后看来,我应该预见到这个问题。我未能将ext_modules值包含在顶层setup.py中(因此cython模块未编译)。调试的一个好提示:使用-v标志
相关问题 更多 >
编程相关推荐