Re: Import qutip error

92 views
Skip to first unread message

Alex Pitchford

unread,
Sep 20, 2017, 10:46:41 AM9/20/17
to qu...@googlegroups.com
I think you may be trying to run qutip from within the installation directory

On 15 September 2017 at 17:45, Tamin Tai <tami...@gmail.com> wrote:

To whom it will concern


I have installed the Qutip 4.2.0 using "conda install qutip" command in the terminal and get a successful message.  However when I try to import the qutip from the python, I always get a module not found error.   The following is error message.


=============================begin message==========================

[1] from qutip import *

---------------------------------------------------------------------------

ModuleNotFoundError                       Traceback (most recent call last)

<ipython-input-1-674d9281af88> in <module>()

----> 1 from qutip import *


/Users/tamintai/qutip/__init__.py in <module>()

    169 

    170 # core

--> 171 from qutip.qobj import *

    172 from qutip.states import *

    173 from qutip.operators import *


/Users/tamintai/qutip/qobj.py in <module>()

     58 import qutip.settings as settings

     59 from qutip import __version__

---> 60 from qutip.fastsparse import fast_csr_matrix, fast_identity

     61 from qutip.cy.ptrace import _ptrace

     62 from qutip.permute import _permute


/Users/tamintai/qutip/fastsparse.py in <module>()

    404 #Need to do some trailing imports here

    405 #-------------------------------------

--> 406 from qutip.cy.spmath import (zcsr_transpose, zcsr_adjoint, zcsr_mult)


/Users/tamintai/qutip/cy/__init__.py in <module>()

----> 1 from qutip.cy.spmatfuncs import *


ModuleNotFoundError: No module named 'qutip.cy.spmatfuncs'

=========================END message============================

Is there anyone who can help me out?  Thank you very much for your help.


Best regards

Tamin Tai.


--
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.
For more options, visit https://groups.google.com/d/optout.

Alex Pitchford

unread,
Sep 20, 2017, 10:47:52 AM9/20/17
to qu...@googlegroups.com
I see Paul helped you in another thread
Reply all
Reply to author
Forward
0 new messages