python - Pip 在私有(private) github 存储库上安装 whl?

标签 python installation pip

如何从私有(private) github 存储库安装 .whl(python 库)?
我已经设置了个人访问 token ,如果它不是 .whl,可以使用以下命令安装该库

pip install git+https://{token}@github.com/{org_name}/{repo_name}.git
但是,如果 repo 中有 .whl 并且我想使用以下方法安装:
pip install git+https://{token}@github.com/{org_name}/{repo_name}/blob/master/{name.whl}

然后我收到以下错误:
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
我难住了!如果文件在本地但不是来自私有(private) github 存储库,您可以 pip install {name.whl}。
问题:如何在私有(private) github 存储库上 pip install name.whl?

最佳答案

你应该能够做到

pip install https://{token}@raw.githubusercontent.com/{user}/{repo}/master/{name.whl}

关于python - Pip 在私有(private) github 存储库上安装 whl?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68848055/

相关文章:

python-2.7 - 64 位 Windows 7 上的 Python 32 或 64?安装 easy_install 会有什么影响?

python - 如何使用子进程运行 virtualenv 包安装

python - 设置新的 REG_MULTI_SZ 值?

python - 从图形工具中的邻接矩阵创建加权图,python 接口(interface)

python - 有没有办法使用 pymysql 将数据帧插入到 mysql 中?

xcode - 如何确定我是否安装了 Xcode 命令行工具?

python - Django 中是否存在导致此 'NoReverseMatch' 的类型差异?

linux - 我可以在主目录中安装 Mercurial 吗?

.net - 是否可以自动化 ClickOnce 部署?

python - 安装 Flask-socketio 时遇到问题