Installing qutip on Windows

I had some problems installing Qutip on Windows.
I solved them by adding the MinGW32-xy path to the Windows path environment.
See details here.

======================================================================
ERROR: qutip.tests.test_correlation.test_str_list_td_corr
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "C:\Python27\lib\site-packages\qutip\tests\test_correlation.py", line 278
, in test_str_list_td_corr
sm.dag(), sm.dag() * sm, sm, args=args)
File "C:\Python27\lib\site-packages\qutip\correlation.py", line 393, in correl
ation_3op_2t
solver=solver, args=args, options=options)
File "C:\Python27\lib\site-packages\qutip\correlation.py", line 1087, in _corr
elation_2t
args=args, options=options)
File "C:\Python27\lib\site-packages\qutip\correlation.py", line 1125, in _corr
elation_me_2t
args=args, options=options).states
File "C:\Python27\lib\site-packages\qutip\mesolve.py", line 302, in mesolve
progress_bar)
File "C:\Python27\lib\site-packages\qutip\mesolve.py", line 619, in _mesolve_l
ist_str_td
exec(code, globals())
File "", line 1, in
File "C:\Python27\lib\site-packages\pyximport\pyximport.py", line 431, in load
_module
language_level=self.language_level)
File "C:\Python27\lib\site-packages\pyximport\pyximport.py", line 209, in load
_module
inplace=build_inplace, language_level=language_level)
File "C:\Python27\lib\site-packages\pyximport\pyximport.py", line 186, in buil
d_module
reload_support=pyxargs.reload_support)
File "C:\Python27\lib\site-packages\pyximport\pyxbuild.py", line 104, in pyx_t
o_dll
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\Cython\Distutils\build_ext.py", line 163,
in run
_build_ext.build_ext.run(self)
File "C:\Python27\lib\distutils\command\build_ext.py", line 337, in run
self.build_extensions()
File "C:\Python27\lib\site-packages\Cython\Distutils\build_ext.py", line 171,
in build_extensions
self.build_extension(ext)
File "C:\Python27\lib\distutils\command\build_ext.py", line 528, in build_exte
nsion
target_lang=language)
File "C:\Python27\lib\distutils\ccompiler.py", line 691, in link_shared_object

extra_preargs, extra_postargs, build_temp, target_lang)
File “C:\Python27\lib\distutils\cygwinccompiler.py”, line 260, in link
target_lang)
File “C:\Python27\lib\distutils\unixccompiler.py”, line 200, in link
raise LinkError, msg
ImportError: Building module rhs44480 failed: [“LinkError: command ‘gcc’ failed
with exit status 1\n”]

======================================================================
ERROR: qutip.tests.test_mcsolve.test_MCSimpleConstStr
———————————————————————-
Traceback (most recent call last):
File “C:\Python27\lib\site-packages\nose\case.py”, line 197, in runTest
self.test(*self.arg)
File “C:\Python27\lib\site-packages\qutip\tests\test_mcsolve.py”, line 324, in
test_MCSimpleConstStr
ntraj=ntraj)
File “C:\Python27\lib\site-packages\qutip\mcsolve.py”, line 274, in mcsolve
_mc_func_load(config)
File “C:\Python27\lib\site-packages\qutip\mcsolve.py”, line 1001, in _mc_func_
load
exec(code, globals())
File “”, line 1, in
File “C:\Python27\lib\site-packages\pyximport\pyximport.py”, line 431, in load
_module
language_level=self.language_level)
File “C:\Python27\lib\site-packages\pyximport\pyximport.py”, line 209, in load
_module
inplace=build_inplace, language_level=language_level)
File “C:\Python27\lib\site-packages\pyximport\pyximport.py”, line 186, in buil
d_module
reload_support=pyxargs.reload_support)
File “C:\Python27\lib\site-packages\pyximport\pyxbuild.py”, line 104, in pyx_t
o_dll
dist.run_commands()
File “C:\Python27\lib\distutils\dist.py”, line 953, in run_commands
self.run_command(cmd)
File “C:\Python27\lib\distutils\dist.py”, line 972, in run_command
cmd_obj.run()
File “C:\Python27\lib\site-packages\Cython\Distutils\build_ext.py”, line 163,
in run
_build_ext.build_ext.run(self)
File “C:\Python27\lib\distutils\command\build_ext.py”, line 337, in run
self.build_extensions()
File “C:\Python27\lib\site-packages\Cython\Distutils\build_ext.py”, line 171,
in build_extensions
self.build_extension(ext)
File “C:\Python27\lib\distutils\command\build_ext.py”, line 528, in build_exte
nsion
target_lang=language)
File “C:\Python27\lib\distutils\ccompiler.py”, line 691, in link_shared_object

