我正在尝试使用以下命令通过 pip 进行本地安装:
# while positioned at the repository's root
pip3 install -e installator
并收到以下错误:
Installator should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+
您还可以尝试导航到您的主目录并提供:
pip install -e .
你应该做
pip3 install -e git+YOUR-GITHUB-URL#egg=YOUR_PACKAGE_NAME
例子:
pip3 install -e git+https://github.com/user/repo.git#egg=mypackagename
参考和更多文档:
https ://pip.pypa.io/en/stable/reference/pip_install/#examples