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

learn more… | top users | synonyms

3
votes
1answer
1k 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
1answer
86 views

how to install python3 in wine?

How can we install python3 in wine for 32bit ubuntu ? Using winetricks python2.7 is possible but my app is written in python3 I don't have windows to test my application so I am going this hard ...
2
votes
1answer
187 views

Huge Python Problem

Preamble: I tried looking up a solution and nothing worked for me. First, when I run the following command $ sudo python --version Python 2.7.5+ Similarly for python2 and 3 $ sudo python2 ...
2
votes
1answer
33 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
78 views

How to install Python Matplotlib 1.5.1 on Ubuntu

I want to install matplotlib 1.5.1 for python 3.4 on ubuntu 14.04, but when I type in the terminal sudo apt-get install python3-matplotlib I just get matplotlib 1.3.1. I tried to use pip to install ...
1
vote
1answer
106 views

No module named 'gdbm'

I just finished installing python 3.5.1 on my Ubuntu, but am faced with this error message, regardless if I'm installing with Anaconda or with apt-get: No module named 'gdbm' that normally displays ...
1
vote
1answer
227 views

ImportError: No module named builtins

I am porting my python application from python 2 to python 3. As python-3 provides utility 2to3 which converts python-2 code to python-3. import builtins giving error as ImportError: No module named ...
1
vote
1answer
287 views

Removed python2.7, python2 python3, python3.4 from /usr/bin/

I was tinkering with my computer yesterday and, unaware of the importance of /usr/bin/, promptly removed all of the python files from there, and then proceeded to get rid of all the packages that ...
1
vote
1answer
363 views

PySide-Tools in Python3 - Ubuntu 14.04

I'm working on a UI for a Python Programme I have and have been using Pyside-UIC to convert QTDesigner docs into python files on a previously windows 8 computer. That computer got corrupted so I've ...
0
votes
1answer
17 views

Ubuntu 14.04 Menu and Side bars NOT displaying after Python3 uninstalled

I've uninstalled Python3 and now my Side and Menu Bars are not displaying. I'm running Ubuntu 14.04 LTS. I can still see my other icons on the desktop. I've tried to launch Terminal( Alt+Cntrl+T) - ...
0
votes
1answer
36 views

Installing Python3.4 + Pygame on Ubuntu 15.04

The issue has been discussed before, but I have failed to find an answer for the problem. I have tried both to compile Pygame from the official website and install from PPA but nothing works for me. ...
0
votes
1answer
22 views

Configuring Kdevelop for Python 3

I've installed kdevelop 4.7.1 & kde-python 1.7.1 The default configuration is using Python 2 in the code autocompletion & the console. How do I set things up for Python 3? Also, code ...
0
votes
1answer
439 views

cannot install Pygame for Python 3.5.1

I am trying to use Kivy 1.8.0 with Python 3.5.1 on my Ubuntu 15.04 Kivy generates an Error 'Fatal Error : Window no available :abort..After some time I came to know it needs PyGame but I cannot figure ...
0
votes
1answer
258 views

Jupyter installation

Everytime I try to install jupyter using pip3 install jupyter I get Command /usr/bin/python3.5 -c "import setuptools, ...
0
votes
1answer
145 views

Unmet dependencies with python3

My server is currently running Ubuntu Server 15.10. Yesterday I tried installing Gnome GUI with the command sudo apt-get install xorg gnome-core gnome-system-tools gnome-app-install Now whenever I ...
0
votes
1answer
229 views

Cannot import Zlib in Python 3.5 on Wily

After an upgrade to Wily, the new Python 3.5 package seems to be broken. I've tried doing a complete re-install of all the Python3 packages but it's not fixed the problem: ...
0
votes
1answer
54 views

Ubuntu 12.04 - python 3.2 - pygame

I have Ubuntu 12.04. In terminal I start Python 2.7 and then import Pygame and it works. In terminal when I start Python 3.2 and try to import Pygame it says it can't find Pygame. What is happening?
3
votes
0answers
60 views

Ubuntu 14.04 - Modify OpenVPN files manually