extra_preargs, extra_postargs, build_temp, target_lang)
File “C:\Python27\lib\distutils\cygwinccompiler.py”, line 260, in link
target_lang)
File “C:\Python27\lib\distutils\unixccompiler.py”, line 200, in link
raise LinkError, msg
ImportError: Building module rhs44483 failed: [“LinkError: command ‘gcc’ failed
with exit status 1\n”]

======================================================================
ERROR: qutip.tests.test_mcsolve.test_TDStr
———————————————————————-
Traceback (most recent call last):
File “C:\Python27\lib\site-packages\nose\case.py”, line 197, in runTest
self.test(*self.arg)
File “C:\Python27\lib\site-packages\qutip\tests\test_mcsolve.py”, line 362, in
test_TDStr
ntraj=ntraj)
File “C:\Python27\lib\site-packages\qutip\mcsolve.py”, line 274, in mcsolve
_mc_func_load(config)
File “C:\Python27\lib\site-packages\qutip\mcsolve.py”, line 1001, in _mc_func_
load
exec(code, globals())
File “”, line 1, in
File “C:\Python27\lib\site-packages\pyximport\pyximport.py”, line 431, in load
_module
language_level=self.language_level)
File “C:\Python27\lib\site-packages\pyximport\pyximport.py”, line 209, in load
_module
inplace=build_inplace, language_level=language_level)
File “C:\Python27\lib\site-packages\pyximport\pyximport.py”, line 186, in buil
d_module
reload_support=pyxargs.reload_support)
File “C:\Python27\lib\site-packages\pyximport\pyxbuild.py”, line 104, in pyx_t
o_dll
dist.run_commands()
File “C:\Python27\lib\distutils\dist.py”, line 953, in run_commands
self.run_command(cmd)
File “C:\Python27\lib\distutils\dist.py”, line 972, in run_command
cmd_obj.run()
File “C:\Python27\lib\site-packages\Cython\Distutils\build_ext.py”, line 163,
in run
_build_ext.build_ext.run(self)
File “C:\Python27\lib\distutils\command\build_ext.py”, line 337, in run
self.build_extensions()
File “C:\Python27\lib\site-packages\Cython\Distutils\build_ext.py”, line 171,
in build_extensions
self.build_extension(ext)
File “C:\Python27\lib\distutils\command\build_ext.py”, line 528, in build_exte
nsion
target_lang=language)
File “C:\Python27\lib\distutils\ccompiler.py”, line 691, in link_shared_object

extra_preargs, extra_postargs, build_temp, target_lang)
File “C:\Python27\lib\distutils\cygwinccompiler.py”, line 260, in link
target_lang)
File “C:\Python27\lib\distutils\unixccompiler.py”, line 200, in link
raise LinkError, msg
ImportError: Building module rhs44484 failed: [“LinkError: command ‘gcc’ failed
with exit status 1\n”]

