Why is my python code not running on the console?

it’s been happening for all my codes. and if it’s errors, at least, it will give me a syntax error in the console, but it isn’t even passing the module installation, talk more of running the program

I’ve tried it. It ain’t working

To install a module, you need to type $ pip install whatever_module in the shell. This is because you probably turned off guessImports like you mentioned.

Afterwards, once you are done importing all the necessary imports, run the code and check for any errors and fix them.

1 Like

Please don’t dupe topics, but my answer is this:

2 Likes

it’s a replit problem: reinstalling numpy takes WAY too long and it’s downgrading it so :confused:

2 Likes

Thanks bro, this has been working. Just that it brings in ValueErrors from the module installation files

Are there any changes you suggested on this repl codes?

yes I did suggest minimal changes to get rid of runtime errors, now it’s up to you to fix logic errors

1 Like