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

learn more… | top users | synonyms

0
votes
0answers
10 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 ...
51
votes
6answers
64k 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
142 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
565 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
219 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
204 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 ...
-2
votes
0answers
13 views

encoding issue in python3.4 \u2014 under windows [closed]

I have em dash character in my code (\u2014) to split a line in a certain txt file with open(path, 'r') as r: number = r.readline() num = number.split(' — ')[1].replace('\n',' — ') It ...
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
72 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
22 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
15 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
35 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
40 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 ...
6
votes
3answers
7k 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
104 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
21 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
6 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
227 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
54 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
202 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
34 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
162 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
26 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
110 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 ...
46
votes
8answers
234k 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
678 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
125 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
409 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
319 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
164 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
242 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
295 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
74 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
104 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
124 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
263 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
1
vote
1answer
60 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 ...
1
vote
1answer
34 views

Python os.getlogin() vs BASH : who

I have formed 3 sessions with user accounts and I got no problem with Unix: who command but why I am unable to get correct response with python : getoslogin() function. Please find attached image for ...
0
votes
1answer
63 views

Software Center doesn't work after installing Python 3.4.3 [duplicate]

I have a problem with my Ubuntu 15.04, after installing Python 3.4.3 I couldn't run the Software Center and this message appears: File "/usr/bin/software-center", line 140 print time.time() ...
0
votes
1answer
222 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: ...
4
votes
2answers
2k views

Unable to install python3-dev ubuntu

When I tried to install python3-dev using sudo apt-get install python3-dev I got the following message python3-dev : Depends: libpython3-dev (= 3.4.0-0ubuntu2) but it is not going to be installed ...
1
vote
1answer
46 views

OCR-Software sought

What is recommended commercially free usable OCR-Software? It should be accessible via Python or a Python library. And it should run under Linux. The one I came across myself is tesseract. Are there ...