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 random.py in the tab for external libraries.

1 comment
Comment actions Permalink

Hi,

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) ?

0

Please sign in to leave a comment.