python - 如何在 Windows 10 上安装 py-spy?

标签 python pip windows-10

我想在我的 Windows 10(64 位)机器上安装 py-spy,但我似乎总是遇到以下错误:

F:\downloads>python --version
Python 3.8.3

F:\downloads>python -m pip install py-spy
ERROR: Could not find a version that satisfies the requirement py-spy
ERROR: No matching distribution found for py-spy

这很奇怪,因为 py-spy 网站和该论坛上的另一篇帖子说使用 pip 是正确的。 由于 pip 方法不起作用,我决定尝试从 py-spy 网站上提供的预构建轮安装包。但是,我不断收到以下错误消息:

F:\downloads>pip install py_spy-0.3.3-py2.py3-none-win_amd64.whl
ERROR: py_spy-0.3.3-py2.py3-none-win_amd64.whl is not a supported wheel on this platform.

有什么我想念的吗?

提前致谢。

注意:我尝试以普通用户和管理员身份同时使用 cmd.exe 和 powershell.exe 安装 py-spy,但没有成功。

最佳答案

如果您在 32 位操作系统中运行,则不支持;检查段落:Does py-spy support 32-bit Windows? Integrate with PyPy? Work with USC2 versions of Python2?

Not yet =).

If there are features you’d like to see in py-spy either thumb up the appropiate issue or create a new one that describes what functionality is missing.

编辑

也尝试下载 64 位的 Python!

要检查您正在运行的 Python 版本(32 位或 64 位),请在任何 shell 中运行 Python,第一行应显示:

Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)] 

其中 [MSC v.1927 64 位 (AMD64)] 表示 64 位 Python。

关于python - 如何在 Windows 10 上安装 py-spy?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65479664/

相关文章:

python - 在 Flask 中是否有使用 API key 进行身份验证的公认方法?

python - 构建 python pypi 轮子,通常的噩梦

Python 设置.py : ask for configuration data during setup

c# - Windows 10 11 月更新后 Active Directory ValidateCredentials 中断

audio - 为什么Windows文件属性对于48 kHz,16位编码显示位速率:1152 kBit/s?

installation - 从闪存驱动器运行 SAS 9.4

python - django Wagtail 嵌入视频未显示

python - Mongoengine 弃用警告 : insert is deprecated

Python 3.3 - 将字典粘贴到 Excel

python - 模块 'importlib._bootstrap' 没有属性 '_w_long'