Importing Numpy error

Importing Numpy error

1603600f
Explorer Explorer
1,764 Views
1 Reply
Message 1 of 2

Importing Numpy error

1603600f
Explorer
Explorer

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.

0 Likes
1,765 Views
1 Reply
Reply (1)
Message 2 of 2

goyals
Autodesk
Autodesk
0 Likes