Need help installing modules

193 views
Skip to first unread message

Michael McFarlane

unread,
Mar 28, 2014, 6:24:34 PM3/28/14
to spyd...@googlegroups.com
Hello,

I am running Spyder 2.2.0 on Windows 7. I would like to install the module iminuit but I do not know how to do so within Spyder and I cannot find the basic instructions.

I also tried installing it in my cygwin terminal. python setup.py install returned no errors, but then my cygwin python failed to find a library. I copied that error below. Is it a path issue? 

Thanks,
Mike

>>> from iminuit import Minuit
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "iminuit/__init__.py", line 8, in <module>
    from _libiminuit import *
ImportError: No module named _libiminuit

Uwe Fechner

unread,
Mar 29, 2014, 12:01:32 PM3/29/14
to spyd...@googlegroups.com
Hello,

I would not use cygwin for Python or spyder on Windows.

On the website (https://code.google.com/p/spyderlib/) is suggested to use either native Python
or Python(x,y) or WinPython or Anaconda.

I had good experiences using WinPython (http://winpython.sourceforge.net/).

After installing WinPython you can use easy_install to install any pure Python package from the
WinPython Command Prompt.

easy_install <package_name>

This might not work with iminuit, though, because it is not a pure python package.

My suggestion for using packages like iminuit, that do not exist in a version that was compiled
for windows is to leave windows (too many problems) and use Ubuntu in a virtual machine.

Compiling on Windows is difficult, on Linux very easy.

Best regards:

Uwe Fechner
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To post to this group, send email to spyd...@googlegroups.com.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Carlos Córdoba

unread,
Apr 2, 2014, 11:33:07 AM4/2/14
to spyd...@googlegroups.com
Hi,

After installing either PythonXY or Anaconda, please go to this page

http://www.lfd.uci.edu/~gohlke/pythonlibs/#iminuit

download and run the installer for iminuit that you need according to your architecture, i.e. either

iminuit‑1.1.1.win‑amd64‑py2.7.exe

or

iminuit‑1.1.1.win32‑py2.7.exe

Cheers,
Carlos

El 29/03/14 11:01, Uwe Fechner escribió:
Reply all
Reply to author
Forward
0 new messages