LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 08: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, 08:56 AM   #2
hydrurga
Senior Member
 
Registered: Nov 2008
Distribution: Linux Mint 18 MATE
Posts: 1,213

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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, 08:59 AM   #3
hydrurga
Senior Member
 
Registered: Nov 2008
Distribution: Linux Mint 18 MATE
Posts: 1,213

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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, 10: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, 11:42 AM   #5
ilesterg
Member
 
Registered: Jul 2012
Distribution: CentOS, SLES, RHEL, HP-UX, OpenSUSE Tumbleweed KDE
Posts: 504

Rep: Reputation: 54
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:09 PM
python limits in the interpreter avallach Programming 3 07-30-2007 09:29 AM
Python Anaconda Work conrad10781 Programming 1 02-12-2007 09:03 AM
taming python's interpreter 'help()' command southsibling Programming 7 06-04-2005 07:58 PM
Where is the Python Interpreter? Chomper Programming 8 01-15-2005 10:56 PM


All times are GMT -5. The time now is 04:19 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration