6

I downloaded Python3, on a laptop where I already have Python2, in two folders Python3 and Python27 respectively.

I have Windows 10, 64 bit.

Spyder.exeand Spyder3.exe are in the Scripts subfolders of the installation.

I added Python27\Scripts and Python3\Scripts to the Pathenvironment variable.

Opening a command prompt and typing

spyder

correcty starts Spyder2, while typing

spyder3

results in:

enter image description here

--

I have seen online that this error usually occurs for Pip3, so I tried to upgrade spyder3, but this did not solve the issue.

Any ideas?

SuperCiocia
  • 1,823
  • 6
  • 23
  • 40
  • i use to run Spyder and it wuld use whichever version corresponding to the activated virtual environment. Since you have 2 versions of python you should be running virtual environments. Are you using the Anaconda distibution of python? or how did you install python? – Natsfan Dec 10 '18 at 22:33
  • I just installed python from here, https://www.python.org/downloads/release/python-370/ ... – SuperCiocia Dec 10 '18 at 23:00
  • Well you still need virtual environments. You can easily google virtual environment and get instructions on how to make virtual environments... – Natsfan Dec 12 '18 at 15:32
  • as a matter of fact, I want to know how to call spyder3 from the command prompt *because* I want to launch withint a virtual environment, whcih I use to use tensorflow. – SuperCiocia Dec 12 '18 at 16:43
  • If you want to use virtual environments and Spyder, is there a good reason you don't just use the Anaconda distribution? It's the [recommended way of installing Spyder](https://github.com/spyder-ide/spyder/blob/master/README.md) anyway. – nekomatic Dec 17 '18 at 13:57
  • It looks like some dependence are missing, can you check if all the dependencies installed for Spyder3 in your Python3 env: https://docs.spyder-ide.org/installation.html – Sheece Gardazi Dec 18 '18 at 01:03
  • I have all the Requirements listed under "installation with pip"... – SuperCiocia Dec 18 '18 at 12:09
  • Doesn't [this answer](https://stackoverflow.com/a/44160738/3283333) work for you ? – Christian Dec 18 '18 at 15:39
  • The problem isn't the virtual environment. Is running spyder from the terminal. – SuperCiocia Dec 18 '18 at 16:44

1 Answers1

1

The spyder executable changed from "spyder.exe" to "spyder3.exe" in their latest releases

So, in \WinPython-64bit-3.5.3.0Qt5\python-3.5.3.amd64\Scripts\spyder.bat:

replace spyder.exe per spyder3.exe maybe do it also for spyder_reset.bat

Rubin bhandari
  • 1,873
  • 15
  • 20
  • So already have `spyder3.exe` in my installation directory (under `...\Scripts`). And I did not use WinPython to install it, so it would not be under there... ? – SuperCiocia Dec 19 '18 at 00:57