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

learn more… | top users | synonyms

1
vote
1answer
15 views

How to install `requests` module for `python3`?

I wanted to download Requests: HTTP for Humans module for python3. So I started with sudo apt-get install python3-pip sudo pip3 install requests --upgrade There were no errors. However, when I try ...
1
vote
2answers
30 views

Python3 modules [duplicate]

I've recently installed Ubuntu 14.04 and have been a python enthusiast for several years, since I used python in grad school for (text) data analysis. I've noticed that 14.04 comes with both python ...
-1
votes
0answers
22 views

Removing python3 screwed up the Ubuntu 14.04. How to reinstall it with all Ubuntu related dependencies?

I did a stupid thing to remove the python3. Now the system is not running properly. Is there anyway that I can reinstall all those dependencies related to python3?
3
votes
2answers
61 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 ...
1
vote
2answers
26 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 ...
0
votes
1answer
135 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', ...
-1
votes
2answers
28 views

Shifting between alternate versions of Python in Ubuntu

I am new to ubuntu and I wanted to shift my version to Python 3.4.1. So I ran the command: $ sudo update-alternatives --config python update-alternatives: error: no alternatives for python But ...
0
votes
2answers
91 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 ...
-1
votes
1answer
122 views

Problem with update-manager: No module named 'apt_pkg' in Ubuntu 13.10, having installed Python 3.4 on /usr/local/lib

I'm rather new to Ubuntu and I'm trying to run update-manager on Ubuntu.13.10. I get: jacopo@jacopo-laptop:~$ update-manager Traceback (most recent call last): File "/usr/bin/update-manager", line ...
0
votes
0answers
33 views

What is the “m” in my python installation [duplicate]

I found this when playing with python /usr/lib/python3.4m/ Along side /usr/lib/python3.4/ What is the purpose of this?
-1
votes
1answer
79 views

ImportError: no module named md5

I followed this tutorial to install Python-3.1.3 on Ubuntu. On the Terminal, I run: python3.1.3 , then import md5 I get this error: ImportError: no module named md5 Same problem when I run: import ...
0
votes
1answer
77 views

ImportError: cannot import name Gdl from gi.repository

Trying to import the Gnome Docking Library I get the exception: ERROR:root:Could not find any typelib for Gdl ... from gi.repository import Gtk, Gdk, Gdl ImportError: cannot import name Gdl
0
votes
0answers
22 views

cloning lxc container using python3-lxc

I am experimenting with lxc on ubuntu 14.04. In order to manage a couple of lxc instances I am using python3-lxc. Using pyhthon3-lxc, I do fail to clone an existing container: >>> import lxc ...
0
votes
1answer
76 views

How to change default python version from terminal? [duplicate]

I'm using Ubuntu 14.04 where the default python version is 2.7. I would love to type python3 to run python 3.4. How can I set that ? (After that, I think I can run python 2.7 by typing python2).
3
votes
0answers
139 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 ...
0
votes
2answers
66 views

How to iterate a Python dictionary with tuples? [closed]

I have the following dictionary: zimmerliste = {'bad_eg' : ((5,2),(5,2),(5,2),(40,.05)), 'gang_eg' : ((7,2,),(40,1.5))} The key is a room in my house. The dictionary contains a tuple of a tuple. ...
2
votes
1answer
48 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 ...
1
vote
1answer
64 views

How to use python3 in emacs on ubuntu 14.04

I am using emacs in python mode. To run a python file I use the command C-c C-c. Emacs automatically start to run python 2.7 while I would like to use python3. Once I have been able to solve ...
1
vote
1answer
65 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 ...
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, ...
8
votes
7answers
840 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 ...
1
vote
2answers
195 views

Missing: “/usr/include/python3.3m/Python.h”

I recently moved to ubuntu 14.04. I can't compile blender afterwards. It says the error message below CMake Error at CMakeLists.txt:2220 (message): Missing: "/usr/include/python3.3m/Python.h", ...
8
votes
4answers
10k 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?
2
votes
1answer
468 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, ...
3
votes
1answer
67 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
2answers
656 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 ...
0
votes
1answer
100 views

