Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] python sympy module (resolved)

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] python sympy module (resolved)


Chronological Thread 
  • From: Julien Frontisi <address@hidden>
  • To: texmacs-users <address@hidden>
  • Subject: Re: [TeXmacs] python sympy module (resolved)
  • Date: Sun, 29 Jun 2014 19:33:10 +0200

Sorry for all the fuss.
I'll explain what happened in case it might help someone.
There are at least two versions of python on my computer :
- one bundled by Apple with the OS, accessed from the terminal by calling '/usr/bin/python' and used by texmacs
- another one, more recent, called from the terminal with just 'python'
I was trying to install sympy but it did not work with texmacs because I installed it with 
the command 
python setup.py install
instead of using 
/usr/bin/python setup.py install
The second command makes sympy work with texmacs now.
Of course it would be nice to be able to choose which version of python texmacs uses.
Bye
Julien

Le 29 juin 2014 à 13:07, Julien Frontisi <address@hidden> a écrit :

Hi again,
the previous attempts were made on my desktop with mac os 10.9.
on my laptop with mac os 10.7, the python plugin shows python version number 2.7.1
which is the python installed by Apple in /System. I don't think I can change this python nor add any new module to it.
How can I force the python plugin in texmacs to use the /Library one, as the terminal does ?
And how can I make it use the new modules ?
Thanks
Julien


Le 29 juin 2014 à 10:43, Julien Frontisi <address@hidden> a écrit :

Hi,
I'm using the python plugin in mac os texmacs app but cannot import sympy module.
Some other modules like numpy, for example, work fine but importing sympy just gives :

> Traceback (most recent call last):
> ImportError: No module named sympy

On the other hand, using python on the terminal (without texmacs) works fine.

Maybe texmacs plugin uses a different python installation from the one the terminal is using.
The latter is /Library/Frameworks/Python.framework/Versions/2.7/bin/python
and there is another one in /System/Library/Frameworks/
but I don't know how to check which one texmacs is using.

Has anyone got sympy module working in python plugin ?
Thanks
Julien





Archive powered by MHonArc 2.6.19.

Top of Page