New answers tagged python3
On Ubuntu 14.04 Python 3.4 is installed by default. As recommended by PEP-394 you can use python and python2 to run Python v2 (2.7) and python3 to run Python v3 (3.4).
Python3.4 is already installed on your system, you just need to call it with python3 instead of python
You should already have it install: python3 -V To install idle 3: sudo apt-get install idle-python3.4
python 3.4 is installed on the stable release of Ubuntu 14.04. You need to use python3 to use python 3.4. For example, to compile a script file.py, use: python3 file.py This will use python 3.4 to interpret your program or you can use the shebang to make it executable. The first line of your program should be: #!/usr/bin/python3 and then use chmod +x ...
There's an issue with the pre-compiled Cython C files (compatibility with Python 3.4.0) with the pypi version. To properly install scikit-learn, use the git repo instead (tested ok on 14.04): sudo pip3 install git+https://github.com/scikit-learn/scikit-learn.git
If you simply want Python 3.4 on Ubuntu and want to avoid the trouble of compiling from source, consider installing it from Felix Krull's Python PPA Add the PPA $ sudo add-apt-repository ppa:fkrull/deadsnakes Update Apt cache $ sudo apt-get update Install Python 3.4 $ sudo apt-get install python3.4
Set py-shell-name to python3, for example by using Meta+x customize-variable Returnpy-shell-name
Install primary versions of python with: sudo make install and install secondary versions with: sudo make altinstall For example, I do not have any Python installations on my system and I want to install 3 versions: 2.7, 3.3 and 3.4. I want to make 2.7 the primary installation (as python) and all the others as secondary (as python3.3 and ...
Top 50 recent answers are included