I have python 2.7 and 3.4 versions installed. But when I say say "python -V", it shows version as 2.7 not 3.4  How to tell ubuntu to use newest python? where is this setting configured ?
1251
The python program command executes Python 2. Python 3 can be executed using the python3 command.  How can Python 3 be executed using the python command?
23586
I've just installed Ubuntu 14.04 and am trying to install php 5.3. But when I run   apt-get install php5    it's installing php 5.5.9-1ubuntu4. I need to use php 5.3 in the system because the application I'm working on is built with php 5.3.   How can I achieve this?
22657
I need help running python in ubuntu  I can run python without a problem in my terminal but when I create a .py file I can't get it to run.
114578
I'm curious to know whether ArcGIS Desktop 10.0 will support newer versions of Python than 2.6. And for that matter newer versions of NumPy (ie, 1.4, 1.5 etc). I'm sure that this documentation is on the ESRI site somewhere, but I can't find it.   I have found that ArcGIS Desktop 10.0 will respect an existing Python 2.6 install as long as you have Numpy 1.3.0 installed (), and I'm guessing, at least until Numpy 1.5.0 is out and supporting Python 3, then no Python 3 for ArcGIS, but I'd still be interested to know if upgrading is possible when it's available.
61461
I have downloaded Python 3.3 from the official site but no idea how to install it.   I'm using Ubuntu 12.04
9183
I have an Asus K55V and I'm wondering which version of Ubuntu I should be attempting to use. The website offers 12.04 (LTS) and 12.10.
78417
Is there a standard way to associate version string with a Python package in such way that I could do the following? import foo print foo.version  I would imagine there's some way to retrieve that data without any extra hardcoding, since minor/major strings are specified in setup.py already. Alternative solution that I found was to have import __version__ in my foo/__init__.py and then have __version__.py generated by setup.py.
18869
Is there a list of Ubuntu versions with default corresponding Linux kernel versions somewhere?  I would specifically like to know the most recent version of Ubuntu that still used Linux Kernel 2.x.
50640
I am using Mac OS X Version 10.13.1 and I have just installed anaconda.  I have created a virtual environment using the command  conda create -n py3 python=3   Then, I have started the python interpreter using the command  python   To my surprise, the preinstalled python 2.7 from /usr/bin showed up instead of python 3.6.  In order to check what is going wrong I issued the command  which python   The result was even more surprising,  I got the following:  /Users/karlstroetmann/anaconda2/envs/py3/bin/python   When I then invoked the command  /Users/karldrstroetmann/anaconda2/envs/py3/bin/python   I did get python 3.6.3.  But I don't understand why I cannot invoke this version by just typping python.  What am I missing here? Any hints would be very much appreciated.
80771
Although Ubuntu 16.04 release notes mention that:  The default VIM package has been built against python3 instead of python2.  Yet after I installed vim with the following command:  sudo apt-get install vim   And checked:  vim --version   It showed:  -python -python3   Is it a bug? How do I get vim with Python support?
102439
I want the very latest version of Python, but I don't want to bypass the apt package manager: I don't want to do an old-school source install because that can make it harder to uninstall when the official packages come out.  Python3.5 is not currently featured in any of Canonical's package repositories, which means I cannot just "apt-get install python3.5".  Is there a way to get Python3.5 installed on my PC in the meantime?
6872
Python3.4.0  on Ubuntu 14.04.01 LTS. We can use it by typing on Terminal `python3.  I want to use Numpy for Python3.4.0. I run import numpy  but I had anImportError.So sudo apt-get install python-numpy. Then I typed on Terminal:python3`. Then import numpy. I got this error:  &gt;&gt;&gt; import numpy Traceback (most recent call last):   File "&lt;stdin&gt;", line 1, in &lt;module&gt; ImportError: No module named 'numpy' &gt;&gt;&gt;    Nevertheless, Numpy is now working for Python-2.7:  begueradj@begueradj-Bill:~$ python Python 2.7.6 (default, Mar 22 2014, 22:59:38)  [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import numpy &gt;&gt;&gt;    How can I make Numpy work for Python 3.4.0 ?
67142
I just installed Oracle's Java version 7u7 on my Mac (running OSX Mountain Lion). However, when I run java -version it still displays the old version (6u29).    How do I fix this? Do I even need to fix this? What version will browsers (Firefox) use in this case? And what version will be used when I run Java applications directly?  I've seen  but this doesn't work in my situation (probably because this question is about the JRE and the other question about the JDK). In my case the Java Preferences app only displays Java 6 versions (32 bit and 64 bit).    Update:   which java points to /usr/bin/java /usr/bin/java is a symlink to /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java /System/Library/Frameworks/JavaVM.framework/Versions/ only contains the folder A (awesome version name) - which Current points to.
66132
I have successfully installed python 3.3 on Ubuntu 12.10. Since I don’t need multiple versions of python, I want to remove the existing python 2.7. When I try to do that, using  sudo apt-get remove python2.7   Ubuntu warns me that there are tons of system dependent components which will also be removed. It looks really scary.  So, is there a way to remove python 2.7 without removing the system dependent components, or can I direct those dependents to use python 3.3?
117643
I need to install python3.4 on my OS X.  Tried to do it with brew install python3 and now I have python 3.5.1. But I need py3.4.  How can I install python3.4 on my Mac?
22091
I uninstalled the Python 2.7 package to try and upgrade to Python 3. I uninstalled Python 2.7, and noticed some of my launcher items were completely gone. At this point I had installed Python 3. Now on reboot, I can't log in and the background for the log-in screen is black with white dots. Any help would be greatly appreciated.  P.S. - This is running 11.10 Oneiric Ocelot. I still have the same version Live CD.  EDIT: Thanks for the feedback! But I can't boot into text mode, only boot from the Live CD, and I can't connect to the internet because I installed the Debian .tar.gz package usb_modeswitch for Mobile Broadband. Is there a way to copy the Python 2.7 parts of the OS from the Live CD and inject them into my system? The only thing I can think of is get a 12.04 Live CD and click 'Upgrade from 11.10 to 12.04' option, but for reasons I won't go into this is impractical for me.
97465
I have installed Eclipse + PyDev + Python 3.2. Now I have two Python interpreters in PyDev: Python 2.7 and Python 3.2. If I try to execute command import pygtk with 2.7 interpreter it works fine, but with Python 3.2 it raises ImportError: No module named pygtk.  How can I get PyGTK to work with Python 3.2?