How to run packages in spyder

344 views
Skip to first unread message

Sarah Lazbin

unread,
Jul 29, 2017, 9:20:06 AM7/29/17
to spyder
Hello, I am new to spyder and cannot figure out how to get my packages working. I am ultimately trying to get scikit-learn to work but this particular package is built upon numpy, scipy, and matplotlib. I have all of these because I installed spyder through anaconda. When I try to use conda in my command prompt window it executes correctly but when I add the correct paths to the pythonpath manager conda still errors with "conda is not defined". I do not understand why conda isnt defined. 
Help would be greatly appreciated, I am using Windows 10, Spyder 3.1.4

Carlos Córdoba

unread,
Jul 29, 2017, 10:12:09 AM7/29/17
to spyd...@googlegroups.com
Hi,

It seems you're trying to run

    conda install foo

inside the Spyder consoles. Unfortunately that doesn't work because our consoles are meant to run Python code.

To install conda packages you need to open a system terminal (i.e. cmd.exe on Windows), and run the conda commands you want there.


Cheers,
Carlos

El 28/07/17 a las 23:24, Sarah Lazbin escribió:
Hello, I am new to spyder and cannot figure out how to get my packages working. I am ultimately trying to get scikit-learn to work but this particular package is built upon numpy, scipy, and matplotlib. I have all of these because I installed spyder through anaconda. When I try to use conda in my command prompt window it executes correctly but when I add the correct paths to the pythonpath manager conda still errors with "conda is not defined". I do not understand why conda isnt defined. 
Help would be greatly appreciated, I am using Windows 10, Spyder 3.1.4
--
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 spyderlib+...@googlegroups.com.
To post to this group, send email to spyd...@googlegroups.com.
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Sarah Lazbin

unread,
Jul 29, 2017, 10:19:05 PM7/29/17
to spyder
Thank you! Once I have installed the package in the command prompt how do I get the package to work within spyder??

Carlos Córdoba

unread,
Jul 29, 2017, 10:20:22 PM7/29/17
to spyd...@googlegroups.com
You simply need to import it in one of our IPython consoles. For example:

    import pandas as pd


Cheers,
Carlos

El 29/07/17 a las 21:18, Sarah Lazbin escribió:

Gangadhar Chowdary

unread,
Jan 29, 2021, 3:29:32 PM1/29/21
to spyder
how to download Numpy and other packages in spyder

Kiko

unread,
Jan 29, 2021, 4:03:13 PM1/29/21
to spyd...@googlegroups.com
2021-01-25 10:59 GMT+01:00, Gangadhar Chowdary <gangadhar....@gmail.com>:
> how to download Numpy and other packages in spyder
>

Spyder is not Python. Spyder runs using Python. You need to install
the (python) packages you need in the same python environment you are
running Spyder.

How did you install Python and Spyder?
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/spyderlib/4d4c7a3d-1d00-4e4c-8a1e-177d1f8a5becn%40googlegroups.com.
>
Reply all
Reply to author
Forward
0 new messages