使用 Pipenv 环境中安装的正确模块版本时出现问题

问题描述 投票:0回答:1

我正在尝试在环境中的 VS Code 中运行一些 Python 代码。

  1. 第一步。从包含环境的文件夹中打开cmd,激活环境并运行VS代码 enter image description here

然后:

enter image description here

  1. 环境中好像已经打开了 VS Code enter image description here
  2. 但是当我运行一些代码时,它抱怨“Numba 需要 NumPy 1.21 或更少”,而 pip freeze 显示在该环境中确实是这种情况: enter image description here

那么,我在这里做错了什么?

python-3.x pipenv
1个回答
0
投票

这似乎是 Numba 与 NumPy 不兼容的问题。

尝试升级 Numba(至少到版本 0.53)。

pip install numba --upgrade
© www.soinside.com 2019 - 2024. All rights reserved.