Need help to fix ImportError: No module named numpy

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
pmbyy
Posts: 3
Joined: Tue Sep 24, 2019 8:50 pm

Need help to fix ImportError: No module named numpy

Post by pmbyy »

Hello,

I need some help to resolve issues on importing Numpy and Pandas. Appreciate it if you can share a solution.

Script:
import numpy as np

Error message:
<1> execfile(r"C:\Program Files\TexGen\Weave1.py")
Traceback (most recent call last):
File "gui", line 1, in <module>
File "C:\Program Files\TexGen\Weave1.py", line 9, in <module>
import numpy as np
ImportError: No module named numpy

Currently installed releases are Python2.7.16 and TexGen3.10.0, both in 64 bit. I tried different combinations of 32/64-bit and bundle/non bundle.

OS: Windows 10 pro, 64 bit.

Thanks,
Yong
pmbyy
Posts: 3
Joined: Tue Sep 24, 2019 8:50 pm

Re: Need help to fix ImportError: No module named numpy

Post by pmbyy »

FYI. The problem was solved by overwriting the python27.dll in the TexGen directory with the one in the Python27 directory.
Post Reply