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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-14-2016, 08:09 AM
|
#1
|
Member
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107
Rep: 
|
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.
|
|
|
03-14-2016, 08:56 AM
|
#2
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
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?
|
|
|
03-14-2016, 08:59 AM
|
#3
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
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.
|
|
|
03-14-2016, 10:57 AM
|
#4
|
Member
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107
Original Poster
Rep: 
|
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!)
|
|
|
03-14-2016, 11:42 AM
|
#5
|
Member
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587
Rep:
|
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.
|
|
|
09-22-2017, 12:07 PM
|
#6
|
LQ Newbie
Registered: Sep 2017
Posts: 2
Rep: 
|
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 12:20 PM.
|
|
|
09-22-2017, 02:35 PM
|
#7
|
LQ Newbie
Registered: Sep 2017
Posts: 2
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 07:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|