Linux - NewbieThis 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!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
chris@chris-crunch:~$ which python
I've removed the default python interpreter from my Linux, and I'm using this one.
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
['', '/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.
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.
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!)
Distribution: CentOS, SLES, RHEL, HP-UX, OpenSUSE Tumbleweed KDE
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.