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
0answers
12 views

libtiff module not found on 64-bit Ubuntu 14.04 python 3.5.1 (or 3.4)

My problem is pretty much identical to here except none of the solutions there are working for me. I'm assuming the issue there was for python 2.7 because my issue is specific to python 3.5.1 TL;DR: ...
3
votes
1answer
813 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 ...
3
votes
2answers
1k views

Upgrade scipy to the latest version

I am running Ubuntu 14.04. I have scipy 0.13.3 and I would like to upgrade it . I have tried: sudo pip3 install scipy --upgrade but I receive this error: creating ...
0
votes
1answer
36 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
28 views

How can I modify this script to only copy certain file types? [on hold]

The script is here: How can I automatically copy the content of a usb (flash) drive to another directory? I would like modify the script to only copy media files (jpg, png, mov, avi, wmv, mp4). ...
0
votes
1answer
21 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
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 ...
50
votes
6answers
65k 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?
3
votes
2answers
13k views

how to update python version on ubuntu 14.10

I'm trying to figure out what version of python i have installed, and also upgrade it to the latest. When I go to a command prompt and check, it looks like I have an old version of python installed. ...
0
votes
1answer
148 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
2answers
639 views

How to install python3-django in 14.04?

python3-django is a package available in the repos for Ubuntu 15.04. It isn't in the default repos for Ubuntu 14.04. How can I install it in Ubuntu 14.04?
1
vote
1answer
240 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
224 views

Installing python 3.x on Ubuntu 15.10

I have already python 2.7 on my machine. I can't recall if I installed it or it is a built-in install. Anyhow, I would like to install work with python 3.x and I wonder if I need first to uninstall ...
19
votes
3answers
19k 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 ...
1
vote
1answer
85 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 ...
0
votes
2answers
25 views

python 2.x beside 3.4

From noob to all... Is it possible to have py2.x beside 3.4, preferably with launcher icons for both? If not, how can I start py2 IDE from command line? I prefer py3, but need py2 and it's modules ...
0
votes
3answers
8k views

Import error :No module named MYSQLdb

I have a problem so a connection a python to database local of MySQLdb. Message of error is: import MYSQL ImportError:No module named MYSQLdb. This is a script in python 3.4 to connection my ...
0
votes
1answer
24 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
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
0answers
45 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 ...
5
votes
3answers
8k views

Cannot install scikit-learn in Python 3.4 in Ubuntu 14.04

I am trying to get scikit-learn to Python 3.4 in Ubuntu 14.04. When a run the command: sudo pip3 install -U scikit-learn I get scikit-learn loaded into Python 2.7. I have also tried to use: sudo ...
1
vote
1answer
111 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
0answers
23 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 ...
0
votes
0answers
9 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
8 views

How do I install python 3.4 to my chromebook? [duplicate]

I installed Ubuntu on the chromebook, but now whenever I enter a command it asks me for a password? I never set one up and I'm not sure how to proceed from here.
0
votes
1answer
354 views

How to safely install Python 3.5.1? [duplicate]

Python 3.5.1 came out on December 7th 2015 and as a beginner Python coder I would like to try the very newest version on my Ubuntu installation. At the moment both Trusty Tahr 14.04 LTS and Wily ...
3
votes
3answers
56 views

How can I reorganize files by extension, and sort them into folders by category?

Below code was posted by @JacobVlijm. I've tried to modify it, because I want other folder names then the file extensions, and I'd like to group file extensions into categories. The code does not work ...
1
vote
0answers
241 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 ...
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 ...
3
votes
1answer
37 views

How can I use DBus to create a client and server without dbus configuration files on recent releases of Ubuntu?

I want to use a bridge between a flask webapp and python subprocesses under python3. I couldn't find a copy paste-able example of a service instantiated without config files for the same. The ...
0
votes
1answer
187 views

Installing scikit-learn with Python3, _superlu.cpython-34m.so: undefined symbol: dtrsm_

I am using ubuntu 14.04 and trying to install scikit-learn using python 3. An I run into the following error: In [4]: import sklearn produces: ImportError: ...
0
votes
2answers
4k 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 following error: Traceback (most recent call last): File ...
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 ...
5
votes
3answers
17k views

Installation procedure for numpy and other python-3.4 packages on ubuntu 14.04

I am new to ubuntu and installed ubuntu 14.04 32 bit on my LENOVO hinkpad T410 machine with windows 7 two days ago but since then trying download and install python-3.4 packages (NUMPY, SCIPY) on ...
2
votes
2answers
118 views

Accidentally deleted /usr/lib/python3.4

I am on ubuntu 14.04 and I accidentally deleted python3.4 I am trying apt-get install python3.4 dpkg-reconfigure -a apt-get install -f But I am seeing the following errors dpkg: error processing ...
45
votes
8answers
236k 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?
0
votes
3answers
700 views

virtualenvwrapper + python3: invalid syntax

On Ubuntu 14.04 I run mkvirtualenv -p /usr/bin/python3 myvenv And I get Running virtualenv with interpreter /usr/bin/python3 Traceback (most recent call last): File ...
0
votes
0answers
132 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
1answer
453 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 ...
1
vote
0answers
341 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 ...
0
votes
1answer
22 views

Need help with depixel in Ubuntu 14.04

I'm trying to use a program called "depixel" in Ubuntu 14.04 which seems to be written in python3. I'm trying to use it so I can smooth out a pixel art image I made. Here is a link to the program. I ...
0
votes
1answer
176 views

Python3 + ipython + pylab on Ubuntu 14.04

I really want to switch to Python 3, but Ubuntu 14.04 makes it difficult to do so when using the IPython+pylab framework. My settings: I have installed most of the important packages using pip rather ...
0
votes
1answer
270 views

Jupyter installation

Everytime I try to install jupyter using pip3 install jupyter I get Command /usr/bin/python3.5 -c "import setuptools, ...
2
votes
2answers
299 views

Missing REQUIRED dependency: python3-dbus [how to install python dependencies]

I am trying to update HPLIP 3.14.3 to 3.15 but is not available through the software centre thus I am installing it from here. However I am having difficulties in the automatic installation due to ...
0
votes
0answers
78 views

glade import error as a gtk.glade [duplicate]

I am trying to port Python 2 to Python 3, but I am having trouble importing Glade: import gtk.glade ImportError: cannot import name glade, introspection typelib not found Any idea how to fix this? ...
0
votes
1answer
109 views

AttributeError: 'gi.repository.Gtk' object has no attribute 'gdk'

I am porting python 2 to python 3. When running application giving below error: AttributeError: 'gi.repository.Gtk' object has no attribute 'gdk' Any idea to fix this!! Thanks
0
votes
2answers
128 views

python3 is not supporting gtk module

I have Ubuntu 14.04 with python-2.7 and python-3 support. I am porting my python application from python-2.7 to python-3. I have example.py file which is importing below modules. and I ...
1
vote
1answer
266 views

Python is soft link to python2.7, how to change link to python 3 [duplicate]

on Ubuntu 14.04 has python-3, python-2.7 and python is linked to python-2.7 by default. I have to run python-3 code on ubuntu -14.04. Can I modify /usr/bin/python link to python3? Any idea? Thanks
0
votes
1answer
61 views

python application migration from python-2.6 to python-3

I'm migrating my python application from python-2.6 to python 3. My application has been developed on Ubuntu 10.04 system having python 2.6 support. Now i want to make it work on Ubuntu 14.04 with ...
27
votes
6answers
73k 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 ...