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

learn more… | top users | synonyms

66
votes
8answers
138k 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
15
votes
3answers
19k 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 ...
9
votes
2answers
6k 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?
9
votes
2answers
2k 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 ...
8
votes
7answers
839 views

Should I change my Python code if I upgrade my Ubuntu? [closed]

I have a software that I have been developing in Python 3 for years. Until today, I have been using Ubuntu Desktop 11.04 but now I want to move to a higher version of Ubuntu. Must I stay on Ubuntu ...
8
votes
1answer
4k views

“libpeas-WARNING **: Could not find loader 'python3' for plugin” when loading a pluging in gedit

I recently upgraded to Ubuntu 13.04 and I use gedit for a lot of things. I was trying to install some plugins that I use quite frequently and I came into some issues. First I installed the plugins ...
8
votes
3answers
5k views

Making python 3.3 default python 3 interpreter instead of 3.2

So, to keep it simple. Ubuntu 12.10 has python 3.2 pre installed and it is linked to "python3". I downloaded python 3.3 and it's command is "python3.3". However, I downloaded pySide for python3 from ...
7
votes
4answers
9k 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?
7
votes
4answers
9k 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?
7
votes
1answer
834 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
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 ...
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 ...
5
votes
2answers
26k 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 ...
5
votes
2answers
773 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 ...
4
votes
2answers
2k views

Open terminal window and execute Python script on startup

I have a Python script which I would like to execute at every startup. I can run it by adding this to the startup applications: python3 /path/to/script.py That works, but it doesn't open a terminal ...
4
votes
1answer
947 views

Python Global Hotkey

I'm looking to create a global hotkey in Python 3.2 for Ubuntu 12.10. That is, my script will run in the background and whenever I press Shift+F4 (for example), no matter what the active window is, ...
3
votes
3answers
354 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 ...
3
votes
2answers
59 views

What to learn Ubuntu application development in python, where to start?

I know basic python and i love it. I want to learn how to develop and publish Ubuntu applications in python but don't know where to start (I mean "the standard ways" to do so). It would be good if you ...
3
votes
1answer
66 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 ...
3
votes
1answer
1k views

Unable to import tkinter?

I am studying Python and tried to make GUI using python.I am using IDLE 3.2 on 12.04 Ubuntu.When i typed import Tkinter, a error comes, it says following: Traceback (most recent call last): File ...
3
votes
1answer
319 views

Designing UI using html and css and without webkit?

I want to try out developing desktop applications with the UI designed using html5,css and jquery and the back end code written in python. Is this possible? I have already tried out the WebKit but is ...
3
votes
2answers
383 views

Installing Bluez in Python3

How do I install bluetooth/bluez modules into python3? In Python2 I'm able to import bluetooth and utilize it but in Python3 I have no such luck. How can I import bluetooth modules in python3?
3
votes
1answer
156 views

Which media players available in the Ubuntu repositories uses GStreamer, GTK+ and were written in Python?

I'm planning to write a media player for Ubuntu to present in fair in the place I study. And I'd like to use GStreamer and GTK+ with Python, but I could not find a good documentation about the ...
3
votes
2answers
1k views

how to load python3 to eric IDE?

Installed Eric IDE for python 3 Learning by using Ubuntu 12.04 LTS . But Eric showing Python2.7.3 , not showing python 3 even its installed . so how can i configure Eric to show the python as ...
3
votes
0answers
134 views

How to install requests module for Python 3.1 ubuntu server 10.04?

I have a ubuntu server.(10.04) I don't install requests module. I try pip and other methods. Usually ; $ sudo pip install requests Traceback (most recent call last): File ...
3
votes
1answer
726 views

installing numpy for python 3.1.2 on Ubuntu 10.04

