Python is an interpreted programming language that is often, but not solely, used as a scripting language. A version of Python is included by default on all Ubuntu distributions.

learn more… | top users | synonyms

0
votes
1answer
6 views

Tried to upgrade python. Fell down the rabbit hole. Ended up breaking cinnamon. Back, but on thin ice

Where I'm at; I've just fixed Ubuntu 14.04 via fresh install and recovery. At this point, I've installed python 2.7.10 from source on Ubuntu 14.04. I set it to be the primary python program during ...
0
votes
1answer
8 views

Error during MediaProxy installation

I am installing mediaproxy on my server debian. Please review the error pasted below. I have also tried installing the dependencies but still this error occurs. Need help on this. ...
0
votes
0answers
15 views

If I install a python package with `apt-get`, can I upgrade it later with `pip`?

I installed a python package (django) using sudo apt-get install python-django. Now I want to upgrade to the latest version. Should I run sudo pip install -U django, or should I uninstall first the ...
2
votes
2answers
7k views

Why do I get ImportError when trying to import Pandas Python module?

I installed the Pandas module for Python 2.7 using apt-get. However, when I try to import the module, it raises an ImportError: import pandas as pd File ...
0
votes
1answer
15 views

How to fix apt after doing easy_install pip?

I ran into the following error while using pip: "pip stops with ImportError for request-Modul" I read on a forum that an easy solution was to just apt-get remove pip and then to do easy_install pip. ...
3
votes
1answer
2k views

install pillow on ubuntu 14.04

I'm crazy with Pillow. I already ask here, without solving: Python Django Mezzanine install fail for Pillow package I have Ubuntu 14.04 and python 2.7. Installing pillow using pip or from github I ...
0
votes
1answer
30 views

pycurl.error: (35, 'gnutls_handshake() failed: Handshake failed')

On trying to download from a https:// URL with PycURL 'PycURL/7.19.3 libcurl/7.35.0 GnuTLS/2.12.23 zlib/1.2.8 libidn/1.28 librtmp/2.3' in Python 2.7 on Ubuntu 14.04.2, I receive pycurl.error: (35, ...
0
votes
0answers
32 views

Cron job not finishing

I have a custom Python script set to run with Cron on a 3-day per week basis. The job runs great, up until a certain point. The job is supposed to ZIP certain directories on my media server, and place ...
0
votes
1answer
55 views

How to install wit.ai and pywit with pip?

Wit.ai is https://wit.ai/getting-started The installation instruction is as follows: https://wit.ai/docs/python/1.0.0/quickstart But i couldn't install it sucessfully, I've tried: alvas@ubi:~$ sudo ...
1
vote
2answers
36 views

How to use the python 2.7 shell in ubuntu terminal [on hold]

I recently taught myself how to code in python. But i dont know how to use the inbuilt python 2.7 IDE. Can anybody help me with this also can you please give me a list of basic commands one needs to ...
2
votes
1answer
273 views

why is there more than one python 2 command in ubuntu 12.04?

so while playing with some aliases I realized that there are three python commands (without taking into account the python 3 commands) in the terminal: python python2 python2.7 So my question is ...
0
votes
2answers
18 views

Running python script from django views

Want to run a python script from django views. And I dont want to wait till the script execution. The python script should do its work in the background and in the meanwhile, I will send response to ...
0
votes
0answers
23 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 ...
10
votes
4answers
14k views

Unable to download videos using youtube-dl ('sig error'), how to correct?

I used to download videos using youtube-dl command line tool, from the past two days whenever i try to download any video I get an error as shown below. $ youtube-dl ...
1
vote
2answers
5k views

Installing Pygame Ubuntu 13.04

I recently installed Ubuntu 13.04 and want to install pygame. I've attempted doing as instructed on the pygame page (using the source code) however I am unable to install the dependencies and I get ...
0
votes
1answer
45 views

apt-get -f install suggests removing python2.7 and installing python3

Since I have some dependencies problems (I am trying to install mysql-workbench in a Ubuntu 12.04), I tried to run sudo apt-get -f install. However, the output looks very scary, since it suggests ...
2
votes
2answers
422 views

