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

Message- Cannot find installed version of python-jgango or python3-django

I'm new to Ubuntu, and I love it so far. I have been trying to install Django for a website development project. In the terminal, when I start the python interpreter and type import django ...
1
vote
1answer
47 views

launch ipython but not like root

ipython is launched like root (UID); ok, but I need that after ipython cann't run and don't allow, script/code that can gain root privilegies. eg I launch ipython, ok the UID is root. And in my ...
1
vote
1answer
269 views

nvidia-settings ImportError: No module named 'dbus'

I try to switch my graphics card via NVIDIA X Server Settings. However when I click on NVIDIA: Traceback (most recent call last): File "/usr/share/screen-resolution-extra/nvidia-prime.py", ...
0
votes
0answers
33 views

IDLE missing from Ubuntu

I just installed ubuntu into my 8G pendrive in a Lenovo laptop. With the terminal I could go to Python command line but it says there's 'no IDLE package.'
0
votes
0answers
42 views

python pip broken on ubuntu

My pip is not working anymore. Here is the output for a sudo pip install pyjs : File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==1.5.6', 'console_scripts', 'pip')() File ...
0
votes
0answers
36 views

Errors while installing pychemqt

@ http://sourceforge.net/projects/pychemqt/ The readme file contained in the package listed following dependencies python 2.6 qt 4.7 matplotlib 0.99 numpy 1.4.1 reportlab 2.4 freesteam 2.0 ...
26
votes
4answers
12k views

What are the packages/libraries I should install before compiling Python from source?

Once in a while I need to install a new Ubuntu (I used it both for desktop and servers) and I always forget a couple of libraries I should have installed before compiling, meaning I have to recompile, ...
0
votes
0answers
22 views

Python Script Stopping My Computer From Shutting Down Properly

I have the following line in my /etc/rc.local file. python /home/my-sickbeard-install/SickBeard.py 2>&1 >/dev/null & Since using this line, when I shutdown my computer I get an error ...
0
votes
1answer
73 views

Run Python script with root privileges (not from terminal)

How can I run a Python script which, upon execution, brings up a dialog prompting the user for his root password - so that the script is run as root, being able to make changes to files within the ...
1
vote
1answer
42 views

