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

Uninstall flux which was installed from source

I installed Flux using following steps (source) git clone https://github.com/Kilian/f.lux-indicator-applet.git cd f.lux-indicator-applet sudo python setup.py install Now I want to ...
0
votes
1answer
56 views

Can I install new version of python on ubuntu 14.04?

Considering that the current version on my 14.04 LTS Ubuntu of python is 2.7.6, I need a more recent version for dealing with specific libraries (that need >2.7.7)... I don't really understand. ...
0
votes
0answers
24 views

how to automate ssh login with password and ppk?

Hi I would like to automate my ssh, where frequently I use to enter my login name, password and attach a ppk file to enter into my server. Is there any way to automate this process using python, ...
0
votes
1answer
205 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 ...
0
votes
1answer
87 views

Error 'Depends: python:any. Unmet dependencies' after installing python 2.7.5

I've installed python 2.7.5 on my ubuntu 14.04. And then I wanted to install virtualbox (or any other app), but I'm getting this error: Reading package lists... Done Building dependency tree ...
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
28 views

Python Anaconda Default Path

Accidentally I've set Anaconda's Python as the default Python. So, when I type which python in the therminal, I get: /home/myuser/anaconda3/bin/python instead of getting ...
0
votes
0answers
15 views

Import error when executing Mayavi2

After installing Mayavi2 and all its dependences I am unable to run it . I get the following output when executing the commando "mayavi2": Traceback (most recent call last): File ...
0
votes
0answers
33 views

Number patter counter needed in Python

I have a ultrasonic senor when entered this script (it’s a bit too long to past it in here) I get lots of numbers printed out (every 1 seconds). These numbers are between 0cm to 700cm, however ...
-3
votes
1answer
31 views

MateNu Python Installation help

I really want some info on what version of Python to install for MateNu, and how to install all the add-ons quickly. Here is the list from the readme itself: python, python-xdg, python-cairo, ...
0
votes
1answer
46 views

Changed Python version, “apt-add-repository” not working ERROR

hi after installed python 3.5 in ubuntu, i had 2.7.6 and i wanted to be updated cause i will be working and learning python, so i installed the latest python version 3.5 and switched version to it, i ...
1
vote
0answers
23 views

Inputting a text to an executable file the moment it's executed

i am bad at choosing titles but my problem is that I have an executable file that returns a value when i type the word password in it using the terminal, but the problem is the file require you to ...
1
vote
1answer
70 views

How can I make running a command depend on the input of a correct password (Tkinter GUI)?

I created a small GUI in Tkinter/python: import Tkinter import tkMessageBox import os top = Tkinter.Tk() top.geometry("400x250") def root_login(): os.system("gksudo su && sudo su") ...
0
votes
0answers
34 views

launching a python script from rc.local fails to connect to x server

Hey I am trying to run this python script that rotates the screen when flipping the laptop lid at startup. I tried to ad the line to run it to the rc.local file with #!/bin/sh -e sudo ...
0
votes
0answers
39 views

Restoring my old python and python dist-packages after pyenv

After following the instructions on http://askubuntu.com/a/533581/63298 to update my python to python 2.7.11 and python 3.5.1, I have lost all my dist-packages. They still exist: gillin@mt:~$ sudo ...
0
votes
1answer
28 views

decimal precision

I have a variable a=1.349804687500000093e-02. I want to have a in 5 digit precision. I tried to use the following command which prints the variable as I want but does not save it. ...
5
votes
3answers
589 views

Why do some python scripts begin with #!/usr/bin/env python? [duplicate]

I noticed that some python scripts start with #!/usr/bin/env python instead of #!/usr/bin/python. Are python scripts the only ones that use #!/usr/bin/env? Are there any scripts that start out with ...
0
votes
1answer
22 views

Finding modules on python

Python can't find my modules on the IDE but can find it from the terminal. Does anyone know how to fix this? Terminal: >>> import matplotlib >>> Python IDE: >>> ...
0
votes
1answer
37 views

Unable to compile in geany

Whenever I try to compile any file whether c , c++ or python in geany I get this error.
0
votes
0answers
14 views

Import VIPS Error

I want to use VIPS module in python, but this time I had a problem when I want to run through the terminal. example: from gi.repository import Vips and the error message appears as follows: ...
0
votes
1answer
49 views

error trying to exec 'cc1': execvp: No such file or directory (possible SAGE/python issue)

I see that there are a number of topics on this error message, but I've tried every solution I have found to no avail. This is my first question here, but I'm going to try and include all of the info ...
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 ...
1
vote
1answer
28 views

Cannot launch Pydev in Eclipse

I first installed Java; then installed Eclipse IDE using this (no problems at all). Then I installed Pydev using this. But whenever I launch Eclipse in my home folder it opens Java IDE not Python ...
0
votes
1answer
37 views

Python playback can't chose Bluetooth device in Volume Control

Using Radio Tray in Xubuntu 15.10. Outputs fine to headphone jack on the computer. But when I try to change the output to the bluetooth device (Philips Fidelio) in the pulseaudio Volume Control, ...
0
votes
0answers
31 views

no module named imagehash

I have a Problem in installing imagehash package. I have used the following command to install imagehash pip install imagehash It says that REQUIREMENT ALREADY SATISFIED with an exception error. ...
0
votes
0answers
203 views

