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

1
vote
1answer
357 views

apt-get install python-xxx vs pip install

I'm still trying to understand this problem I'm having and have read a ton of posts regarding sudo apt-get install python-XXX vs pip install, and I understand the jist of it (apt-get is a package ...
0
votes
0answers
96 views

add-apt-repositories isn't working

Basically the terminal freezes for a while the I manually have to ctrl+c to end the process, then I get the following ^CTraceback (most recent call last): File "/usr/bin/add-apt-repository", line ...
1
vote
0answers
23 views

Error starting ipython?

When I start ipython, the following error gets printed in the screen: [TerminalIPythonApp] ERROR | Exception while loading config file /home/cossio/.ipython/profile_default/ipython_config.py ...
1
vote
1answer
148 views

Update Python 2.7 to latest version of 2.x [duplicate]

My version of python2 on my ubuntu 14.04 machine is Python 2.7.6, how can I upgrade it to the the latest version of Python 2.X. The latest is currently 2.7.11. I have tried apt-get update/upgrade, ...
0
votes
0answers
58 views

scipy is installed, but import scipy fails

This command shows scipy installed (I used apt-get). $ apt-cache policy python-scipy python-scipy: Installed: 0.13.3-1build1 Candidate: 0.13.3-1build1 Version table: *** 0.13.3-1build1 0 ...
0
votes
1answer
36 views

Terminal blank and not executing commands

I have been trying to set up a Python virtual environment with Django and pip on my Ubuntu VM through the terminal using these guidelines. I last logged out of the terminal after trying to install ...
1
vote
1answer
105 views

python packages not updating with pip

I'm a bit confused about sudo apt-get install python-<package> vs sudo pip install vs pip install. I have read many posts on the matter: What are the risks of running 'sudo pip'?, Is it ...
0
votes
0answers
52 views

Multiple R installations… lost overview

I am running Ubuntu 14 and I am using R and R studio. I think the installation is at: /usr/bin/R Recently, I wanted to use the Jupyter Notebook to also run R in this kind of notebook in the ...
0
votes
1answer
68 views

Cron job starts the python script, but no output is received

I have a python program that copies contents of USB devices connected to my pc, in this case it's an Android tablet. The script usese pyudev to detect the devices and then use GVfs to mount them. I ...
0
votes
0answers
33 views

I installed BPG viewer and it deleted default python and other important apps. How to know all that was removed?

I am into bleeding edge and installed BPG viewer to view a file I encoded in BPG format. It was a .deb package and I was never prompted before it uninstalled all the important apps. It even ...
1
vote
0answers
145 views

Bash shell doesn't display Python output

I started using vim + tmux for my programming and suddenly after accidentally smashing couple of keys [Forgive me I am a klutz] the bash shell started acting weirdly. When I run my unittest written ...
0
votes
0answers
210 views

how do i play videos that show text/html decoder plugin-python is missing

I have downloaded a few videos but some of them when played with the default movie player show the following error: "python (v2.7) requires to install plugins to play media files of the following ...
1
vote
1answer
447 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
0answers
12 views

U 14.04 update python netCDF4 from v1.1.0 to 1.1.7

I do not know how to update the stable netCDF4 python package from 1.1.0 to 1.1.7. The later works on my development machine, but the deploy only has the older release listed.
0
votes
0answers
22 views

How do you create a network interface and direct it into a program?

I'm trying to create a network interface and direct all calls to it into a python3 program. How would I start on this?
0
votes
0answers
173 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 ...
0
votes
0answers
21 views

dbgpSocket: error: unable to connect to remote host?

Actually I tried to use dbgpavim to debug a python program on Ubuntu. I typed in sudo ./pydbgp -d 127.0.0.1:9009 ~/myProjectj/main.py on Ubuntu but I got an error message "dbgpSocket: error: unable to ...
0
votes
0answers
58 views

Fatal Python Error when upgrading

I usually manage to solve any linux related problems alone but this time it seems unusually impossible. I used to get errors every time I was trying to login and it was asking me to skip to mount ...
0
votes
1answer
154 views

Using 2 ethernet adapters on a local network, ping reply not showing

I have a laptop running with Ubuntu 15.10. Here there is one integrated Network adapter to which I added another one via USB. I now have two network interfaces which both show when I type ifconfig. ...
0
votes
0answers
18 views

cant install kivy [duplicate]

when i try to install kivy by : pip install kivy i get this error : /tmp/pip-build-WRIZWa/kivy/kivy/graphics/gl_redirect.h:43:22: fatal error: GL/gl.h: No such file or directory compilation ...
0
votes
1answer
538 views

Which is the default Python version supported in Ubuntu 15.04 and 15.10?

Which is the default Python version supported in Ubuntu 15.04 and 15.10?
1
vote
0answers
132 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
177 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
88 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
6k views

How to install Python 3.5.1 on Wily Werewolf 15.10? [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 Wily Werewolf 15.10 ships version 3.4 and ...
3
votes
3answers
79 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
377 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
68 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
113 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
30 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
36 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
61 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
98 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
32 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
160 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
114 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
112 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
36 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. ...
7
votes
3answers
3k 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
24 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
67 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
38 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
493 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
65 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
94 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
59 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
76 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
1answer
802 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
725 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
113 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, ...