======================================================================
ERROR: qutip.tests.test_mesolve.TestMESolveTDDecay.testMETDDecayAsStrList
———————————————————————-
Traceback (most recent call last):
File “C:\Python27\lib\site-packages\nose\case.py”, line 197, in runTest
self.test(*self.arg)
File “C:\Python27\lib\site-packages\qutip\tests\test_mesolve.py”, line 432, in
testMETDDecayAsStrList
medata = mesolve(H, psi0, tlist, c_op_list, [a.dag() * a], args=args)
File “C:\Python27\lib\site-packages\qutip\mesolve.py”, line 270, in mesolve
progress_bar)
File “C:\Python27\lib\site-packages\qutip\mesolve.py”, line 619, in _mesolve_l
ist_str_td
exec(code, globals())
File “”, line 1, in
File “C:\Python27\lib\site-packages\pyximport\pyximport.py”, line 431, in load
_module
language_level=self.language_level)
File “C:\Python27\lib\site-packages\pyximport\pyximport.py”, line 209, in load
_module
inplace=build_inplace, language_level=language_level)
File “C:\Python27\lib\site-packages\pyximport\pyximport.py”, line 186, in buil
d_module
reload_support=pyxargs.reload_support)
File “C:\Python27\lib\site-packages\pyximport\pyxbuild.py”, line 104, in pyx_t
o_dll
dist.run_commands()
File “C:\Python27\lib\distutils\dist.py”, line 953, in run_commands
self.run_command(cmd)
File “C:\Python27\lib\distutils\dist.py”, line 972, in run_command
cmd_obj.run()
File “C:\Python27\lib\site-packages\Cython\Distutils\build_ext.py”, line 163,
in run
_build_ext.build_ext.run(self)
File “C:\Python27\lib\distutils\command\build_ext.py”, line 337, in run
self.build_extensions()
File “C:\Python27\lib\site-packages\Cython\Distutils\build_ext.py”, line 171,
in build_extensions
self.build_extension(ext)
File “C:\Python27\lib\distutils\command\build_ext.py”, line 528, in build_exte
nsion
target_lang=language)
File “C:\Python27\lib\distutils\ccompiler.py”, line 691, in link_shared_object

extra_preargs, extra_postargs, build_temp, target_lang)
File “C:\Python27\lib\distutils\cygwinccompiler.py”, line 260, in link
target_lang)
File “C:\Python27\lib\distutils\unixccompiler.py”, line 200, in link
raise LinkError, msg
ImportError: Building module rhs44486 failed: [“LinkError: command ‘gcc’ failed
with exit status 1\n”]

======================================================================
ERROR: qutip.tests.test_mesolve.TestMESolverConstDecay.testMEDecayAsStrList
———————————————————————-
Traceback (most recent call last):
File “C:\Python27\lib\site-packages\nose\case.py”, line 197, in runTest
self.test(*self.arg)
File “C:\Python27\lib\site-packages\qutip\tests\test_mesolve.py”, line 365, in
testMEDecayAsStrList
medata = mesolve(H, psi0, tlist, c_op_list, [a.dag() * a], args=args)
File “C:\Python27\lib\site-packages\qutip\mesolve.py”, line 270, in mesolve
progress_bar)
File “C:\Python27\lib\site-packages\qutip\mesolve.py”, line 619, in _mesolve_l
ist_str_td
exec(code, globals())
File “”, line 1, in
File “C:\Python27\lib\site-packages\pyximport\pyximport.py”, line 431, in load
_module
language_level=self.language_level)
File “C:\Python27\lib\site-packages\pyximport\pyximport.py”, line 209, in load
_module
inplace=build_inplace, language_level=language_level)
File “C:\Python27\lib\site-packages\pyximport\pyximport.py”, line 186, in buil
d_module
reload_support=pyxargs.reload_support)
File “C:\Python27\lib\site-packages\pyximport\pyxbuild.py”, line 104, in pyx_t
o_dll
dist.run_commands()
File “C:\Python27\lib\distutils\dist.py”, line 953, in run_commands
self.run_command(cmd)
File “C:\Python27\lib\distutils\dist.py”, line 972, in run_command
cmd_obj.run()
File “C:\Python27\lib\site-packages\Cython\Distutils\build_ext.py”, line 163,
in run
_build_ext.build_ext.run(self)
File “C:\Python27\lib\distutils\command\build_ext.py”, line 337, in run
self.build_extensions()
File “C:\Python27\lib\site-packages\Cython\Distutils\build_ext.py”, line 171,
in build_extensions
self.build_extension(ext)
File “C:\Python27\lib\distutils\command\build_ext.py”, line 528, in build_exte
nsion
target_lang=language)
File “C:\Python27\lib\distutils\ccompiler.py”, line 691, in link_shared_object

extra_preargs, extra_postargs, build_temp, target_lang)
File “C:\Python27\lib\distutils\cygwinccompiler.py”, line 260, in link
target_lang)
File “C:\Python27\lib\distutils\unixccompiler.py”, line 200, in link
raise LinkError, msg
ImportError: Building module rhs44487 failed: [“LinkError: command ‘gcc’ failed
with exit status 1\n”]

———————————————————————-
Ran 320 tests in 2194.236s

FAILED (SKIP=7, errors=5)