i want install Keyboard Layout Editor on ubuntu 15.4 , but i get errors :(

when i want install Keyboard Layout Editor on ubuntu 15.5 i get some problem.... i followed this Installation guide: Keyboard Layout Editor git clone ...
1
vote
2answers
49 views

Terminal and Python relationship

How is the Terminal in Ubuntu and Python programming connected? Can we use Python to control the system in Terminal? I am a complete newbie,so please guide, I installed Ubuntu out of sheer enthusiasm ...
1
vote
1answer
65 views

System-wide text replacement similar to AutoHotKey

AutoHotKey has this text-replacement feature: ;bullet ::_bullet::• ;disapproval ::_dis::{U+0CA0}_{U+0CA0} ;lenny ::_lenny::( {U+0361}{U+00B0} {U+035C}{U+0296} {U+0361}{U+00B0} ) I am trying to ...
1
vote
1answer
50 views

Upgrade python packages with pip: use “sudo” or “--user”?

I have a question about installing/upgrading Python packages using the tool pip. I can either run sudo pip install -U PACKAGENAME or pip install -U PACKAGENAME --user What is the difference ...
7
votes
2answers
3k views

python-nltk on Ubuntu 12.04 LTS: nltk.download('brown') results in HTML error 401

I have installed python-nltk on Ubuntu Server 12.04 using apt-get. But when I try to download a corpus, I get the following error: $ python Python 2.7.3 (default, Feb 27 2014, 19:58:35) [GCC 4.6.3] ...
5
votes
8answers
559 views

How can I delete text that is NOT in quotes or parentheses?

Input: 19. "foo foo" (bar bar) (19) raboof "foo foo" raboof Expected output: "foo foo" (bar bar) (19) "foo foo" As you can see, I would like to keep the double quotes and parentheses. ...
1
vote
1answer
58 views

Why is the python built from source is still showing the wrong version?

So I've downloaded the most recent tar from https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tar.xz, untar'd, configured, built and installed to a user directory. I've also used those ...
0
votes
1answer
52 views

New line in python script creating EOL error [closed]

I'm creating a Python program for Ubuntu, and I need to write a python script into a file, but the \n in the code creates a new line in the file, it isn't copied as \n, so I get an EOL error. This is ...
3
votes
2answers
592 views

Is there a simple way to get Django 1.2.* (latest stable) installed?

I want to start developing for it. I could easy_install or pip install but I'd prefer a proper repo. Is there a PPA that's up to date?
0
votes
0answers
53 views

Dependency issues after reinstalling python

For a project I am working on, I decided to reinstall the Python libraries and includes so I did sudo apt-get remove python3.4 then sudo apt-get install python3.4. After doing this I resolved my ...
0
votes
0answers
38 views

setup error in terminal: pythonpath is empty

I am trying to install the odoo package for development here I download the zip file, unpack and cd to the directory. It contains a setup.py file so I run. sudo setup/redhat/install.sh but ...
6
votes
2answers
7k views

How does one remove applications installed through “python setup.py install”?

I have two applications that I attempted to install, but they didn't work and now I can't get rid of them. They were both installed through sudo python setup.py install so there aren't any actual ...
2
votes
1answer
57 views

Will I be able to run Java, C or Python natively in Ubuntu Phone as I would on a PC?

the Ubuntu Phone by Meizu is released tomorrow for the European audience. I've been looking around for information on it, but the only I can find are some hand on reviews, that don't answer the most ...
1
vote
1answer
43 views

Python NameError: gloabal name 'resolution' is not defined

I'm working on developing a python application for Ubuntu that enables a user to have their desired resolution without requiring graphics drivers. In order to do this I've been using xrandr. However ...
0
votes
4answers
73 views

matrix operation in bash [closed]

the point is that I woul need to transpose a large file - 1600 times 80k but the entries are not tab delimited but just U and K so it looks like UUUUTTTUTUTUUUTUTUT TTUTUTUTUUTUTUTUTUT is there a ...
0
votes
2answers
229 views

Fatal Python error: Py_Initialize: Unable to get the locale encoding … SyntaxError: invalid syntax Aborted (core dumped)

I installed anaconda by running the bash Anaconda-2.2.0-Linux-x86_64.sh command on my Ubuntu 14.04 system , which installed successfully, after which I was asked to export my new ...
0
votes
2answers
334 views

Error when using Resynthesizer plugin in Gimp 2.8.10

I'm trying to make Resynthesizer plug-in work in Gimp 2.8.10 under Ubuntu 14.04 TLS but I get this error: Traceback (most recent call last): File "/usr/lib/gimp/2.0/python/gimpfu.py", line 699, in ...
0
votes
0answers
42 views

Adding a file to startup list using terminal

I have created a short bash script that I want to run on startup. Adding it to the startup list through the GUI is simple enough, but I need to do it through the command-line, as I plan to access the ...
0
votes
1answer
21 views

How to Extract parameters from captured beacon frame

So I was able to extract the SSID and Mac Address from the captured Beacon Frame stored in pkt. I used scapy library's sniff function to capture the beacon frame. I did this to capture the mentioned ...
1
vote
1answer
41 views

Running Google App Engine on Ubuntu 14.04.2

I recently switched from Windows 8.1 to Ubuntu so please forgive me if this is a stupid question. I'm new to all this. So I have python 2.7.6 installed and I tried to get Google App Engine working, ...
0
votes
1answer
37 views

Error while installing python

While installing python 3.4.2 am getting error like Ignoring ensurepip failure: pip 1.5.6 requires SSL/TLS on ubuntu 14.04 .slove and give me guys please
0
votes
0answers
28 views

Returning a value using Tkinter

I would like the class to return the values 1 or 0 based on the the button selection. This code gives me an error. AttributeError: option_box instance has no attribute 'option' from Tkinter import ...
1
vote
2answers
83 views

Error while sniffing packets using “SNIFF” in “SCAPY” (python)

I wanted to sniff beacon frames from the wireless network. I installed scapy and set the wlan0 to monitor mode. then in terminal, - I entered Scapy command to open scapy. Then in Scapy, I put: ...
1
vote
1answer
78 views

NLTK, installed in python 2.7 but not working in python 3.4

I just installed nltk when my default python was the 2.7 version, now when i open the python3 (3.4 version), i cant import nltk, is there any solution to this, to make nltk available for both versions ...
3
votes
2answers
64 views

How can I list connected monitor(s) with xrandr?

I'm working on developing a python application for Ubuntu that enables a user to have their desired resolution without requiring graphics drivers. In order to do this I've been using xrandr, which so ...
2
votes
2answers
414 views

Why is python-pip kept back in Ubuntu 14.04?

When I upgrade these days, I get this message: $ sudo apt-get upgrade -y Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done ...
2
votes
1answer
78 views

Python applications crash with module errors

I just updated some software on my system, and now I get a bizarre error every time I try to start a program that uses Python, even though all of the dependencies on my system have been resolved ...
1
vote
2answers
991 views

installing python-central

i have the python central tar.gz file. i dont know how to install it. i unzipped it but now what? after unzipping it i run ./configure but i get a no such file or directory. Yes i am in the directory ...
0
votes
0answers
17 views

How to run a script between login(entering password) and being logged on(showing desktop)?

Is there a way to execute a script when a specific user logs in; after they enter their password but before they are actually presented with the desktop? The script in question may lock the computer ...
1
vote
2answers
1k views

Set CLASSPATH for python

I want to execute a python file called "ex1.py". The execution works fine, the program does, what it ought to do. The problem is the following: This file is stored in the folder ...
0
votes
1answer
31 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 ...
6
votes
1answer
1k views

do-release-upgrade: python install is corrupted

I was upgrading from 13.10 to 14.04 (dev for now, stable in a few hours) using do-release-upgrade and encountered the following problem: Can not upgrade Your python install is corrupted. Please fix ...
0
votes
0answers
263 views

Python error while adding repository

Whenever i try to add repository , the following error occurs. I have newly installed ubuntu and my sources.list.d folder is also present. Please help me with this.. Error:: Traceback (most recent ...
0
votes
1answer
69 views

(Python) Spyder not starting

for some reason my Python IDE spyder isn't working anymore. When trying to start it, it does not open. Trying ~$ spyder in the console gives to following error: Traceback (most recent call last): ...
0
votes
2answers
51 views

Revert python installation

I am using ubuntu precise. Python version installed on this version is 2.7.6. But Cloudera expected 2.7.3. I just followed this. Entire system became non-functional. I couldn't even able to install ...
65
votes
3answers
238k views

How do I install python 2.7.2 on Ubuntu?

I want to install python 2.7.2.tgz on Ubuntu, downloaded from http://python.org/download/. Is this a correct way to install : ./configure make make install If not , how can I do that?
0
votes
2answers
73 views

How to reset python path to /usr/bin/python?

I was following certain instructions to install a package and ended up installing another version of python and creating symbolic links (the names I can't recall). Now when I hit python from terminal, ...
10
votes
2answers
5k views

How to use a python virtualenv with sudo?

I am trying to make a python environment separate from the system one (using virtualenv) in a directory which is not under /home, because I need to use it to build other software that has to be ...
1
vote
1answer
31 views

Remove separate version of Python 2.7 after install

I was trying to install a separate version of python 2.7 (2,7.10) on my ubuntu machine - the idea was to run them seperately, but when I installed it from source, it became the default version. I ...
20
votes
7answers
82k views

How do I install python imaging library (PIL)?

How do I install the python imaging library (PIL) on Ubuntu? I tried doing sudo apt-get install python-imaging but now when i run python selftest.py (a script I got from somewhere on the ...
0
votes
2answers
199 views

Python 2.7 matplotlib provides error?

import numpy as np import matplotlib.pyplot as plt provides the error Traceback (most recent call last): File "/home/flyveren/PycharmProjects/Udemy/Array_Processing.py", line 2, in <module> ...