I have installed numpy for python 2.6.5. I want to use it for python 3.1.2 and I don't know how to install it. I'm new to ubuntu and I don't know how to install it from tar file. I am using Geany for ...
2
votes
3answers
6k 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 ( ...
2
votes
1answer
454 views

installation error in sklearn for python3

When I run the command sudo pip3 install -U scikit-learn I receive a strange error. Cleaning up... Command /usr/bin/python3 -c "import setuptools, ...
2
votes
2answers
243 views

Reference counting on exported DBus objects?

I'm working on a DBus service that needs to export objects on demand when requested by 3rd party applications. That part seems fairly strait-forward. But I also need to "garbage collect" these ...
2
votes
1answer
1k views

Trying to create a python virtual environment but getting OSError

I have installed python3.3, pip-1.5, ditribute-0.7.3, virtualenv-1.11. I am giving the below command to create virtual environment virtualenv --no-site-packages test I am getting the following ...
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
2answers
877 views

Python3.2 error; Unable to install or remove anything

I searched around as much as I could, but I couldn't seem to find a solution to fix my problem. Whether I install anything, remove anything, run sudo apt-get update or sudo apt-get upgrade, I still ...
2
votes
1answer
264 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
1answer
45 views

Launching a python script in IDLE works but in terminal I get a SMTP instance has no attribute 'send_message' error

I have a script that results in an email being sent out with smtplib.SMTP python module. When I run it from within IDLE is sends fine with no error messages. I am trying various ways to automate it ...
2
votes
1answer
17 views

Python3 application icon

In Ubuntu 13.04, when I use the setWindowIcon method in the code of my python3/pyqt4 application, it works fine, and the application icon is set properly. After upgrading to Ubuntu 13.10 however, ...
1
vote
1answer
132 views

What is wrong with this python script?

I have this code: from sys import argv import os bold = "\033[1m" reset = "\033[0;0m" try: argv[1] except IndexError: print("\nNo arguments! Add \"-h\" or \"--help\" for more info." + bold + ...
1
vote
1answer
1k 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
2answers
636 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 ...
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.
1
vote
2answers
25 views

Changing python version without breaking software center

I have been fiddling with my Python installation on Ubuntu 12.04 (I was having trouble installing a python library), and at one point my python command wasn't working. It turned out the symlink was ...
1
vote
1answer
574 views

How to Install Python 3.X.X. Properly

I have installed and configured python from online tutorials, python books, and other various sources in the past only to find myself digging through forums when things go wrong and piecing various ...
1
vote
1answer
750 views

Import error when running update manager

It seems like I am getting some error related to Python, but I am not sure why I am getting it. When I ran Software Updater (in 12.10) from unity, it didn't even fire up. When I did this from the ...
1
vote
1answer
60 views

Why am I not being able to import dateutil module in Python 3?

I'm trying to use the Python 3 version of matplotlib module. I am getting errors about dateutil not being present even though I have installed this package. Shouldn't import dateutil work after ...
1
vote
1answer
117 views

howto link / execute / add to $PATH: python3.3.5 after manual installation in 12.04 LTS

I'm trying to install python3.3.5 on /home/myUser/XX, where home is located on a separate partition. I'm relatively new to Linux and have only basic knowledge about installing packages on my own, ...
1
vote
1answer
73 views

Install Nibabel for Python 3

How can I get the Nibabel module for Python 3? Only the Nibabel module for Python 2 is in the repository.
1
vote
1answer
290 views

How can i install SPE(Stani's Python Editor) for python3.3

I have ubuntu 13.10.I have SPE which runs for python2.7.4+.But i need to run it for python 3.3.2+.How can i do it.My system uses python2.7.4+ by default.
1
vote
1answer
266 views

The package python3.2 needs to be reinstalled, but I can't find an archive for it

I get this error when I try to update or run software center, but I can't find an archive for it: The package python3.2 needs to be reinstalled
1
vote
1answer
434 views

What is the difference between idle3 and idle-python3.2

I installed them both via apt-get install and they seem to be the same. If I start them they both open up a python shell
1
vote
1answer
187 views

Making a GUI for python program [duplicate]

I want to make a GUI for a program written in python.It is said that Gnome tool kit is helpful for this task.But,I want to know how to install it?and the way I should use it? I am using Ubuntu 12.04 ...
1
vote
1answer
437 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 ...