Trying to install QuTiP on Win 7 64 bit. Was receiving the error:
RuntimeError: Attempt to start a new process before the current process has finished its bootstrapping phase.
This probably means that you are on Windows and you have forgotten to use the proper idiom in the main module:
if __name__ == '__main__': freeze_support() ...
The "freeze_support()" line can be omitted if the program is not going to be frozen to produce a Windows executable.
> conda install mingw libpython
> python -m pip install qutip
>>> import qutip.testing as qt
>>> qt.run()
conda create -n py34 python=3.4 anaconda
activate py34
conda install mingw libpython
python -m pip install qutip
If you're using spyder, you can then use a batch file to launch spyder automatically in the 3.4 environment:
activate py34 & spyder
I've just found this link http://www.lfd.uci.edu/~gohlke/pythonlibs/ which is a collection of wheel files built for Windows by Christoph Gohlke, which includes QuTiP for 2.7, 3.4, and 3.5 (only 3.2.0.dev available), and makes the process far easier and less error prone.
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
QuTiP Version: 3.1.0
Numpy Version: 1.11.1
Scipy Version: 0.17.1
Cython Version: 0.24
Matplotlib Version: 1.5.1
Fortran mcsolver: False
scikits.umfpack: False
Python Version: 2.7.12
Platform Info: Windows (AMD64)
Installation path: C:\Anaconda2\lib\site-packages\qutip
And here are the errors (and failure). Any thoughts? Thanks!
======================================================================
ERROR: correlation: comparing me and mc for driven oscillator in ground state
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda2\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "C:\Anaconda2\lib\site-packages\qutip\tests\test_correlation.py", line 122, in test_compare_solvers_coherent_state_memc
solver="mc")[0]
File "C:\Anaconda2\lib\site-packages\qutip\correlation.py", line 238, in correlation_2op_2t
solver=solver, args=args, options=options)
File "C:\Anaconda2\lib\site-packages\qutip\correlation.py", line 1091, in _correlation_2t
args=args, options=options)
File "C:\Anaconda2\lib\site-packages\qutip\correlation.py", line 1297, in _correlation_mc_2t
1j*c_tau[1] + 1j*c_tau[3])
TypeError: ufunc 'add' output (typecode 'O') could not be coerced to provided output parameter (typecode 'D') according to the casting rule ''same_kind''
======================================================================
ERROR: Monte-carlo: Time-dependent H (str format)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda2\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "C:\Anaconda2\lib\site-packages\qutip\tests\test_mcsolve.py", line 362, in test_TDStr
ntraj=ntraj)
File "C:\Anaconda2\lib\site-packages\qutip\mcsolve.py", line 274, in mcsolve
_mc_func_load(config)
File "C:\Anaconda2\lib\site-packages\qutip\mcsolve.py", line 1001, in _mc_func_load
exec(code, globals())
File "<string>", line 1, in <module>
File "C:\Anaconda2\lib\site-packages\pyximport\pyximport.py", line 445, in load_module
language_level=self.language_level)
File "C:\Anaconda2\lib\site-packages\pyximport\pyximport.py", line 234, in load_module
exec("raise exc, None, tb", {'exc': exc, 'tb': tb})
File "C:\Anaconda2\lib\site-packages\pyximport\pyximport.py", line 216, in load_module
inplace=build_inplace, language_level=language_level)
File "C:\Anaconda2\lib\site-packages\pyximport\pyximport.py", line 192, in build_module
reload_support=pyxargs.reload_support)
File "C:\Anaconda2\lib\site-packages\pyximport\pyxbuild.py", line 102, in pyx_to_dll
dist.run_commands()
File "C:\Anaconda2\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Anaconda2\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Anaconda2\lib\site-packages\Cython\Distutils\build_ext.py", line 164, in run
_build_ext.build_ext.run(self)
File "C:\Anaconda2\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\Anaconda2\lib\site-packages\Cython\Distutils\build_ext.py", line 172, in build_extensions
self.build_extension(ext)
File "C:\Anaconda2\lib\distutils\command\build_ext.py", line 498, in build_extension
depends=ext.depends)
File "C:\Anaconda2\lib\distutils\ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "C:\Anaconda2\lib\distutils\cygwinccompiler.py", line 166, in _compile
raise CompileError, msg
ImportError: Building module rhs70047 failed: ["CompileError: command 'c:\\\\mingw\\\\bin\\\\gcc.exe' failed with exit status 1\n"]
======================================================================
ERROR: mesolve: time-dependence as string list
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda2\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "C:\Anaconda2\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:\Anaconda2\lib\site-packages\qutip\mesolve.py", line 270, in mesolve
progress_bar)
File "C:\Anaconda2\lib\site-packages\qutip\mesolve.py", line 619, in _mesolve_list_str_td
exec(code, globals())
File "<string>", line 1, in <module>
File "C:\Anaconda2\lib\site-packages\pyximport\pyximport.py", line 445, in load_module
language_level=self.language_level)
File "C:\Anaconda2\lib\site-packages\pyximport\pyximport.py", line 234, in load_module
exec("raise exc, None, tb", {'exc': exc, 'tb': tb})
File "C:\Anaconda2\lib\site-packages\pyximport\pyximport.py", line 216, in load_module
inplace=build_inplace, language_level=language_level)
File "C:\Anaconda2\lib\site-packages\pyximport\pyximport.py", line 192, in build_module
reload_support=pyxargs.reload_support)
File "C:\Anaconda2\lib\site-packages\pyximport\pyxbuild.py", line 102, in pyx_to_dll
dist.run_commands()
File "C:\Anaconda2\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Anaconda2\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Anaconda2\lib\site-packages\Cython\Distutils\build_ext.py", line 164, in run
_build_ext.build_ext.run(self)
File "C:\Anaconda2\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\Anaconda2\lib\site-packages\Cython\Distutils\build_ext.py", line 172, in build_extensions
self.build_extension(ext)
File "C:\Anaconda2\lib\distutils\command\build_ext.py", line 498, in build_extension
depends=ext.depends)
File "C:\Anaconda2\lib\distutils\ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "C:\Anaconda2\lib\distutils\cygwinccompiler.py", line 166, in _compile
raise CompileError, msg
ImportError: Building module rhs70049 failed: ["CompileError: command 'c:\\\\mingw\\\\bin\\\\gcc.exe' failed with exit status 1\n"]
======================================================================
FAIL: Superoperator: Randomized comparison of standard and reference
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda2\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "C:\Anaconda2\lib\site-packages\qutip\tests\test_superoper.py", line 184, in testLiouvillianImplem
assert_((L1 - L2).norm() < 1e-8)
File "C:\Anaconda2\lib\site-packages\numpy\testing\utils.py", line 75, in assert_
raise AssertionError(smsg)
AssertionError
----------------------------------------------------------------------
Ran 320 tests in 1303.183s
FAILED (SKIP=7, errors=3, failures=1)
--
FAIL: control.pulseoptim: Hadamard and QFT gate with linear initial pulses ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Anaconda2\lib\site-packages\nose\case.py", line 197, in runTest self.test(*self.arg) File "C:\Anaconda2\lib\site-packages\qutip-3.2.0.dev0_-py2.7-win-amd64.egg\qutip\tests\test_control_pulseoptim.py", line 159, in test_1_unitary err_msg="Unitary gradient outside tolerance") File "C:\Anaconda2\lib\site-packages\numpy\testing\utils.py", line 537, in assert_almost_equal raise AssertionError(_build_err_msg()) AssertionError: Arrays are not almost equal to 7 decimals Unitary gradient outside tolerance ACTUAL: 5.2530075151669027e-08 DESIRED: 0.0 ---------------------------------------------------------------------- Ran 453 tests in 1609.713s FAILED (SKIP=13, failures=1)
installing information is
QuTiP: Quantum Toolbox in Python Copyright (c) 2011 and later. Alexander Pitchford, Chris Granade, Paul D. Nation & Robert J. Johansson QuTiP Version: 3.2.0.dev0+ Numpy Version: 1.11.1 Scipy Version: 0.17.1 Cython Version: 0.24 Matplotlib Version: 1.5.1 Python Version: 2.7.12 Number of CPUs: 2 BLAS Info: INTEL MKL INTEL MKL Ext: True Platform Info: Windows (AMD64) Installation path: C:\Anaconda2\lib\site-packages\qutip-3.2.0.dev0_-py2.7-win-amd64.egg\qutip
At first,I have encountered several problems while downloading Qutip, but I was able to resolve them:
I am using windows 8 - 64 bits
Those my steps:
- 1) First download python(x,y) with a version 2.7.9 or less. I tried to use 2.7.10 and it didn’t work.
- 2) Download MinGW installer and download all the basic packets. I download it using this link:
https://sourceforge.net/projects/mingw/files/latest/download?source=files
- 3) Make sure that gcc.exe is in the directory C:\MinGW\bin\gcc.exe
- 4) Set the system environment variable Path to include C:\MinGW\bin by adding Comma to the existing lists. Make sure to change the Path variable in the system variable.
- 5) Last setup is to add distutils configuration file to the following path C:\Python27\Lib\distutils
And save it as distutils.cfg
[build]
compiler = mingw32
[build_ext]
compiler = mingw32
conda create -n qutip numpy scipy cython nose matplotlib mingwpy
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
conda config --append channels conda-forge
<span style="font-size: 12px; l
<font color="#404040" face="consolas, andale mono wt, andale mono, lucida console, lucida sans typewriter, dejavu sans mono, bitstream vera sans mono, liberation mono, nimbus mono l, monaco, courier new,
--
--
You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/DaxVxT8SWuI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+unsubscribe@googlegroups.com.
--
--
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
--
--
Please use this thread to discuss problems with and solutions to installing QuTiP on MS Windows
Free free to start a new thread if there is some specific issue.
--
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
conda create -n qutip-env python=3.4 pip numpy scipy cython mingwpy matplotlib nose jupyter notebook spyder
Copy the distutils.cfg to this new qutip-env conda env. You can now delete the qutip conda env
Run:
activate qutip-env
pip install qutip
sudo python setup.py install
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
conda install -c conda-forge qutip=4.0.2"
command. I ran the test from the "Anaconda Prompt" and it skipped a few, but otherwise it looked ok. I like to use Spyder, but I have a problem. If I make a .py file containing only the line--
conda config --append channels conda-forge
conda create -n qutip python=3 mkl numpy scipy cython matplotlib nose multiprocess jupyter notebook spyder
8) Tried to install using:
conda install qutip
It fails, first because they downloaded QuTiP 4.0 (not 4.1) and
complained about mismatch compatibility with Anaconda 3.6.
8) Tried install using:
pip install qutip
It fails, same error as before;
9) Downloaded Qutip from http://qutip.org/download.html, changed to the
unzipped folder containing setup.py and installed using
python setup.py install
It worked at first glance. However, after running qutip.testing overnight, it generated
errors, the first 2 I retrieved were those:
correlation: legacy me and es for oscillator in steady-state ... ERROR
correlation: comparing me and es for oscillator in steady-state ... ERROR
The final prompt message was "FAILED" and it counted 6 errors.
I wrote here as a feedback as well as a help request. Please let me know if you can guide me.
Regards,
Maurício
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
from qutip import *
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
--
--
--
--
--
--
--
Copyright (c) 2011 and later. Alexander Pitchford, Chris Granade, Paul D. Nation & Robert J. Johansson QuTiP Version: 4.1.0 Numpy Version: 1.12.1 Scipy Version: 0.19.0 Cython Version: 0.25.2 Matplotlib Version: 2.0.0 Python Version: 3.6.1 Number of CPUs: 4 BLAS Info: INTEL MKL OPENMP Installed: False INTEL MKL Ext: True Platform Info: Windows (AMD64) Installation path: C:\Anaconda3\envs\qutip-env\lib\site-packages\qutip
I don't know what the item ""OPENMP Installed: False"" means. Is there someway I can fix this?
Hope for your reply.
Thanks again.
Best wishes.
--
You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/DaxVxT8SWuI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/DaxVxT8SWuI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+unsubscribe@googlegroups.com.
--
Ok, great!Thanks for reporting back.All the best with your project.Alex
On 31 March 2017 at 17:49, <aiell...@gmail.com> wrote:
Hi Alex, everything is working now! Thanks a lot
Il giorno venerdì 23 ottobre 2015 18:32:05 UTC+2, Alex Pitchford ha scritto:Please use this thread to discuss problems with and solutions to installing QuTiP on MS WindowsFree free to start a new thread if there is some specific issue.
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.