Thanks both advices seems to work with single python installation.

With many python installations on windows:
1) does not matter in which folder you are:
Is it possible to force to start certain python version (installed in
forlder c:/PythonVersion)
from any directory
in cmd
by command:    c:/PythonVersion/python

2) to install module to certain python version
you have to be in moduler folder there are setup,py file
cmd c:/PythonVersion/pyhton setup.py install
as an option parameter --home can be given, nevertheless c:/
PythonVersion/pyhton  installs correctly to c:/PythonVersion/pyhton/
Lib/site-packages


One more notice
cmd: python do not run the pyhton version of the working folder
I just find out that being in c:/first/Python26
cmd: python -- version
#gives Python 2.6.5 -- EPD 6.2-2
#instead of simple Pyhton26, which i expect
#I mean EPD is installed in c:/second/pythonEPD, although cmd always
run this Pyhton version.
#the only way to rund different pyhton version is to use command c:/
PythonVersion/python




On Sep 6, 12:22 pm, Mateusz Paprocki <[email protected]> wrote:
> 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- Hide quoted text -
>
> - Show quoted text -

-- 
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