Install Nltk 3.0 - Which Folder

I just installed python 3.4.0 on Ubuntu 13.10, and now I want to install nltk-3.0a3.tar.gz However, I am not sure to which folder I should extract this. I am still new to linux and I don't know where ...
-1
votes
2answers
360 views

cannot install python3 after dist-upgrade

How can I install python3? I try to install python3 like this: sudo apt-get install python3 But I get the error below: Reading package lists... Done Building dependency tree Reading state ...
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
votes
1answer
143 views

How to download Django 1.6.2 + set the path to python3?

I don't know how to set the path. How shall I install django? How do I set the django module to the python3 path? Please answer these 2 questions. I'm a newbie so please bear with me lol. This ...
0
votes
1answer
567 views

matplotlib Error: No module named matplotlib even though it is installed

I have been through the process of installing matplotlib on my Ubuntu 12.04 computer. However, when I try to run a test program, I get the error Traceback (most recent call last): File ...
0
votes
1answer
715 views

Install Pillow for Python 3

What's the best way to install Pillow for Python 3?
0
votes
0answers
72 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 ...
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.
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?
1
vote
1answer
585 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 ...
0
votes
1answer
80 views

How to download easygui for python3.3?

I have python 2.7 and python 3.3 in my Ubuntu 13.10 system.I have easygui in-built for python2.7 but not for python3.3.But when I download the zip file of easygui and unzip it and type "python3 ...
1
vote
1answer
292 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.
0
votes
1answer
34 views

Problem in python3.3.2+ [duplicate]

I am using Ubuntu 13.10.I have 2 versions of python.Python2.7.6 and python3.3.2+.(I don't know what is the '+' sign)Whenever I open python 3.3.2+ and type print "hello." .I get the invalid syntax ...
0
votes
1answer
1k views

How to download pygame in python3.3

I am using Ubuntu 13.10.I have both python 2.7 and python 3.3.I have installed pygame properly in python 2.7.How can i install it in python3.3.Does pygame support python3.3 or not?
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 ...
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
1answer
267 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 ...
0
votes
1answer
87 views

I want to uninstall Python3 and just use 2.7

I typed in this to the terminal: sudo apt-get remove python3 And it gave me the following output: Reading package lists... Done Building dependency tree Reading state information... Done ...
1
vote
0answers
136 views

upstart-socket-bridge and python3 example

I'm trying to get upstart-socket-bridge to pass the socket to a Python3 application. Are there any working examples of u-s-b using Python 2 or 3? This example is a test setup only. u-s-b launches ...
0
votes
0answers
49 views

Gtk3.0 Gtkbuttons and junctions sides

I'm trying to align many GtkButton with junction sides but the result is not what I want some help please my code: it is a python code for Gtk3.0 (3.6) I'm on ubuntu 13.04 import gi.repository from ...
0
votes
0answers
31 views

python3-lxc and lxc parallel installation not possible!

every time i try to install one of the package lxc and python3-lxc the other one is removed from my system. How i can fix this problem? I need both for a project. Thank You!
1
vote
1answer
334 views

Python 3.2 script not working and/or importing tkinter when running from desktop

I'm really puzzled by this, but the answer is probably quite simple and just can't see it: I have a series of python modules that work fine from within the python interpreter, but nothing happens ...
0
votes
0answers
158 views

pygame.error: File is not a Windows BMP file

I am trying to learn Pygame reading Making Games with Pygame and Python. I have Ubuntu 13.04, python 3.3, and pygame 1.9.2. I can only load BMP images in pygame. Research into this has shown me ...
0
votes
0answers
22 views

How to write a Unity scope using Python 3 [duplicate]

I know Python and Vala are being deprecated in favor of C scopes, but the problem is the backend is almost complete and it was written in Python3. For now, I just want to see it working. I'll think ...