Message 1 of 2
Importing Numpy error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there.
Hi, am a student and I have been trying to solve this issue.
My steps were:
1) pip install numpy
2) Go to python site-packeges and copy all the numpy files(numpy &numpy-1.15.4.dist-info)
3)Go to my script, put into my file called Modules
4)add code on my script: from .Modules import numpy as np
I did these fro my xrld & xlwt python modules, and it works perfectly.
Thank you.