Can't import random

Hello I have been trying different IDEs and such. From IDLE, Jupyter Notebook, Spyder, Visual Studio Code, Sublime, and now PyCharm. This is the first time I have had this problem that it won't import the random module. I even went back to the others to see if importing random still worked and it does on the others, so this is diffidently a PyCharm problem. I have googled and searched for an answer, but to no avail. The Interpreter is set to Python 3.7 and the Anaconda3\python.exe. I can even see in the tab for external libraries.

1 comment
Comment actions Permalink


What error do you get when importing `random`? Can you import `random` from python shell launched from system terminal, not using IDE, but using the same interpreter (Anaconda3/python.exe) ?


Please sign in to leave a comment.