Le 19/09/2014 16:59, Adrian Klaver a écrit :
On 09/19/2014 07:44 AM, BM wrote:
Hi everyone,
I have been using Spyder on Windows for a long time, and absolutely love
it. However, I am still very much a beginner, because I don't use any of
the advanced features yet. Recently, I have had to switch to a Linux
platform (Debian), and needed to run a version of Python and Spyder that
is more updated than the ones available in the Debian repositories.
Thus, I needed to set up virtual environments.
What versions are you using?
Why not use pip and install from PyPi?:
https://pypi.python.org/pypi/spyder/2.3.1
An alternative would be to install anaconda. You'll have a separate
python installation that you can easily update with conda, and all the
most used scientific packages (including spyder) are pre-installed (you
can always use pip to install whatever you want). That's what I use
under CentOS which has very outdated packages.
I have not had success getting Spyder to run inside a virtual
environment: after typing in 'spyder' in the console, I get an error
that says I need the right version of PyQt (which I have already made
sure is installed...). Is what I am trying to do possible, and am I
simply making an error?
Secondly, I'd like to Cythonize some of code. There are a wide variety
of ways to compile Cython code
(see http://docs.cython.org/src/reference/compilation.html). So, I'd
like to ask: which way is most suitable for integration into Spyder? A
dream would be: I press F9, the code is Cythonized and then run in the
interpreter. Is this possible?
This has nothing to do with spyder actually. Anything that runs in
python should run in spyder, and the other way around.
As a quick answer, you can either use pyximport if you have .pyx files,
or use the "pure-python" mode which uses decorators provided by cython.
Thanks very much for your help,
Brian
Joseph
--
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/d/optout.