Unable to Uninstall Program : Own by OS

I was trying to uninstall program using pip uninstall South and it give me following error Not uninstalling South at /usr/lib/python2.7/dist-packages, owned by OS I'm in production machine and ...
0
votes
0answers
20 views

update-manager command does not work in 14.04

When I run the command update-manager I get the following output: Traceback (most recent call last): File "/usr/bin/update-manager", line 115, in <module> app.start_update() File ...
0
votes
1answer
14 views

python-gi referencing wrong headers

I'm trying to use gtk+ with python in Linux Mint 17. After trying the jhbuild method of building the gtk libraries for python, I tried to install from the Debian repositories and I tried to install ...
0
votes
1answer
33 views

Use apt-get to install packages newer than Ubuntu release

I've been experimenting with an Amazon Ubuntu instance running 14.04 and am using python3-pandas package, which for this release is version 0.13.1, which is quite a ways behind the current version of ...
8
votes
2answers
23k views

Installing Anaconda python on ubuntu

How to install anaconda python on ubuntu? https://store.continuum.io/cshop/anaconda/ Is there a way to apt-get install it? I only have command line access to my server, how do i install anaconda ...
-1
votes
1answer
16 views

How to run aws file on localhost

I'm new to Ubuntu and I installed python-flask and apache2 on my machine. I wish to run a python project that is presented in aws server. When I run the code it sucessfully runs on port 0.0.0.0:5000 ...
0
votes
2answers
21 views

Enable syntax coloring in Geany?

Online all the examples for Geany have syntax coloring, but I couldn't figure out how to enable this feature. I downloaded Geany, then created a new python file, but whenever as I type a keyword, ...
0
votes
1answer
358 views

Error: Make sure you have a working sip on your PATH or use the --sip argument to explicitly specify a working sip

I want to install PyQt5 as mentioned on the official documentation. Here is the ouput of the command they asked to run: begueradj@begueradj-hacker:~/Bureau/PyQt-gpl-5.4.1# python configure.py ...
2
votes
2answers
3k views

How to install and use jedi-vim python IDE for vim on ubuntu

How to install jedi-vim python plugin on vim installed on ubuntu and use it's features from remote terminal window. I have gone through documentation as describe but my vim acts in the same normal was ...
1
vote
1answer
153 views

Backintime won't start (no module named dbus)

I've got the following error on Ubunu 14.04 : user@ubuntu:~$ sudo backintime Traceback (most recent call last): File "/usr/share/backintime/common/backintime.py", line 26, in import config ...
0
votes
1answer
22 views

Python error during MAAS upgrade

I tried to upgrade my MAAS installation like it was described in here: Upgrading MAAS from 1.5.4 to 1.7.0 or latest on ubuntu 14.04 but there is an error in one of the python scripts used during the ...
0
votes
1answer
19 views

How to give the “Session and Startup” feature a working directory for a python script

