Python 3 is the latest major version of Python, a scripting language used my very many open source developers.

learn more… | top users | synonyms

70
votes
8answers
157k views

How do I install Python 3.3?

I have downloaded Python 3.3 from the official site but no idea how to install it. I'm using Ubuntu 12.04
9
votes
5answers
21k views

How to install Python 3.4 on Ubuntu?

If I open Terminal and type in python, I see the version is 2.7.4. How do I get python 3.4? And do I need IDLE if I have sublime text?
3
votes
3answers
378 views

Python 3 error when running the print command

All I wrote in the interpreter was as follows: >>> print "Hello, World!" File "<stdin>", line 1 print "Hello, World!" ^ SyntaxError: invalid syntax How ...
10
votes
4answers
12k views

Make default `python` command to use Python 3

I can access Python 3 via python3 command. But I want to make the default interpreter to use python command for Python 3. Simple typing python takes me to Python 2. How to upgrade?
2
votes
2answers
1k views

Problems upgrading to Python 3.3 and setting up Django

I'm new to Linux and am trying to set up Python / Django on my machine! I installed Python 3.3 from the source file and it was compiled into /usr/local/bin. Then I created a symbolic link between ...
2
votes
3answers
7k views

need to have 2 versions of python?

Well, as I say, I need to have 2 versions of python installed on my PC. The first must be the latest one in order to use youtube-dl, and the second must be the 2.7 version to use it for a course ( ...
5
votes
2answers
5k views

12.10 has Python 3.2.3 default, does this impact existing python tools?

Ubuntu 12.10 has Python 3.2.3 default, so does this impact existing python tools, designed to be used with older python 2.x? There was a discussion in HackerNews on the same. I'm a bit apprehensive ...
3
votes
2answers
457 views

How to create a deb package for a python3 script?

I have one Python file, main.py. I would like to be able to make a .deb package from it, and then be able to run main.py by typing the package name from the terminal. It is written in Python 3, so the ...
2
votes
2answers
1k views

Installing Python 3.4 from source

I am running Xubuntu 13.10 i386 with the python (2.7) and python3 (3.3) packages installed. I have downloaded and compiled the source code for Python 3.4 but the binary file is named python. How can I ...
7
votes
1answer
886 views

What is python3mu?

I'm setting up PyDev for Eclipse, and I have to choose a version of Python for the interpretor. I want to use Python3, and I've been using python3 as my interpretor, so I thought /usr/bin/python3 ...
5
votes
2answers
3k views

Changing Python default in 12.04 LTS

I have downloaded and installed python 3.2.3 for Ubuntu/Debian. Also IDLE IDE for 3.2.3. If I execute IDLE for 3.2.3 explicitely, 3.2.3 runs under IDLE and all is well. But if I go to a terminal ...
1
vote
1answer
1k views

Install Pillow for Python 3

What's the best way to install Pillow for Python 3?
1
vote
2answers
8k views

Install Python 3.3.2 on Ubuntu

How to update to Python 3.3.2 in Ubuntu? I tried sudo apt-get install python3 but it says that the current (3.3.1) is already the latest.
0
votes
2answers
153 views

Is it okay to mess around with Python that comes with Ubuntu?

I've just installed Ubuntu 14.04 LTS and am new to Linux. I know that Ubuntu 14.04 LTS comes with Python 3.4.0. Is it okay if I install pip3 and install packages (e.g. django, numpy, etc.) on it? Can ...
16
votes
3answers
24k views

How to create a virtualenv with Python3.3 in Ubuntu?

I'm running Precise Pangolin amd64. I installed Python 3.3 from ppa:fkrull/deadsnakes. Now I want to actually use this new Python version in a virtualenv. But How can I do this? I get the following ...
10
votes
4answers
10k views

How to install pip for python 3 in ubuntu 12.04 LTS

I am trying to install the Pillow module for python 3.3, but for that I need to install pip. Every time that I install pip it installs for python 2.7, any help?
11
votes
3answers
3k views

How can I install Django for Python 3.x?

I installed Django with this command: sudo apt-get install python-django And it installed version 1.5.4-1ubuntu1. The Django docs say that as of version 1.5, Django supports Python 3. Yet when I ...
3
votes
2answers
1k views

pyvenv-3.4 error: returned non-zero exit status 1

When trying to create a virtual environment using the included pyvenv-3.4 that comes with 14.04, it throws an error: Error: Command '['/some/directories/bin/python3.4', '-Im', 'ensurepip', ...
5
votes
1answer
1k views

How to create Excel xlsx files from a script?

I'm looking for packages available in Ubuntu main/universe repositories (14.04) able to create Excel 2007+ xlsx files from a script (python3 or perl) My requirements: 100% compatible Excel XLSX ...
5
votes
2answers
846 views

Take screenshots at random intervals with Python?

I am working on a project to take screenshots of desktop and upload images to a server I want to develop a python app, when user starts that app it will start taking screenshots in random interval ...
5
votes
2answers
31k views

How to find python installation directory on ubuntu

I have just migrated from Windows environment. I have installed Python 3.2 in a separate directory. How can I get the python installation path on ubuntu shell ? Is there any way I can let shell ...
3
votes
1answer
117 views

how to use python3 shortcuts on emacs?

I am new to emacs and I am trying to set python3 as default interpreter. I have installed from software centre the python plugin for emacs. I can run a python3 file going to pyexec-->execute ...
1
vote
1answer
2k views

Install and run Python 3 at the same time than Python 2

Im using 13.04 but I want have installed the both main Python versions for make tests about migration of my actual code. is possible install Python 3 in the same machine running Python 2.7? I need ...
1
vote
1answer
484 views

how to purge python 3.3 and install python 2.7.4

I'm in complete trouble with my Ubuntu 13.04 distro. Today I wanted to try python 3.3, I compiled it and installed from source. It broke my system, many packages wait for apt-get remove cmmand. I ...
0
votes
0answers
73 views

Problem installing Pillow for Python 3 (ImportError: cannot import name _imaging) [duplicate]

I attempted to install Pillow for Python 3 using the following method. Installation Made sure I had the proper dependencies listed in Pillow's docs: sudo apt-get install python3-dev ...