Hi,

On 6 September 2010 09:35, gintare <[email protected]> wrote:

> I have several python installtions on WIndows7
>
> c:/first/Python26
> c:/secondEPD/Python26
> c:/Program Files (86) /Pythonxy
>
> would like be able to run sympy from first
> during installation i was in c:/first/sympy-0.6.7
> and used command python setup.py install --home='c:\\first\\Python26\
> \Lib\\site-packages\\sympy'
>
> after this sympy exists in folder given by home
> nevertheless
> c:/first/Python26> python
> >>>> import sympy, isympy
> # do not find modules
>
> >>>>import imp
> >>>> imp.find_module('sympy')
> >>>>imp.find_module('isympy')
> >>>>imp.find_mofule('isympy',
> 'c:\\first\\Python26\\Lib\\site-packages\\sympy\\bin)
> # do not find modules also
>
>
> What is wrong with installation?
>
>
> I can use isympy, sympy from EPD.
> Still it is interesting to know how to install and use this module
> from additional python installations in the same windows7.
>
>
You may consider modifying the PYTHONPATH shell variable. This is how it
works on Unix-like platforms:

$ python -c 'import sympy; print sympy.__version__'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named sympy

$ PYTHONPATH="/home/matt/repo/git/sympy" python -c 'import sympy; print
sympy.__version__'
0.6.7-git

By default I don't have sympy installed, so we get "import error" and in the
later case, I give a direct path to my development repository. On Window it
should work in a similar way, although you will need to consult
documentation for the exact syntax. Alternatively, you can modify python
path from inside the interpreter, via 'sys' module, e.g.:

$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sympy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named sympy
>>> import sys
>>> sys.path.insert(0, "/home/matt/repo/git/sympy")
>>> import sympy
>>> sympy.__version__
'0.6.7-git'

(just make sure that the requested version (installation) of sympy is the
first element of sys.path list).

>
> regards,
> gintare statkute
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <sympy%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.
>
>
Mateusz

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to