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

Ubuntu 16.04 VIM without python support!

Although Ubuntu 16.04 release notes mention that: The default VIM package has been built against python3 instead of python2. Yet after I installed vim with the following command: sudo apt-get ...
0
votes
0answers
9 views

YouCompleteMe plugin of VIM not working with NLTK

I have recently installed the YouCompleteMe plugin for vim through Vundle. It works really well for Python. Problem starts when I import the third party library nltk. For example if I do the following ...
2
votes
4answers
12k views

Bash cut and grep commands through python

I've tried to read a txt file and find the lines which contain a certain word "checkout_revision". I want to find these lines one by one in a for loop and store them in my variable, let say temp. I ...
0
votes
1answer
35 views

How to install webilder on Ubuntu 16.04?

I was trying to install my favorite background changer application on the latest Ubuntu, however I met the following Issue: webilder : Depends: python-support (>= 0.90.0) but it is not installable I ...
0
votes
0answers
5 views

Getting this error :Sub-process /usr/bin/dpkg returned an error code (1) when I try to run sudo apt-get install python-matplotlib

I tried installing matplotlib, to make graphs on python on Ubuntu 14.04 and am getting the following error. I am unable to resolve this error: (env)ubuntu@ubuntu-Inspiron-5423:~/tweepy$ sudo apt-get ...
5
votes
1answer
31k views

How can I install python-dev off apt-get?

I have tried this and this and this and this Well nothing works with me, i got my amd64 system, 14.04 up and runnig, as I try to install wagtail, a django cms, i get the error. pysass.c:4:20: ...
8
votes
1answer
16k views

Upgrading to python 2.7.5 on Ubuntu 12.04

Ubuntu 12.04 comes with python v 2.7.3 by default. I want to upgrade it to v 2.7.5. I tried the instructions given in this question, sudo apt-get install build-essential sudo apt-get install ...
0
votes
1answer
12 views

pyhton-pkcs11 package in 16.04

I see that pyhton-pkcs11 isn't included in 16.04 repositories. Only pyhton3-pkcs11. Is there any way to install Python2 package version ?
0
votes
0answers
14 views

Dependency problem

I use Ubuntu on my offline laptop. Since I want to install python, I have to install a lot of dependencies as well, and to install those dependencies I need even more dependencies of the ...
-1
votes
1answer
24 views

importerror: no module named bootstrap3_datetime

While runing "python manage.py migrate" i got error "importerror: no module named bootstrap3_datetime" but in my pip freeze it is installed. django-bootstrap3==7.0.1
5
votes
3answers
13k views

How to play a fixed frequency sound using Python

I have tried a number of ways of playing a fixed frequency sound (e.g. 1000Hz) and nothing works. I have downloaded "beep" and that makes no noise. I tried interfacing to pyao, and that had no ...
0
votes
0answers
8 views

How to install wxpython for virtualenv

I am on 14.04. The system python version is 2.7.6. I am testing a software meant for python 2.7.9. So I have a virtualenv running python 2.7.9. Running this pip install wxpython doesn't work. So I ...
0
votes
1answer
13 views

ImportError: No module named 'PyQt5.QtWebEngineWidgets'

I try to run a python script using PyQt5 QtWebEngineWidgets but it throws errors: from PyQt5.QtWebEngineWidgets import ( ImportError: No module named 'PyQt5.QtWebEngineWidgets' I think there is a ...
1
vote
0answers
24 views

Snapcraft Python2 building numpy with python-dev

just starting to get my hands dirty with snappy. I am trying to port a python project to a snappy app. The python code relies on numpy 1.5.1, which relies on python-dev being installed. My snapcraft ...
0
votes
0answers
8 views

How to install and run qt-designer for python

I'm new to ubuntu, I entered the following commands sudo apt-get install python-pyqt and sudo apt-get install qt-designer. Both the commands executed successfuly but I'm not able to figure out how to ...
0
votes
0answers
17 views

Electrum on Ubuntu 12.04 LTS Offline Computer

I am a ubuntu newbie and want to run Electrum Bitcoin Wallet on an always offline Ubuntu Laptop. The instruction is: Install dependencies: sudo apt-get install python-qt4 python-pip Install ...
0
votes
1answer
28 views

Install python 2.7.11 on Ubuntu without compiling or replacing the pre-installed version

I'm using Ubuntu trusty which comes with python 2.7.6 pre-installed. I need to install 2.7.11 in like /usr/local/bin/python without touching /usr/bin/python or compiling from source. There are some ...
-1
votes
1answer
66 views

force to use Python 3

i want to port Python Scripts to python 3. How can i force Ubuntu to use python 3 instead of python 2 which is installed, as well. Due to the size of the project, i'd prefer not to write something ...
1
vote
1answer
36 views

Kivy hello world script yields black screen on Ubuntu 14.04

On running the basic hello world script found here - https://kivy.org/docs/guide/basic.html the following log is generated and a windows pops up completely blank and black. I've installed Kivy ...
0
votes
0answers
13 views

How I can install regex package for python 3.4 without errors?

I have a little problem (or a big one?). I want to install regex package for Python 3.4. But then I use pip or our installation methods I am getting error: ...
0
votes
2answers
18 views

Use pip with Python 3.5

I have a AWS Ubuntu instance where I manually installed Python3.5 (downloaded it, configured, and ran make, make install). Then I changed the symbolic link sudo ln -fs /opt/python3.5/bin/python3.5 ...
1
vote
1answer
236 views

Python NameError: global 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
1answer
26 views

How to get pip functional again?

I ran into the issue below, while running pip trying to install rpyc. Even if i try to run pip without any arguments it still outputs the same error. Any help would be greatly appriciated, Thanks. ...
0
votes
0answers
6 views

How to run EasyModeller (GUI for Modeller) on Ubuntu 14 x64?

I have successfully installed Modeller. I want to try to use the front end GUI software EasyModeller. However, when I try to run it I receive the error message as follows: ...
0
votes
2answers
23 views

How to create a debian/control file that differs based on Ubuntu release?

I have great deal of source code that we maintain, producing many different Ubuntu packages. All of these packages need to build on Ubuntu LTS releases from 08.04 forward. (Yes, I know these are old ...
0
votes
2answers
1k views

Django 1.8 gets installed in Python 2.7 instead of Python 3.4

I have to versions of Python installed, 2.7 and 3.4. I installed Django 1.8 as recommended on the Django tutorial. However it got installed in Python 2.7 instead of Python 3.4 so when I type 'import ...
7
votes
2answers
2k 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
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 ...
8
votes
3answers
835 views

How to run a Python program directly?

How to run a Python program directly? I have created a .py file (say, mnik.py) in gedit. It runs smoothly in terminal. Command goes python3 mnik.py But whenever I click on the file it is opened ...
0
votes
1answer
95 views

How to install wxpython ubuntu 16.04

I have a problem with playonlinx, and it requires me to install wxpython, but I have it already installed. I've used different methods, but every-time I do import wx, it gives me this error: ...
1
vote
1answer
3k views

Has anybody got access to a H264-stream of an IP-Cam over SimpleCV?

I wonder if it's possible to get access of the H264-encoded mainstream of my Hikvision IP-cam DS-2CD2032-I over SimpleCV. The H264-stream I got in the browser is ...
0
votes
0answers
39 views

Problems after installing Python 3.5.1

I installed Ubuntu 16.04 completely now on my machine aswell as the newest Python version (3.5.1). now i have problems with following packages: python-cairo python-gobject-2 python-pip ...
0
votes
1answer
4k views

AttributeError: 'module' object has no attribute

I am trying to get the depth map of two stereo images. I have taken the code from http://docs.opencv.org/trunk/doc/py_tutorials/py_calib3d/py_depthmap/py_depthmap.html I get the following error: ...
0
votes
0answers
13 views

Change back default python in ubuntu 12.04

My default python version on my Ubuntu 12.04 is python 3. I remember, a long time ago, I asked someone to change the default python version to 3. I didn't really do a lot, so I had no problems. But ...
1
vote
2answers
193 views

Error installing Django

I have try to run this command and get a error easy_install Django (django-mike)zapbuild@jaskaran:~/Documents/python/django-mike$ easy_install Django error: can't create or remove files in install ...
0
votes
0answers
13 views

Installing libgtk-x11-2.0.so.0 in Ubuntu 15.04

I'm trying to install opencv on my Ubuntu 15.04 server. I'm using the conda package manager. conda install -c https://conda.binstar.org/menpo opencv3 When I try importing cv2, the Python package, I ...
15
votes
2answers
3k views

Putting an arbitrary gtk.Widget into an appindicator.Indicator

Putting any gtk.Widget inside a gtk.Menu works, somewhat, by putting an empty gtk.MenuItem in first. It doesn't seem to be reliable - but it basically works. With an appindicator.Indicator, it doesn't ...
1
vote
0answers
15 views

Python in terminal- Trying to use ''erase'' and it writes more

im really new to both Ubuntu and trying to learn to use python. Ive just installed python. When i start python in terminal "python3.5" my keys are adding more when i try to erase text. When i try to ...
0
votes
1answer
24 views

uninstall python 2.7.6 and install 2.6 instead

I need to uninstall python 2.7.6 and install 2.6 instead. how can I manage that. which python command gives (/usr/bin/python). my environment is ubuntu 14.04.
0
votes
0answers
24 views

Can't edit a file in Ubunutu 14.04

I'm trying to edit a python file called resize.py /usr/local/lib/python3.4/dist-packages/moviepy/video/fx/resize.py I gave myself permissions to unlock the file using sudo chmod 776 ...
0
votes
1answer
105 views

How to remove Python 2 in 16.04?

Ubuntu has dropped Python 2 in 16.04. It is still installed after an upgrade, though (it was not part of the "obsolete packages"). Is there a clean way to remove Python 2 and all its dependencies in ...
0
votes
2answers
710 views

Django and SQLite3 doesn't work

My problem is following, I'm starting with tutorial https://docs.djangoproject.com/en/1.8/intro/tutorial01/ , and after I type in terminal python manage.py runserver I'm getting an error: Traceback ...
1
vote
2answers
25 views

Compiling python3 code in terminal with interpreter [closed]

When I compile my code simply with the command python3 name.py, it's being run, but then the whole story ends and I can't do anything with the compiled data. I want to somehow compile my program to ...
-1
votes
0answers
23 views

removed python2.7 and the system collaps [duplicate]

my ubuntu is 14.04. python2.7 has been removed many parts of the system were broken. How can I manage this situation
1
vote
1answer
39 views

shell script storing run time with python

I am trying to store the run time of a python program using this { time python experiments.py --model iwae --k $k ; } 2> time$k.txt when I do this in a shell script, I get 40.35user 3.12system ...
0
votes
1answer
30 views

How can I install a newer python on Trusty?

I'd like to install a newer python 2.7 on trusty. Installing "python" installs python 2.7. The newest version available on trusty is 2.7.6. I'd like to install the most updated version of 2.7. I am ...
0
votes
0answers
12 views

How to use python 2.6.?.? for Ubuntu 14.04.03 as a default python and gnome and server should update?

Our requirement is very simple. And we need help regarding it on How to update after removing python 2.7.? or higher version and install 2.6.? as default one? Because when I do this the it stops ...
0
votes
0answers
25 views

problem with installing mysql-server5.5 with ubuntu12.04, socket file not found

I am trying to create a database in ubuntu 12.04 after installing mysql-server5.5 but I got the following problem. after checking it seems the subfolder var\run\mysqld that should contain the socket ...
0
votes
2answers
15 views

Problem to compile python and C++ code using ubuntu Ubuntu 12.04.5 LTS: problem with gcc

I am trying to compile a code involving python and C++ in Ubuntu 12.04.5 LTS and I have this type of error hammouc@kw13921:~/Documents/mimclib$ make python setup.py clean running clean removing ...
2
votes
1answer
2k views

How do I upgrade from Python 2.7.6 to 2.7.8?

After using easy_install I find that I am still unable to upgrade the default Python version for my newly installed Ubuntu system. The main error, from what I can tell, is that I'm missing the ...