Tagged Questions

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
50 views

Package system is broken - updating Python

First I wrote the following command: sudo apt-get update And when that was completed, I ran this command: sudo apt-get -f install And I got this error from the terminal: dpkg: error processing ...
0
votes
1answer
79 views

How to install scipy with pip3?

I am trying to install scipy for python3.x and I am trying to install it with pip3 sudo pip3 install scipy But I have the following errors: Downloading/unpacking scipy Running setup.py ...
0
votes
1answer
69 views

Apt-get commands are failing with libpython3.3 unmet dependencies

OS: Ubuntu 14.04, Arch: amd_x64. Apt-get commands: install, remove and purge fails with the same error below. However commands like update and clean works fine. Not sure how to resolve the issue. ...
0
votes
1answer
77 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 ...
0
votes
0answers
22 views

What's the difference between python3.4 and python3.4m? [duplicate]

As the subject line. What is the difference of these two executables?
1
vote
1answer
51 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
0answers
52 views

Problem compiling pygame for Python 3.4

I was trying to compile pygame from source on Ubuntu 14.04 (64 bit) and issued the following command as given in the Wiki: apt-get install mercurial python3-dev python3-numpy ffmpeg ...
0
votes
2answers
200 views

pycharm can't find python

When I try to run pycharm it shows this error: ERROR: Cannot start PyCharm No JDK found. Please validate either PYCHARM_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK ...
0
votes
0answers
53 views

Installing pybluez for python 3 in Ubuntu Touch

I'm having problems with pybluez in ubuntu touch. $pip3 install pybluez exits with an error: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 the complete log is here: ...
0
votes
0answers
72 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 ...
0
votes
1answer
125 views

Ubuntu Freezes while using terminal and firefox

Hi I am extremely new to programming. I downloaded Ubuntu 14.0 and it keeps freezing while I am using firefox and while using the terminal. I would really like for someone to give me some insight into ...
1
vote
0answers
162 views

pyvenv still broken on 14.04.1?

meow@te:~# pyvenv-3.4 v Error: Command '['/meow/v/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1 I thought it was fixed. I've done update and ...
0
votes
1answer
147 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
2answers
87 views

Upgrading to Python 3.4 from 3.2

I have Ubuntu 12.04 and Python 3.2 installed. When I use sudo apt-get install python3, it says that my python is 'already the newest version'. However, 3.4 is the latest. How would I upgrade my ...
0
votes
1answer
96 views

How can I tidy up the mess that is my Python installations?

I had a Ubuntu 12.04 system which I eventually managed to get Python 2.7 and Python 3.2 working together (with pip and pip3) and Python 3.3 (with pip3.3) for good measure. I've recently upgraded to ...
2
votes
1answer
691 views

Beautiful Soup 4 not working with Python 3.4.0

I am using Ubuntu 14.04 64 bit Operating System . I installed Beautiful Soup 4 using this command : sudo apt-get install python-bs4 With Python 2.7.6 , I had no difficulty importing the bs4 ...
0
votes
1answer
24 views

Python3 - Using the bsdiff module

How do I use the bsdiff module with Python? While I can use shell scripts I would prefer to have a cross-platform solution. I have downloaded bsdiff4-1.1.4 and attempt to run setup.py as follows: ...
0
votes
1answer
155 views

How to install python3-dateutil in Ubuntu 12.04 (Precise)?

I am trying to install the package python3-dateutil in a Ubuntu 12.04.4 LTS (Precise) with aptitude, but I cannot find it anywhere. How can I install it?
0
votes
1answer
2k 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 ...
0
votes
0answers
16 views

I installed python3 from Python.org, and it messed things up. How to I revert to the original python3 on 14.04?

I am running Ubuntu Desktop 14.04 and updated python3 to 3.4.1 from python.org, and it seems that some things are not working correctly, especially 'software update'. How to I revert completely to ...
0
votes
0answers
67 views

I'm receiving a GDB test error installing Python 3.4.1 on 14.04

I'm trying to create a VirtualBox VM with Ubuntu 14.04 and Python 3.4.1. I've downloaded the source https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz And I've updated OpenSSL to resolve a ...
0
votes
1answer
1k views

unable to install/import tkinter

I got a pretty confusing Problem: I build a python program using tkinter. Then I dist-upgraded my ubuntu 13.10 (amd64) to ubuntu 14.04 LTS, now I tried to run my tkinter program. my compiler told me ...
0
votes
2answers
196 views

Can't open Software Center

I'm running Ubuntu 14.04 LTS, and I cannot open the Ubuntu Software Center. I keep getting this error: bash: /usr/bin/software-center: /usr/bin/python: bad interpreter: No such file or directory ...
0
votes
1answer
1k 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
66 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 ...
3
votes
2answers
98 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 ...
2
votes
2answers
152 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 ...
4
votes
3answers
2k 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
84 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
219 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
2answers
722 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
35 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
435 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
441 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
47 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
2k 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
1answer
299 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
111 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
114 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
268 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
216 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 ...
5
votes
1answer
2k views

How to create Excel xlsx files from a script?

I'm looking for packages available in Ubuntu main/universe repositories (14.04) able to create Excel 2007+ xlsx files from a script (python3 or perl) My requirements: 100% compatible Excel XLSX ...
2
votes
1answer
19 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, ...
11
votes
7answers
1k views

Should I change my Python code if I upgrade my Ubuntu?

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
370 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", ...
11
votes
5answers
37k 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
1k 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
163 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 ...
2
votes
2answers
2k 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
249 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 ...