28

I downloaded spyder using the

pip install spyder

in my windows 10 32-bit operating system, but i dont see any desktop icons or exe files to start running the IDE. I downloaded spyder 3, any my python is 3.6. I even tried creating a shortcut of spyder.exe from the Python3.6/Scripts folder, but it won't open.

Carlos Cordoba
  • 33,273
  • 10
  • 95
  • 124
Raghu
  • 511
  • 2
  • 5
  • 12
  • try `spyder` in the terminal. – juanpa.arrivillaga Jul 06 '17 at 18:29
  • already tried that – Raghu Jul 06 '17 at 18:34
  • 3
    Its better if you install `anaconda` as it comes with all builtin packages and its very easy to use. It installs python also you don't need to do it separately. – shivsn Jul 06 '17 at 18:34
  • 5
    (*Spyder developer here*) Did you install `pyqt5` after installing Spyder? Look, pip installations are for *experts* only. So, if you don't have a clear understanding of Spyder dependencies, please install Anaconda instead. – Carlos Cordoba Jul 07 '17 at 06:18
  • @CarlosCordoba: the dependency is installed automatically. As can be seen in the answer, it is a typo in the command – PythoNic Jun 15 '20 at 23:28

12 Answers12

36

The name of the spyder executable was changed to spyder3.exe in python version 3. I install pyqt5 and spyder via pip and was able to launch spyder3. I first tried without installing pyqt5 and nothing happened. Once I installed pyqt5, then spyder 3 opened.

Try the following from a windows cmd.exe prompt:

    C:\Users\..>pip install pyqt5
    C:\Users\..>pip install spyder
    C:\Users\..>spyder3
Charlie
  • 369
  • 3
  • 2
  • 2
    "pip install --upgrade spyder" will update all Spyder dependencies for you. – Hisham Sliman Jan 03 '19 at 19:48
  • This answer is from 2017. I have just installed Spyder via pip on Python 3.10.7 and nothing I have tried has launched Spyder successfully. Has something changed in newer versions? – feedMe Feb 23 '23 at 12:20
15

I had the same problem after setting up my environment on Windows 10. I have Python 3.6.2 x64 installed as my default Python distribution and is in my PATH so I can launch from cmd prompt.

I installed PyQt5 (pip install pyqt5) and Spyder (pip install spyder) which both installed w/out error and included all of the necessary dependencies.

To launch Spyder, I created a simple Python script (Spyder.py):

# Spyder Start Script
from spyder.app import start
start.main()

Then I created a Windows batch file (Spyder.bat):

@echo off
python c:\<path_to_Spyder_py>\Spyder.py

Lastly, I created a shortcut on my desktop which launches Spyder.bat and updated the icon to one I downloaded from the Spyder github project.

Works like a charm for me.

Tonechas
  • 13,398
  • 16
  • 46
  • 80
  • 3
    (*Spyder developer here*) Sorry for the trouble, but we can't install Windows shortcuts with pip. – Carlos Cordoba Jul 27 '17 at 20:01
  • 6
    I found that running `python -m spyder.app.start` does the same without the need for an extra python script, since `main()` is called automatically `if __name__ == "__main__"`. (Spyder 3.2.8) – Jeronimo May 09 '18 at 07:35
  • Running "pip install --upgrade spyder" will update all Spyder dependencies for you. – Hisham Sliman Jan 03 '19 at 19:49
13

Try these commands in order

pip3 install spyder
spyder3
Prithvi Venu
  • 264
  • 3
  • 16
10

Try the command spyder3 If you check the scripts folder you'll find spyder3.exe

Hisham Sliman
  • 322
  • 3
  • 11
7

As stated in the documentation of Spyder, you need to install PyQt5 first.

Open a Command Prompt as Administrator, then run:

pip install pyqt5
pip install spyder

Then you can find the spyder3.exe in the Python3.6/Scripts folder. You can also make a shortcut to it. No need for Anaconda.

Louis Yang
  • 3,511
  • 1
  • 25
  • 24
6

method 1:

spyder3

method 2:

python -c "from spyder.app import start; start.main()"

method 3:

python -m spyder.app.start
T.Todua
  • 53,146
  • 19
  • 236
  • 237
5

Open a command prompt. Enter the command spyder. Does anything appear? If an exception is preventing it from opening, you would be able to see the reason here. If the command is not found, update your environment variables to point to the Python3.6/Scripts folder, and run spyder again (in a new cmd prompt).

TheoretiCAL
  • 19,461
  • 8
  • 43
  • 65
4

If you are using Anaconda execute the following commands and your life will be saved!

conda update qt pyqt
conda update spyder
Amy21
  • 291
  • 1
  • 11
3

In case if you want the desktop icon

In desktop, create a new shortcut, in Location paste this

%comspec% /k spyder3

then type the name Spyder,

Now you may have Desktop Icon for opening Spyder

Umer
  • 1,098
  • 13
  • 31
1

After pip install spyder give this command

pip install --upgrade spyder

This command will update all Spyder dependencies.

Now in command prompt(cmd) navigate to the scripts folder in your python directory. In my system the path is C:\Users\win10\AppData\Local\Programs\Python\Python36-32\Scripts so i use the following command in command prompt.

cd C:\Users\win10\AppData\Local\Programs\Python\Python36-32\Scripts

once you are inside scripts directory type spyder3 and press enter and spyder ide starts.

C:\Users\win10\AppData\Local\Programs\Python\Python36-32\Scripts>spyder3
K_holla
  • 124
  • 1
  • 3
1

on windows,

  1. pip install --upgrade spyder

  2. in powershell, start python shell, by typing python

    from spyder.app import start
    start.main()
    

That't it.

brajesh jaishwal
  • 322
  • 2
  • 12
  • I'm unable to start it on Windows; I'm getting the following: https://i.imgur.com/2lmMEGx.png. If I just type "spyder3" into PowerShell, I get the loading wheel for a second and then nothing happens. Any ideas? – joejoejoejoe4 Mar 12 '19 at 03:03
0

Install Ananconda packages and within that launch spyder 3 for first time. Then by second time you just click on spyder under anaconda in all programs.