Installing a pip package for Spyder

19,079 views
Skip to first unread message

Mahmood

unread,
Jan 25, 2022, 6:25:14 AM1/25/22
to spyder

Hi

I would like to install a package (scikit-learn) so that I can use it with Spyder IDE. However, I didn’t find the “pip3” command in Spyder\Python folder.

 

C:\Users\m_nad\AppData\Local\Programs\Spyder\Python>dir

Volume in drive C has no label.

Volume Serial Number is 70A2-44D7

 

Directory of C:\Users\m_nad\AppData\Local\Programs\Spyder\Python

 

12/27/2021  07:32 PM    <DIR>          .

12/27/2021  07:32 PM    <DIR>          ..

11/24/2021  11:30 PM         3,399,200 libcrypto-1_1.dll

11/24/2021  11:30 PM           689,184 libssl-1_1.dll

11/24/2021  11:30 PM            13,029 LICENSE.txt

11/24/2021  11:30 PM           202,768 pyexpat.pyd

11/24/2021  11:30 PM           100,368 python.exe

11/24/2021  11:30 PM            58,896 python3.dll

11/24/2021  11:30 PM         3,750,416 python37.dll

11/24/2021  11:30 PM         2,397,995 python37.zip

11/24/2021  11:30 PM               103 python37._pth

11/24/2021  11:30 PM            98,832 pythonw.exe

11/24/2021  11:30 PM            27,152 select.pyd

 

How can I install that package then?

 

 

Regards,

Mahmood

 

Daniel Althviz Moré

unread,
Jan 25, 2022, 2:14:23 PM1/25/22
to spyder
Hi Mahmood,

Seems like you are using the Spyder standalone version for Windows. To use packages that aren't bundle with the installer you will need to have a way to create environments and use the custom interpreter preference. For more info you can check our docs: https://docs.spyder-ide.org/current/faq.html#using-packages-installer

Let us know if that helps!

Best regards,

Daniel

Eddy V

unread,
Jan 26, 2022, 2:18:40 AM1/26/22
to spyder
Typically, the pips (pip3.exe, pip.exe) are stored in the Scripts folder.
For example:  C:\Program Files (x86)\Python3\Scripts\pip3.exe
But if you have multiple (conda?) environments installed, probably every env has a Scripts folder.
If you want to use pip to install in a specific env, make sure you use the pip in that specific env! 
If you are in a python3 env, you can also just use pip (instead of pip3).


Op dinsdag 25 januari 2022 om 12:25:14 UTC+1 schreef mahmo...@gmail.com:

Mahmood

unread,
Jan 26, 2022, 4:23:21 AM1/26/22
to spyd...@googlegroups.com

OK. I saw this video in the FAQ page and followed that to install a package and link Spyder to Conda.

https://docs.spyder-ide.org/current/faq.html#using-packages-installer

It is now working.

 

Regards,

Mahmood

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/d80d38cf-3505-4611-9824-9b82e55e3ccdn%40googlegroups.com.

 

Scott Baker

unread,
Jan 29, 2022, 9:29:38 PM1/29/22
to spyd...@googlegroups.com
Use just pip not pip3

--
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.

Carlos Córdoba

unread,
Jan 29, 2022, 9:33:30 PM1/29/22
to spyd...@googlegroups.com
Hi,

pip/pip3 are not provided in our Windows and macOS installers so that people can't break Spyder by installing additional, incompatible packages on them.

Instead, if you want to use other packages that don't come with the installers, you need to follow the instructions posted by Daniel before:

https://docs.spyder-ide.org/5/faq.html#using-packages-installer


Cheers,
Carlos

El 29/01/22 a las 6:49 p. m., Scott Baker escribió:
Reply all
Reply to author
Forward
0 new messages