I am using a VPN (Private Tunnel) to download stuff / play games at dorms (ports are blocked, VPN allows me to bypass that). I also am trying to create a script in python that allows me to create new ...
3
votes
0answers
500 views

Backend for python3 module matplotlib

I'm trying to use python3 to plot graphs. The only backend for matplotlib that seems to work is tkAgg (Tkinter), however this looks like it has been designed in the Stone Age. So I was trying to find ...
2
votes
0answers
22 views

What is the ETA of python-3.5.1on wily werewolf?

python3-config is broken on python 3.5.0: mga@aria:~>python3-config --extension-suffix @SO@ There is a patch for this on python-dev since 2015/10/19, which made it to the 3.5.1 release. What is the ...
2
votes
0answers
775 views

How to update to the latest numpy and scipy on Ubuntu 14.04LTS

On my Ubuntu 14.04LTS, for python3, I have >>> import numpy >>> import scipy >>> numpy.__version__ '1.8.2' >>> scipy.__version__ '0.13.3' I want to update ...
1
vote
0answers
220 views

Python - pip pip2 pip3 pip3.5 packages are installed but cannot be imported in any Python session

As I am using Xubuntu I thought perhaps this was a better forum than Stackexchange for some questions relating to pip and Python Today I have encountered troubles with pip and Python. For some reason ...
1
vote
0answers
330 views

Cannot create Python 3.5 virtualenv ImportError: No module named 'gdbm'

I'm experiencing the same issue as this individual but unfortunately switching back to Python 3.4 is not an option for me, I need to be running 3.5. I've broken command not found? Here is what ...
1
vote
0answers
17 views

How do you detect time since user has touched mouse or keyboard?

I'm writing a custom lockscreen/screensaver. I need to determine how long it's been since the user has touched the mouse or keyboard in Python.
1
vote
0answers
27 views

Is there a way to properly format an Ubuntu font?

I'm trying to distribute Ubuntu Mono Regular with a Media Player I'm developing: https://github.com/ki4jgt/SIMP It is my understanding that a font is defined like in line 27 uMono = ...
1
vote
0answers
1k views

Really installing PyQt4/5 for python 3.4 on trusty

I am using Python 3 on my ubuntu 14.04.2 (trusty), along with Python 2. I am trying to run ipython --pylab, but with Python 3, this fails (works well with Python 2). It fails since it needs QT4/5 or ...
1
vote
0answers
122 views

vim with python3 compatibility

So I followed this way What's the easiest way to get vim with python 3 support? which didn't work and this one http://www.xorpd.net/blog/vim_python3_install.html that did work. the thing is each ...
1
vote
0answers
250 views

iPython frontend and kernel versions are incompatible

I have just upgrade my OS from 14.10 to 15.04. Spyder(Python 3.4) with iPython was working perfectly in 14.10. However, after the upgrade, iPython console failed to start up. My python version I am ...
1
vote
0answers
98 views

Ubuntu-sdk Kits, mkspec and dbus errors

This is a double part issue : When I launch the ubuntu sdk I get the following message in the General Messages pane: Traceback (most recent call last): File ...
1
vote
0answers
163 views

matplotlib xkcd with utf-8 label

In python3 / matplotlib, I'd like a plot with a label: plt.plot(np.sin(np.linspace(1,10)), label='fête') plt.legend(loc='upper left') plt.show() Works great. Now let's try with xkcd mode: ...
1
vote
0answers
343 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
26 views

cant install python3 on ubuntu

I try to download python on ubuntu I get the following errors: ali@CCVL-4GPU:/media/work$ sudo apt-get install python3-dev Reading package lists... Done Building dependency tree Reading state ...
0
votes
0answers
11 views

What to do if I have python 3, but I cannot install a program designed to python3?

I have the following problem: I need to download a file that is designed for python 3, I already install it in my shell using the code. sudo apt-get install python3 The I tried sudo pip3 install ...
0
votes
0answers
41 views

Can't remove Python 3 pip on ubuntu 14.04 LTS

I have the following python directories on my machine: me@pc:/usr/lib$ ls --directory python* python2.6 python2.7 python3 python3.4 python3.5 python-tz where python2.7,python3.4 and python3.5 ...
0
votes
0answers
7 views

