Issue
In jupyter notebook server, importing numpy
or pandas
is okay.
pic
However, by using python3
or python
in commandline, I am not able to import anything because of a package named SystemRandom. pic2
Can anyone give me some suggestions?
Much Appreciated!
Solution
You have a file random.py on your Users folder ("/Users/chenyao/random.py") this file is interfering with the numpy import. You have two options:
- rename the file
- change directory
Answered By - Giorgos
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.