ModuleNotFoundError: No module named 'numpy'

Question:
numpy was not imported

Current behavior:
import numpy as np
ModuleNotFoundError: No module named ‘numpy’

Desired behavior

Repl link:
https://replit.com/@evmonan/boilerplate-mean-variance-standard-deviation-calculator

code snippet

Try typing in pip install numpy into the shell.

Also, welcome to the community, @evmonan!

2 Likes

I recommend using poetry or upm add numpy instead when using the official Replit Python template. :slight_smile:

3 Likes

not sure what caused your poetry.lock to break. Run in Shell

rm poetry.lock&poetry install
2 Likes

It worked! Thank you very much!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.