How to lock GUI created by python program to launcher

In python, I used the module tkinter to create a GUI program. However, when I right-click it, select Lock to Launcher, and right click again, the option to lock it to the launcher is still available. ...
0
votes
0answers
39 views

Running python script in Python interpreter

I have recently started using Ubuntu 14.04. I am learning Python and have both Python 2.7 and 3.4 installed. I made some simple scripts and executed them using command python filename.py and it ...
0
votes
0answers
29 views

python3 won't import LCM

I am not sure if this problem is given by some incompatibility between LCM (lightweight communications and marshalling) and python3 or by the fact that I have more than one python version (python 3 ...
0
votes
0answers
128 views

Cant' properly install PyInstaller

Something went wrong while installing, but nonetheless I got message 'success' message: $ sudo pip3 install pyinstaller [sudo] password for user: Downloading/unpacking pyinstaller Downloading ...
0
votes
0answers
323 views

How do you fix “unmet dependencies … but [something] is to be installed” error?

I am trying to install and configure an Ubuntu, Django, and MariaDB stack. I have the latest (as of writing) MariaDB 10.0 installed, and as per the Django documentation regarding databases, I am ...
0
votes
0answers
346 views

NLTK says it's installed with Python 3.4 but import cannot locate it

I know similar questions have been asked before but I've spent hours searching the web and reading other questions and have not found a solution to my problem. I'm on Ubuntu 15.04, trying to install ...
0
votes
0answers
47 views

Upgrade default python3 version in Ubuntu 14.04 from 3.4.0 to 3.4.2

Ubuntu has a default python3 version of 3.4.0. How do I upgrade this to 3.4.2? Do I get the tar.gz package from the python website?
0
votes
0answers
37 views

Would there be any disadvantages to using Pyglet for GUI programming?

On Linux systems (such as Ubuntu), would it present a problem to program a GUI (for a media player) using OpenGL? I don't like WXPython b/c it's ugly as poop and PyQt requires a license when being ...
0
votes
0answers
61 views

Installing latest version of Python on Ubuntu 14.04 LTS without building from source

I am looking for a reliable choice. How to install Python 3.4.3 on Ubuntu 14.04 LTS without building from source?
0
votes
0answers
57 views

Messed up system by uninstalling Python3 - Help!

I have limited Ubuntu experience and seem to have messed up my system pretty good. I am running Ubuntu 14.04. I wanted to upgrade Python3 to the latest version - 3.4.0 was installed and I wanted to ...
0
votes
0answers
67 views

Python3 code not executing in Apache2.4.10(ubuntu)

<VirtualHost *:80> <Directory /var/www/test> AddHandler cgi-script .py Options +ExecCGI DirectoryIndex index.py </Directory> # ...
0
votes
0answers
35 views

.desktop-file two part exec line

I am trying to get bleachbit to run. Unfortunately I get the error, that it could not import gtk. It seems that this is due to me having python 2 & 3 installed. Starting bleachbit over the console ...
0
votes
0answers
34 views

Help writing an Upstart script

On my Ubuntu 14.04.2 server there's an installation of ownCloud with its News app. Now, for some reason or another, a couple of days ago the app stopped pulling new articles via owncloud cron.php. ...
0
votes
0answers
2k views

sudo apt-get install python3-pip not working

I installed pip3 using the command sudo apt-get install python3-pip After installing, I checked the version using pip3 --version However, it gives an error bash: /usr/local/bin/pip3: No such ...
0
votes
0answers
170 views

How to deploy python3+django 1.7+uwsgi+nginx on a fresh ubuntu server 14.04 64bit

I am a newbie. I find there is few detailed guide for this. So I come here for help. related information: django project path: /root/uxn/exam My site ip: 120.44.244.38
0
votes
0answers
79 views

apt-get fails to do anything

After upgrading Ubuntu from Ubuntu-12.04-adm64 to Ubuntu 14.04.1 LTS via ssh (on VDS) For most of commands apt-get returns something like this: Setting up python3-minimal (3.4.0-0ubuntu2) ... ...