installing nylas N1.deb

raymond@akornor:~/Downloads$ sudo gdebi N1.deb Reading package lists... Done Building dependency tree Reading state information... Done Building data structures... Done ...
4
votes
4answers
483 views

How to create a web interface for my Python script? [closed]

I have a computer in my university office, with Ubuntu on it, ssh running, and Python. I'm connecting on it myself using ssh to run Python programs and see the output. Only command-line output, ...
0
votes
0answers
34 views

problem while installing imagehash package ubuntu 15.04

When I tried to install python package imagehash using command pip install imagehash, it showed an error in the terminal: Command "/usr/bin/python -c "import setuptools, ...
0
votes
1answer
263 views

How to upgrade pip to latest?

I installed pip using get-pip.py after that pip freeze throws below error Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in ...
0
votes
1answer
113 views

Cannot install Python Imaging Library using pip

I'm attempting to install the Python Imaging Library on Ubuntu 15.10 by running pip install PIL. When I try and run that (or even pip uninstall PIL) I get this error: Traceback (most recent call ...
0
votes
2answers
43 views

installing packages from usb to ubuntu server 14.04 [duplicate]

I want to install these packages to my Ubuntu server from USB as i have tried many thing by editing mirrors in /etc/apt/sources.list to install some packages for Ubuntu server 14.04 know I want to try ...
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 ...
3
votes
1answer
193 views

Installing Cuda7.0 after removing cuda 7.5

I was setting up to use google's shiny new library TensorFlow. So being excited I began the tensorFlow pip install. Noticing that I needed cuda I went to the Cuda website and downloaded the 7.5 deb ...
3
votes
1answer
30 views

Make “About” Window in glade [closed]

I tried to create about window like About MATE in Mate DE on Ubuntu 14.04, and this is the .py file that I made : #!/usr/bin/env python import sys try: import pygtk pygtk.require("2.0") ...
-2
votes
3answers
45 views

Any way to see if a long running process bash command succeeded? [closed]

I have a long running process that was parsing text and my laptop died at some point because it was unplugged. I really don't want to unnecessarily run the process again because it takes over a day, ...
0
votes
1answer
118 views

QGIS not working with Python installation on Wily 15.10: broken paths/dependencies

When I try to run QGIS, I get the following errors at startup: An error occured during execution of following code: import pyplugin_installer Traceback (most recent call last): File "", line 1, ...
0
votes
1answer
79 views

How do I install sqlite3 ODBC drivers with unixODBC?

According to the unixODBC drivers page (straight out of the 90s), I should download the SQLite3 drivers from: http://www.ch-werner.de/sqliteodbc The instructions for building sqliteodbc from the ...
0
votes
0answers
63 views

Can't install pip on virtualbox'd ubuntu 14.04 (Windows 10 host)

So while I haven't been able to solve this problem and suspect it's a hardware one, I managed to install ubuntu 14.04 on a virtualbox. However, for some reason pip isn't installed and I can't install ...
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
0answers
23 views

How to delete files installed by a python script? [duplicate]

I installed a program using $ sudo python setup.py install Now I want to delete it however python doesn't have a delete or uninstall option. Any suggestions?
0
votes
0answers
66 views

Python: fail to build tkinter module on fresh 14.04.3 install

I am trying to build Python on Ubuntu 14.04.3 x64. All tk8.6, tk8.6-dev and other build packages are correctly installed. The Python tkinter module does not build, because of the following error (some ...
0
votes
0answers
24 views

“you don't have permission to access /cgi-bin/fp on this server” error on ubuntu localhost

I'm trying to run a website on localhost. When I run localhost, I encounter the following error: How can I fix this problem? Thanks
1
vote
2answers
41 views

data file re-organisation

I have a .data and I need to re-organise it so that 3 consecutive lines are joined together in a single line. Just to be clear, I have the following ... D611102 = 'SVM_PRS_Hydr_L01', T = 0.0, C = ...
0
votes
0answers
139 views

error: Command "i686-linux-gnu-gcc …failed with exit status 1

I am executing python setup.py install but this process finish with next error: error: Command "i686-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes ...
0
votes
0answers
24 views

Installing Basemap Error GEOS

I am intalling Basemap but when I install geos-3.3.3, the process is error. I have followed these step: cd geos-3.3.3 export GEOS_DIR=/home/alba ./configure --prefix=$GEOS_DIR make; make install And ...
1
vote
0answers
318 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
31 views

Python Pip install LDTP fails

I'm on Ubuntu Vivid (15.04) and I have installed Python 2.7 (default) and Python 3.4. Now, why does pip install ldtp fails to install (fails to create temporary directory ...
0
votes
0answers
52 views

when i use this command “sudo apt-add-repository ppa:numix/ppa” it's give me an ERROR?

when i use this command "sudo apt-add-repository ppa:numix/ppa" it's give me an ERROR ! Traceback (most recent call last): File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line ...
0
votes
0answers
18 views

problem updating / installing packages with miniconda Ubuntu 14.04 64 bit

I have ubuntu 14.04 64 bit system. I installed the latest miniconda (in my home folder /home/osman/miniconda2 python 2.7 version) without any problems. But after that when I do "conda update conda" ...