Data Analysis with Python Projects - Mean-Variance-Standard Deviation Calculator

Tell us what’s happening:
I am trying to start the project. The replit code does not set up numpy properly. From looking around online and on this forum, it appears to be primarily the .replit not being filled out properly. The 2 things I have done that appear to work (they make the red squiggle under ‘import numpy’ go away:
pip install numpy (in the shell)
and modifying my replit.nix to be:
{ pkgs }: {
deps = [
pkgs.python38Full
pkgs.python38Packages.matplotlib
pkgs.python38Packages.numpy
pkgs.python38Packages.pandas
pkgs.python38Packages.seaborn
];
}
Unfortunately, when I do this, it runs infinitely and ends up overheating the virtual CPU. Any advice? How did you guys get around this for the project??
Any advice is appreciated, I am mostly annoyed to not even be able to begin!

Challenge: Data Analysis with Python Projects - Mean-Variance-Standard Deviation Calculator

Link to the challenge:

pip install numpy should be sufficient to get numpy. Maybe try impotin the replit again and just use that command.

Can you share a link to your replit or or code to see what’s causing the CPU to max out? You can try commenting out the test call at the end of main.py while writing your code.

You could also complete the main work in something else like Google Colab

Interesting. The red squiggle under ‘numpy’ still wouldn’t go away, but once I wrote functioning code I was still able to use the numpy library… so I guess it is resolved and I should have just been ignoring it.
(the exact error said something along the lines of: ‘there was an issue with your import: numpy’)

Thank you for the response!

1 Like

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