LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2016, 07:09 AM   #1
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Rep: Reputation: Disabled
The Anaconda Python Interpreter


Here's what I am aware of so far:

Code:
chris@chris-crunch:~$ which python
/home/chris/anaconda2/bin/python
I've removed the default python interpreter from my Linux, and I'm using this one.

Code:
chris@chris-crunch:~$ python
Python 2.7.11 |Anaconda 2.5.0 (64-bit)| (default, Dec  6 2015, 18:08:32) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import sys
>>> sys.path
['', '/home/chris/anaconda2/lib/python27.zip', '/home/chris/anaconda2/lib/python2.7', '/home/chris/anaconda2/lib/python2.7/plat-linux2', '/home/chris/anaconda2/lib/python2.7/lib-tk', '/home/chris/anaconda2/lib/python2.7/lib-old', '/home/chris/anaconda2/lib/python2.7/lib-dynload', '/home/chris/anaconda2/lib/python2.7/site-packages', '/home/chris/anaconda2/lib/python2.7/site-packages/Sphinx-1.3.5-py2.7.egg', '/home/chris/anaconda2/lib/python2.7/site-packages/cryptography-1.0.2-py2.7-linux-x86_64.egg', '/home/chris/anaconda2/lib/python2.7/site-packages/setuptools-20.2.2-py2.7.egg']
>>>

My main questions are: How is this different from the default python interpreter? Whatare all the directory paths when I type "sys.path" like what actually are they? Please don't assume I have any prior knowledge of what I'm doing- I don't lol.
 
Old 03-14-2016, 07:56 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
This is no way helps you and answers your problem Chris but, purely out of interest, why have you decided to use the Anaconda distribution and not the default one that come with your system?

The reason I ask is that I've had a great time working with the default distribution (the 3.4 one rather than the older 2.7 one) on Mint.

Have you encountered difficulties, or does the Anaconda distribution provide something you need that the default distribution doesn't?
 
Old 03-14-2016, 07:59 AM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I'd also add, but perhaps I may be corrected by others, that given the number of system hooks into Python, I would never dream of actually removing the default Python distribution from my system. Add another distribution - yes, but remove the default one, no way.

Perhaps though I'm being over-cautious in this regard.
 
Old 03-14-2016, 09:57 AM   #4
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Original Poster
Rep: Reputation: Disabled
Yeah I think you're right- removing the default one can be pretty freakin dangerious since a lot of other 'stuff' in your linux distro could depend on it. But, I only started programming 4 weeks ago, so ridiculous mistakes like that will be made

And why have I decided to use it? I was told to by someone who knows a lot about computers... but he's basically left me to figure out why ahaha. He mentioned the conda environments would come in very useful if I was testing code out which I think might crash the system.

Anywho, I guess I could rephrase my question to incorporate yours, as I'm curious too.

What are the main differences/reasons for having different Python interpreters, and what are some of the most common ones?

I guess it depends on what version of python you want to use (2 or 3)?

Looking at a list of common interpreters (Cython, PyPy, Jython, IronPython, PythonNet...) I didn't see anaconda there, and it's very difficult from their website to gather what's so special about it (it seems like a just lot of propaganda to me!)
 
Old 03-14-2016, 10:42 AM   #5
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Higher level of support for different technologies of interest, IMO. For example, IronPython provides "tight integration with .NET", as their site describes, then Jython provides the same for Java. As hydrurga mentioned, you can install multiple distributions of Python on your machine if, for the sake programming, you will need or would want to.
 
Old 09-22-2017, 11:07 AM   #6
efueyo
LQ Newbie
 
Registered: Sep 2017
Posts: 2

Rep: Reputation: Disabled
how to boot the Anavonda2 interpreter from the Linux terminal.

I will be grateful if you indicate me how to start the Anaconda 2 python Idle (spyder), from the Linux terminal.

Last edited by efueyo; 09-22-2017 at 11:20 AM.
 
Old 09-22-2017, 01:35 PM   #7
efueyo
LQ Newbie
 
Registered: Sep 2017
Posts: 2

Rep: Reputation: Disabled
Solved. Enter in the directory where "anaconda2" is installed. Type "spyder." It is necessary to wait patiently since it takes a little time before opening.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Build ONLY python interpreter tank junior Linux - Newbie 1 12-02-2010 06:09 PM
python limits in the interpreter avallach Programming 3 07-30-2007 08:29 AM
Python Anaconda Work conrad10781 Programming 1 02-12-2007 08:03 AM
taming python's interpreter 'help()' command southsibling Programming 7 06-04-2005 06:58 PM
Where is the Python Interpreter? Chomper Programming 8 01-15-2005 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration