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
2answers
163 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
6k 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
45 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 ...
21
votes
7answers
85k 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 ...
1
vote
2answers
429 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> ...
1
vote
1answer
74 views

How to install simplegui using terminal?

I am currently learning Python at Coursera, where we use simpleGUI (Hit play on top left) to creat intractive games. So, I wanted to use it on my machine. I found YouTube video installing simpleGUI ...
1
vote
1answer
24 views

upstart starts python script but it behaves unexpectedly

The program works when started by cron or from the shell. But when started by upstart, it seems to loop indefinitely. The scripts and the files they use are in the /home/user/ directory, and are ...
1
vote
2answers
39k views

PYTHONPATH environment variable

I have this in my ~/.profile: export PYTHONPATH=/home/dev/python-files In the python-files directory, I have a few projects cloned from git-hub (flask, curveship and py-vgdl). Whenever I try to ...
-1
votes
2answers
54 views

Strange behaviors in adding integers from Python script [closed]

This python script is adding the sums of the numbers entered in a single line delimited by space except that it is not adding correctly. Thanks in advance. Print "Enter Numbers:" ...
0
votes
0answers
295 views

missing 'ldconfig' and 'start-stop-daemon'

when I tried to install numpy and pandas, I got this problem. Can you help me? Thank you! dpkg: warning: 'ldconfig' not found in PATH or not executable. dpkg: warning: 'start-stop-daemon' not found ...
19
votes
1answer
4k views

Dropbox Fails To Start With “VerificationError: importing pylinux…”

Dropbox fails to start with "VerificationError: importing pylinux..." . It seems that some recent Python update breaks Dropbox, resulting in the following error: Starting Dropbox...Traceback (most ...
6
votes
4answers
6k views

How to run a program as a service (silent)?

I have a python based server which i start from the terminal. This particular instance of the terminal then gives control to the program, and the program uses it as a kind of logging window, until its ...
0
votes
1answer
51 views

Extract all files from a .tar.gz after wget and rename them

Is there any easy way extract all files from a .tar.gz and rename the files upon extraction? The tars inside look like: file1.obj file2.xr file3.ty file4.hjg All files are different extensions, but ...
0
votes
1answer
77 views

Syntax highlighting for Python in gedit

I'm using the default setting. I'm looking for a simple legend that says 'this color means that' or 'comments are blue, functions are green', whatever. I'd think the need for this would be painfully ...
2
votes
1answer
1k views

http request to cgi python script successful, but the script doesn't seem to run [closed]

I have configured cgi scripts for my apache2 web server. Here is what I want to do: Client uploads the image to the server. (this already works) On success, I want to execute the python script to ...
0
votes
0answers
22 views

Ubuntu server cannot install anything [duplicate]

Recently I tried to install the ubuntu desktop on my ubuntu server 14. The installation failed hard. I tried several things fixing it and did a lot of research. But I couldn't find anything helpful. ...
0
votes
0answers
38 views

Installing GEOS on ubuntu without root rights

I tried installing the GEOS API for Python and got the following error when I entered commands from GEOS dir: ./configure --enable-python make make install Giving the following error SWIG is ...
9
votes
3answers
6k views

pip won't run. throws errors instead

I am running into problems when ever I run pip with any arguments or flags. I've tried doing apt-get install --reinstall python-pip but it does not help and am at a loss how to fix this Version of ...
0
votes
0answers
88 views

apt-get problem after having removed Python2

I'm quite a newbee. I installed Python2 and Python3. I got bored of Python2 and decided to uninstall it, if i remember well by sudo apt-get remove python2 but now, everytime i use apt-get , i get ...
0
votes
1answer
81 views

ckan 500 error, cant find solr, ubuntu 14.04

I installed tomcat/solr following the instructions found here and ckan following these instructions on my ubuntu 14.04. since the installation instructions of ckan is based on jetty, i skipped the ...
2
votes
3answers
25k views

The following packages have unmet dependencies!

I am writing this because I am very confused about installing postgresql 9.3 on mine Ubuntu 14.04. First I need it for mine Python/Django development, and I ran in to the problem, when i tried to ...
1
vote
1answer
24 views

How to hide imported Python libraries?

I am a beginning coder in Python. This may sound misplaced, but wait up a second. My program depends on a couple of libraries that I have allowed it to use via import. These libraries are now showing ...
0
votes
2answers
35 views

I can't run python game on ubuntu [closed]

This is a simple game coded in python the source code and when run it in ubuntu 14.04 I've got this error File "pong.py", line 18 self.canvas = canvas ^ IndentationError: expected an ...
0
votes
0answers
55 views

Ubuntu gufw not loading

OS: Ubuntu 14.04 64bit Python2 Version 2.7.10 Python3 Version 3.4.3 I recently installed python from source and gufw stopped loading. When I try to launch it from terminal I get the following errors: ...
3
votes
3answers
8k views

Getting .deb package dependencies for an offline Ubuntu computer through Windows

Basically I want to "batch" download a .deb file and all its dependencies at once on a Windows 7 machine (of which I do not have admin access, it is a public computer.) I've seen plenty of Ubuntu ...
0
votes
1answer
32 views

Quickly fails to package help pages

I have been working on making a program (jekyll-helper) using Quickly and a while ago I worked on adding some content to the default help pages. I tested out open the help pages in the program while ...
37
votes
5answers
39k views

Make default `python` command to use Python 3

I can access Python 3 via python3 command. But I want to make the default interpreter to use python command for Python 3. Simple typing python takes me to Python 2. How to upgrade?
3
votes
1answer
311 views

Installation of python's numpy keeps failing

I'm trying to install numpy but the installation keeps failing for some reason. Actually, what I need is python's nolearn, but numpy (and scipy) are dependencies. So I ran: sudo pip install numpy ...
5
votes
1answer
5k 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 ...
1
vote
0answers
45 views

Subscribe for DBUS event of screen power off

My MacBook Pro has a keyboard backlight which is pretty awesome, but there's a slight bug: the screen turns off after a given amount of time, but the keyboard backlight stays on. I've copied over ...
1
vote
0answers
14 views

how to install packages which is not in the cache with python

i install packages in my application using python apt. Some example: import apt cache = apt.cache.Cache() pkg = cache["brukkon"] pkg.mark_install() cache.commit() In this example, brukkon is not in ...
0
votes
1answer
121 views

Ubuntu and Django, no module named 'django'

I have a problem with Django on Ubuntu. When I type python in terminal, terminal returns Python 3.4.1 (default, Jun 2 2015, 15:13:43) [GCC 4.8.2] on linux so it's allright. When I type ...
0
votes
2answers
99 views

python related errors

I have python 2.7.6 installed but When running a python script (RSeQC scripts) with command: $ python script.py I got error: ImportError: No module named qcmodule or ImportError: No module ...
-1
votes
3answers
81 views

How do i download the latest version of Python onto my Linux system?

I can't figure out how or where to find the download for Python. If you don't know, Python is a coding language. I want to learn to code. If you recommend a different thing to learn code, please reply ...
2
votes
2answers
824 views

Install PyCharm IDE from repo (without wget)

Is there a way to install the PyCharm IDE (community version) from a repo (without wget). I think the wget method found in many blogs is too complicated.
0
votes
1answer
38 views

After installing a package, is_installed returns still False, in python apt

by using python apt, i can install packages. Before and after installing the package, i updated the cache. However, before and after installing the package, is_installed returns the same, in other ...
0
votes
1answer
514 views

Install pygame in anaconda

I have anaconda on Ubuntu 14.04. I want to install the pygame module with anaconda. I already run sudo apt-get install python-pygame, but this only works on python, not in anaconda.
2
votes
1answer
2k views

How to Uninstall the Ubuntu SDK?

After Installing the Ubuntu SDK v1.009 on ubuntu 12.04.2 LTS, the computer started behaving in a very unstable manner. Also note that Installing the Ubuntu SDK also installs a lot of test libraries ...
1
vote
0answers
181 views

Python app crash after sending command “GPIO.setup( 7, GPIO.OUT)”?

Python app crash after sending command "GPIO.setup( 7, GPIO.OUT)" !!! Action step: pi@rp:~$ python3 Python 3.4.3 (default, Mar 26 2015, 23:09:09) [GCC 4.9.2] on linux Type "help", "copyright", ...
1
vote
0answers
11 views

How to track the Internet connectivity of two PCs simultaneously using a script?

I have two PCs and I want to monitor the Internet connectivity in both of them and make it available in a page (not local, and something like example.com/statuses) as to whether they're currently ...
0
votes
1answer
656 views

How to Access MySQL with Python Version 3.4

Python comes in two versions: Python 2.7.6 which has now been superseded by Python 3.4.0. The critical line in Python to access MySQL is "import MySQLdb" Thanks to a response from StackOverFlow, I ...
2
votes
1answer
105 views

Terminal And Python console isn't showing Bangla

I am using Ubuntu 14.04 LTS. I can't print anything in Bengali in Python console and Ubuntu terminal! When I try to print some Bengali characters in console or try to write Bengali in the terminal I ...
5
votes
2answers
2k views

Missing Python in LibreOffice organize macros menu

I have the LibreOffice 4.0.2.2 that comes with Ubuntu 13.04. The Tools-Macros-Organize macros menu only shows the LibreOffice Basic item. I assumed I would find also Python and other languages. This ...
6
votes
2answers
66k views

How to find python installation directory on ubuntu

I have just migrated from Windows environment. I have installed Python 3.2 in a separate directory. How can I get the python installation path on ubuntu shell ? Is there any way I can let shell ...
2
votes
1answer
540 views

install Flask as a virtual environment whith virtualenv.py in 12.10

I am trying to follow this Tutorial to learn flask. I have never used python before and a relatively new to linux too so sorry if I am asking a very basic question. I have installed python version ...
4
votes
5answers
14k views

How to install Python package pyzmq properly?

How to install Python paackage pyzmq properly? I searched in Synapic package manager in vain.
2
votes
1answer
21 views

How to retrieve screenshots of a package in ubuntu

i'm developing an application which manipulates packages in ubuntu. I'm working with python. I need to retrieve screenshots of packages by using package-name. For example, say that package-name is ...
1
vote
1answer
137 views

I can't open software updater and unity tweak tool on Ubuntu14.04

I have a notification nearly every time I try to update. That note 'An error occurred while checking for updates => [TR Language] Güncellemeler denetlenirken bir sorun oluştu.' I can't open software ...
6
votes
1answer
2k views

reliably restarting services using upstart or runit

I want to reliably restart my app and web server processes on crash. If I understand correctly, runit starts every service as a child process. If the child process crashes this sends a signal to the ...
-1
votes
3answers
291 views