使用"pip install --platform"在Windows上安装.so文件

3
pip -install的帮助文档中,我注意到了安装选项--platform。该选项是“仅使用与平台兼容的wheels。默认为运行系统的平台。” 我曾考虑使用这个选项在我的Windows机器上获取Linux二进制文件,但似乎无法按预期工作。
请问这个选项的正确语法是什么?“Wheel”具体是指什么? pip install --platform ubuntu --only-binary=:all: cryptography 返回错误:

ERROR: Could not find a version that satisfies the requirement cryptography (from versions: none)
ERROR: No matching distribution found for cryptography

编辑: 感谢您的回复。当我尝试在Windows机器上安装Linux .so文件时,无论使用何种版本的命令,都会出现相同的错误。
pip install --platform linux_x86_64 --only-binary=:all: cryptography

在加密文档中,它列出了各种受支持的Linux发行版。有人知道如何在Windows机器上获取cryptography.so文件吗?https://cryptography.io/en/latest/installation/
1个回答

1

Wheel是一种预构建的发行格式,与源分发(sdist)相比,提供更快的安装速度,特别是当项目包含编译扩展[2]时。

我认为ubuntu不是--platform选项的可能值。尝试使用类似linux_x86_64linux_i386的内容。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接