I turned a GUI that I wrote in python into an executable via chmod +x mygui.py, added a shebang. Then I added this script to the "Session and Startup" list of programs (Settings -> Session and ...
1
vote
0answers
26 views

Installing modules for both Python 2 and 3

I need to install some modules for Python: python3-rospkg, python3-catkin-tools and python3-yaml. I need them to work for both python2 and python3. But as soon as I apt-get install one of the above, ...
0
votes
1answer
36 views

How do I properly install a python app that is not packaged (and without installer)

Every few months I encounter an app (java, python, etc) that I would like to install in Ubuntu, but it doesn't come as a linux package, nor is there any included installer. It's not often that this ...
0
votes
1answer
21 views

Added wrong path to $PATH variable but can't find old varaible to delete it

I'm trying to install virtualenv and virtualenvwrapper to set up and IDE for Python, following a tutorial for this on Ubuntu I accidentally entered the wrong path to the virtualenvwrapper. When I try ...
1
vote
0answers
8 views

Nautilus file notes (user metadata) workaround: how to display note in popup?

This post gives a python program for adding and viewing notes on files under Nautilus: File notes tab gone in Nautilus 3.2.1 It works! I want more.... The annotated file does not have any ...
0
votes
1answer
43 views

How do I install oursql using pip?

I have been attempting to install oursql using pip (7.1.0, I installed it using sudo easy_install pip as for my purposes the version provided by python-pip is too old) via running: sudo pip install ...
0
votes
0answers
8 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
2answers
46 views

Sublime text question

If I start sublime-text with sudo sublime I see package control and can access packages. If I start sublime-text with sublime Output of ls -la on directory: ls -la /opt/sublime_text insgesamt ...
1
vote
1answer
39 views

How to use python on eclipse?

I want to use python on Eclipse. How do I do that? I'm using Eclipse 3.8.1 on Ubuntu 14.04.
0
votes
1answer
73 views

Best way to install PyQt5 for Python 2.7 on Ubuntu 14.04

I am attempting to install PyQt5 on my Ubuntu box. I have been able to install the packages for Python 3, however,I have code that depends on pygraphviz which has a hard dependency on Python 2.7. I ...
1
vote
1answer
85 views

apt-get /usr/bin/datetime.so wrong ELF class

I'm trying to add a repo to apt-get bit it fails complaining over ELF headers sudo add-apt-repository -y ppa:chris-lea/node.js Traceback (most recent call last): File "/usr/bin/add-apt-repository", ...
0
votes
0answers
14 views

Spyder on Ubuntu 12.04 fails after trying to install ipython notebook

Spyder IDE was working fine on both Ubuntu 12.04 in both laptops(HP mini & old Compaq Evo610c) After trying to install python notebook, Spyder stopped working. However Pyhton 2.7.3 works fine. I ...
6
votes
1answer
721 views

Why py and not pyc or pyo?

When I install a python deb package, say python-numpy the files are plain python files. How do I tell to the package manager -- that I actually would rather use pyc or even better -- pyo files?
0
votes
1answer
23 views

How should I use pip to install pyreverse on Ubuntu 15.04?

When I attempt to install pyreverse, I get the following pip message: >sudo pip install pyreverse Collecting pyreverse Could not find a version that satisfies the requirement pyreverse (from ...
0
votes
1answer
66 views

How to install Kivy on Ubuntu 14.04?

How can I build and install kivy from source ?
0
votes
0answers
59 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 ...
0
votes
1answer
39 views

Trouble with zip support in custom Python build: zipimport.ZipImportError: can't decompress data; zlib not available

I looked here but I am not getting a lot out of the answer: A big reason for this is because I am a new Linux user and I haven't seen all the commands in action yet. I have the exact same problem as ...
11
votes
3answers
5k views

How do I run a script when a Bluetooth device connects?

I'd like to start my music player (Clementine) when my bluetooth headset connects to my computer. How do I detect the bluetooth device connecting so I can run a script to start the player?
0
votes
0answers
30 views

POST request using python-maas-client

We can use python-maas-client for accessing the maas API. I need to know the way of performing the post request towards maas using the python-maas-client. Here it is important links: Link for MAAS ...
0
votes
1answer
22 views

IDLE installation in Ubuntu 14.04

Does anybody know which IDLE package I should install from Software Center in Ubuntu 14.04 assuming I want to program in python 3?
1
vote
1answer
4k views

How to install Visual Python?

I'm a Linux newbie but I'm determined to get my favorite applications on my laptop running Ubuntu 12.04. I just installed Cinnamon. I'm trying to install Visual Python and it requires Python 2.7. I ...
0
votes
1answer
80 views

Error when i do ''make'' in cado-nfs map

When I’m in terminal and in the map cado-nfs. Then I do make. It will run for a second or two and then I gives a stops and gives this error: CMake Error at config/python.cmake:32 (message): Did ...
-1
votes
0answers
21 views

How can I make it so Python packages install to the python 3.4 interpreter

Every time i install a Python package, it installs to the 2.7 interpreter. I want them to install by default to this interpreter. Also, can I just copy the library and put it somewhere in the other ...