Saeed
Saeed

Reputation: 2099

Trouble using the right module version installed in pipenv environment

I'm trying to run some Python code in VS Code in an environment.

  1. Step one. Open cmd from the folder containing the environment, activate the environment, and run VS code enter image description here

then:

enter image description here

  1. Seems like VS Code has opened in the environment enter image description here
  2. But when I run some code, it complains that "Numba needs NumPy 1.21 or less" while pip freeze shows that that is indeed the case in that environment: enter image description here

So, what am I doing wrong here?

Upvotes: 0

Views: 22

Answers (1)

Abdulrahman Bres
Abdulrahman Bres

Reputation: 2923

This seems to be an issue with Numba incompatibility with NumPy.

Try to upgrade Numba (atleast to version 0.53).

pip install numba --upgrade

Upvotes: 0

Related Questions