Hi Mac,

I guess you are using our DMG, given your version. Then you have to go to:

Spyder > Preferences > Console > Advanced Settings > PYTHONSTARTUP replacement

and select the option

Default PYTHONSTARTUP script

Cheers,
Carlos

El 20/09/13 10:19, [email protected] escribió:
I am using 2.2.1 for Mac, I installed the anaconda distribution that came with the mac *.dmg-file, but my virtualenv seems to be creating an environment from a different python-distribution on my Mac, I installed python27 through homebrew recently, and also have an Enthought python-distribution installed.
I don't know from which one the virtualenv stems.

thanks for the quick reply!

On Friday, September 20, 2013 2:25:06 PM UTC+2, Carlos Córdoba wrote:

    Hi Max,

    What is your Spyder version? Are you running it under Anaconda or
    MacPorts?

    El 20/09/13 07:20, [email protected] <javascript:> escribió:
    Hello,
    I managed to let spyder use the virtualenv that I created
    (including pip install numpy/scipy/matplotlib/sip).
    When I however want to import matplotlib.pyplot I get:

     import matplotlib.pyplot as plt
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File
    
"/Users/mt/.virtualenvs/def2/lib/python2.7/site-packages/matplotlib/pyplot.py",
    line 98, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show =
    pylab_setup()
    File
    
"/Users/mt/.virtualenvs/def2/lib/python2.7/site-packages/matplotlib/backends/__init__.py",
    line 25, in pylab_setup
    globals(),locals(),[backend_name])
    File
    
"/Users/mt/.virtualenvs/def2/lib/python2.7/site-packages/matplotlib/backends/backend_qt4agg.py",
    line 13, in <module>
    from backend_qt4 import QtCore, QtGui, FigureManagerQT,
    FigureCanvasQT,\
    File
    
"/Users/mt/.virtualenvs/def2/lib/python2.7/site-packages/matplotlib/backends/backend_qt4.py",
    line 25, in <module>
    from qt4_compat import QtCore, QtGui, _getSaveFileName, __version__
    File
    
"/Users/mt/.virtualenvs/def2/lib/python2.7/site-packages/matplotlib/backends/qt4_compat.py",
    line 36, in <module>
    import sip
    ImportError: No module named sip

    I suppose, that I also need to install PyQt but pip install
    PyQtdoes not find any package (nor does it for python27-pyqt or
    PyQt4)
    I have installed sip (pip install sip), but don't know how I can
    get any further from here.

    I am using Mac OS X 10.8.4 and would really love to continue
    using spyder, the best IDE for python that I found so far, but
    the handling of additional packages is driving me insane!

    Thanks
    max
-- 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 [email protected] <javascript:>.
    To post to this group, send email to [email protected]
    <javascript:>.
    Visit this group at http://groups.google.com/group/spyderlib
    <http://groups.google.com/group/spyderlib>.
    For more options, visit https://groups.google.com/groups/opt_out
    <https://groups.google.com/groups/opt_out>.

--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to