Importing numpy library to TexGen

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
TexGenUser131579
Posts: 2
Joined: Sat Jul 30, 2022 1:26 pm

Importing numpy library to TexGen

Post by TexGenUser131579 »

Hello,

how is it possible to import the numpy library into TexGen?

I downloaded a numpy version suitable for Python 2.7 from the numpy homepage (version 1.16.6, non amd64) as a zip file
and extracted it. Then tried to import it with these lines using the whole path where numpy is saved:

sys.path.append('C:\\Program Files\\...')
import numpy

But I got the error:
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.

Kind regards
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: Importing numpy library to TexGen

Post by louisepb »

Hi,
This isn't something that I have done myself but it sounds like it is probably a path issue. If you do a search on the forum there are a couple of threads about using numyp with TexGen including this one: http://texgen.sourceforge.net/phpBB3/vi ... umpy#p7304

Hopefully one of those will answer your question.
Best wishes,
Louise
Post Reply