dimanche 12 juillet 2020

AttributeError 'function' object has no attribute 'randint' - Trouble with importing Python Random Module

I'm banging my head against the wall trying to use the random module in my django app. I've searched this error, and all of the other Stack Overflow answers are telling me that I probably have another file called random.py that is interfering with the import. I've double checked and I don't have any stray random.py files, the only 3 files on my computer called random.py are the module files from my 3 python installs (2.7, 3.7, and 3.8.3). I've tried uninstalling and reinstalling python 3.8 as well, and that hasn't worked either. I am going crazy here!! Anyone have any ideas?

Proof I don't have random random.py files in my computer More proof




Aucun commentaire:

Enregistrer un commentaire