Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Python 3.5.1 and Spyder Problems

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
User avatar
FenrisUltra
Posts: 72
Joined: 2016-02-19 01:29
Location: Winnipeg, Manitoba (Canada)
Been thanked: 1 time
Contact:

Python 3.5.1 and Spyder Problems

#1 Post by FenrisUltra »

Hey,

I have just recently installed Anaconda 3.5 on Debian 8 with spyder. However when I load spyder I cannot get the programming front to point to Python 3.5, it always loads with 2.7. The funny thing is, if I am using Xubuntu, starting sypder from a terminal always points to 3.5 by default. I don't know why Debian is giving me trouble. Does anyone know how to fix this?

Thank you
Last edited by FenrisUltra on 2016-02-21 06:37, edited 3 times in total.

fred barclay
Posts: 124
Joined: 2015-01-24 03:10

Re: Python 3.5.1 and Spyder Problems

#2 Post by fred barclay »

There are two versions of spyder in the repos, "spyder" and "spyder3." Spyder points to Python 2, and spyder3 uses python 3.
You might want to check and make sure you've got the version of spyder you want. :)

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Python 3.5.1 and Spyder Problems

#3 Post by stevepusser »

Jessie also has python3 3.4.2, not 3.5.
MX Linux packager and developer

User avatar
FenrisUltra
Posts: 72
Joined: 2016-02-19 01:29
Location: Winnipeg, Manitoba (Canada)
Been thanked: 1 time
Contact:

Re: Python 3.5.1 and Spyder Problems

#4 Post by FenrisUltra »

Ooooooh, I didn't know that.

Well I did sudo apt-get install spyder3 then did sudo apt-get remove spyder, I type spyder3 in my terminal window and all my problems fixed itself...

Thank you!

fred barclay
Posts: 124
Joined: 2015-01-24 03:10

Re: [SOLVED] Python 3.5.1 and Spyder Problems

#5 Post by fred barclay »

No worries mate. :) Glad you got it sorted.

User avatar
FenrisUltra
Posts: 72
Joined: 2016-02-19 01:29
Location: Winnipeg, Manitoba (Canada)
Been thanked: 1 time
Contact:

Re: [SOLVED] Python 3.5.1 and Spyder Problems

#6 Post by FenrisUltra »

Sorry, I thought my problem was fixed and it apparently is not...

This is what I need Python to do, and this works in my Xubuntu build...

Code: Select all

Python 3.5.1 |Anaconda 2.4.1 (64-bit)| (default, Dec  7 2015, 11:16:01) 
Type "copyright", "credits" or "license" for more information.

IPython 4.0.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
%guiref   -> A brief reference about the graphical user interface.
How ever with python 3 in my Debian 8 build I get this...

Code: Select all

Python 3.4.2 (default, Dec  8 2014, 10:45:20) 
Type "copyright", "credits" or "license" for more information.

IPython 2.3.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
%guiref   -> A brief reference about the graphical user interface.
Spyder 3 is not linking to the Anaconda library set which is causing some of my codes to malfunction, I don't know how to fix this...

Sorry, I thought my problem was solved but it's not quite done yet

fred barclay
Posts: 124
Joined: 2015-01-24 03:10

Re: Python 3.5.1 and Spyder Problems

#7 Post by fred barclay »

How did you install Anaconda in Debian 8? I'll try the same and see what I get.

User avatar
FenrisUltra
Posts: 72
Joined: 2016-02-19 01:29
Location: Winnipeg, Manitoba (Canada)
Been thanked: 1 time
Contact:

Re: Python 3.5.1 and Spyder Problems

#8 Post by FenrisUltra »

Just like the instructions say on the site....

1) I clicked on the button on this site https://www.continuum.io/downloads to download Anaconda 3.5 (64 bit) for Linux, and that it's sitting in the Download folder right now
2) Open a terminal window and type cd Downloads
3) Then typed bash Anaconda3-2.5.0-Linux-x86_64.sh
4) I then typed in (after Anaconda had finished installing)... sudo apt-get install spyder

Normally this is all I needed to do to make Anaconda work in Xubuntu 14.04 and 15.04, the short cuts would never work in the menu as they always pointed to Python 2.7 but if I loaded spyder from a terminal, I got 3.5 with the interface pointing to the Anaconda library.

This is when I ran into the problems that you explained....
5) I then typed in sudo apt-get install spyder3 then did sudo apt-get remove spyder
6) Then I typed in spyder3 to load up the interface

That is when I started running my programs in python only to find out they weren't functioning properly, I then looked at the IPython console and noticed there was no reference to the Anaconda library of any kind. Thats when I removed [SOLVED] from the title and asked for more help

I went back to my Xubunu 15.04 system and typed in conda and noticed I was able to communicate with Anaconda through the terminal window, I tried to do the same thing with my Debian 8 system and the terminal didn't recognize the conda commands at all

Should I have done sh then load in the root password, after being loaded into root, then type in bash Anaconda3-2.5.0-Linux-x86_64.sh? If so, how do I remove the Anaconda library so I start over?


User avatar
FenrisUltra
Posts: 72
Joined: 2016-02-19 01:29
Location: Winnipeg, Manitoba (Canada)
Been thanked: 1 time
Contact:

Re: Python 3.5.1 and Spyder Problems

#10 Post by FenrisUltra »

Yes fire, I understand what your saying...but it doesn't fix the problem now does it?
Jessie also has python3 3.4.2, not 3.5.
That is not acceptable, python 3.5 needs to work, it needs to connect to Anaconda. I need a solution to that problem even if I have to ram it down it's throat. I don't care how it can't be done... I care only how it can be done

fred barclay
Posts: 124
Joined: 2015-01-24 03:10

Re: Python 3.5.1 and Spyder Problems

#11 Post by fred barclay »

Sorry, but that's not showing an understanding of the Debian Way. :) Jessie is "Stable" for a reason--the software is old but trustworthy.

If you really need Python 3.5, create a Debian Stretch VM. It has python 3.5.1-1. Then from there, work to connect it to Anaconda. It'll be a lot simpler than using things like pyenv or similar tools, will be more stable (I believe--Stretch is "Debian Testing" after all, but you're more likely to tear something up if you try and install multiple python3's in your Debian Stable box), and should work much better.

Post Reply