Python 2.7 is a version of the Python programming language released in 2010. Use this tag for questions about using Python 2.7 in Ubuntu.

learn more… | top users | synonyms

0
votes
1answer
29 views

pip won't run. throws errors instead [on hold]

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
2answers
997 views

Python (v2.7) requires to install plugins to play media files of the following type: Windows Media Audio 8 decoder

when trying to convert some audio files to Ogg Vorbis using Sound Converter I get the following error: Python (v2.7) requires to install plugins to play media files of the following type: ...
14
votes
4answers
16k 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?
0
votes
0answers
20 views

PyKEP: python 2.7 vs python 3.3

I try to install PyKEP package (pyKEP) and following the instruction in the web page at the and I obtain this error massage: [ 95%] Building CXX object PyKEP/core/CMakeFiles/_core.dir/core. ... ...
0
votes
1answer
25 views

The imported Shared library is not referring to the plugin

I have created a test.so file with a library linked with that (DijSDK.h) The Flow is test.so uses ---- DijSDK.h Which inturn calls ---- libsynthcam.so(plugin)file Now I am importing that .so file ...
1
vote
2answers
36 views

How to make a program use python2.7 instead of default python3.4 on ubuntu 14.04 [duplicate]

I am using ubuntu 14.04 and I have a program that depends on python 2.7 and does not support any of python 3.x. Ubuntu 14.04 comes with python3.4 by default. I would like to know if there is a ...
0
votes
1answer
32 views

How to install pygame in python 2.7.6 on ubuntu 14?

How can I install pygame in python 2.7.6 on Ubuntu 14? I've used sudo apt-get install python-pygame, but it does not work and gives me the following message: unable to locate package python-pygame. ...
4
votes
3answers
29k views

Copying multiple specific files from one folder to another

I have a large folder of pictures (thousands), and I have a long list of files, by exact file name, that I need to copy to another folder. I want to know if there is a way I can select several ...
0
votes
1answer
68 views

unable to install twilio python module in ubuntu 14.10 ,

When I tried to install twilio module on my system by ... anupam@JAZZ:~$ sudo pip install twilio Traceback (most recent call last): File "/usr/local/bin/pip", line 5, in <module> from ...
1
vote
1answer
141 views

How to install Pythonika on Ubuntu?

I tried to install Pythonika on my Ubuntu 14.04 (64) with python 2.7.6. I follow Salem's answer, but there is some errors. The Makefile.linux # Set the paths according to your MathLink Developer Kit ...
0
votes
1answer
12 views

Running programs/apps

How do I run/start python after downloading? I am new to both Linux and Ubuntu so I need some pointers. I have been MS for so long I think it has brain washed me!
0
votes
1answer
100 views

Trouble compiling GDB with python 2.7 support for gdb-peda

Trying to install gdb-peda, but am having issues compiling gdb with python 2 support instead of python 3 support. I have python-dev for 2.7, build-dep nmon, and libncurses5-dev installed. I ...
0
votes
0answers
26 views

Everything gone after apt-get remove python2.7

I recently upgraded to ubuntu 14.04 and I installed python2.7 and 3.4 both so I wanted to just keep 3.4 and I knew apt-get remove python would mess up with whole Distro of mine, So I being specific ...
0
votes
0answers
63 views

Python Error when opening software-center

My software center suddenly not working. When i tried to open it from the launcher, its only loading but showing nothing. I tried to run it from terminal, and got this error : Traceback (most recent ...
2
votes
1answer
4k views

Error installing scrapy in virtualenv using pip

pip install scrapy Downloading/unpacking scrapy Downloading Scrapy-0.24.2-py2-none-any.whl (502kB): 502kB downloaded Downloading/unpacking pyOpenSSL (from scrapy) Downloading pyOpenSSL-0.14.tar.gz ...
0
votes
0answers
34 views

Installing Python libraries (difflib and pygments)

I am new to Linux and I need to install difflib and pygments python libraries to my computer. What is the easiest way to do that?
0
votes
0answers
199 views

I am running Ubuntu 14.04, python 2.7.8, I try to install python-setuptools, but it is giving following message

I am try to install python-setuptools but getting following messages: You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: $ sudo apt-get ...
2
votes
1answer
102 views

How to install the most recent numpy, scipy and scikit on ubuntu?

I need to install numpy 1.9 ('cause some methods are available in this version, not in the previous) which isn't the numpy package proposed yet today (apt-get returns 1.8). How to install the latest ...
1
vote
1answer
44 views

Installing pyGPs - A Package for Gaussian Processes

I am doing a project which predicts expected electrical load every half an hour based on Gaussian model of previous 1 year data. I am currently using python 2.7.3 for implementing this project. For ...
0
votes
2answers
2k views

Python.h: No such file or directory #include <Python.h>

When trying to compile pyqt i have an error i have installed all the prerequistes but its still showing the same problem please find an answer for this
2
votes
1answer
317 views

libreoffice Python Uno support for Python 2.7 on Ubuntu Saucy 13.10

I recently upgraded to Ubuntu 13.10 and discovered that the python-uno package is no longer available. Instead I find a python3-uno package. Unfortunately I need Python uno libreoffice support for ...
5
votes
9answers
14k views

I run `sudo apt-get remove python2.7`, can I restore my Ubuntu now?

I wanted to remove and reinstall python2.7 interpreter on 12.04 But when I did sudo apt-get remove python2.7, The crazy terminal started to remove everything!!! Any idea how I can restore whatever ...
1
vote
0answers
133 views

Pip issues after 12.02->14.04 upgrade

With Ubutun 14.04LTS, many but not all pip commands fail as so: # sudo pip install --upgrade distribute Downloading/unpacking distribute Downloading distribute-0.7.3.zip (145kB): 145kB downloaded ...
1
vote
2answers
68 views

Using specific python version for apt-get in Ubuntu 12.04 LTS

On Ubuntu 12.04 LTS I have python2.7.3-0Ubuntu3.5 package installed. One of the libraries i am trying to install has dependency on (>=2.7.3.6). I went ahead and installed python 2.7.6 and even python ...
1
vote
1answer
57 views

Make pycharm default for .py files in 14.04

I want to make pycharm ide default for all .py files in ubuntu 14.04. I have extracted the tar.gz file in my home directory but every time i have to run pycharm i have to go over to the bin ...
0
votes
1answer
639 views

python-Uno , No Module named Uno

I am using Ubuntu 14.04 with python 2.7.6. I am trying to install python-uno library which allows use of the standard LibreOffice API with the Python scripting language,but i am unable to find the ...
0
votes
2answers
91 views

Where do I find Python2.7 in Ubuntu 14.04?

I'm using this tutorial to install Django with Postgresql in my Ubuntu 14.04. In the 4th step, it asked me to go to my python directory, so I ran $ whereis python2.7 and I got multiple directories. ...
0
votes
2answers
124 views

How to Integrate of Python 2.7.4 in Qt 5.0

I have Python 2.7.4 installed,Qt 5.0 installed,PyQt 4.10.4.tar.gz and sip 4.15.5.tar.gz. How can I integrate Python with my Qt?
0
votes
0answers
31 views

Hide Terminal and still recieve input

I want to run a python script that basically uses the terminal for certain commands, but I don't want it to show the terminal. I've tried running the script as "nohup file.py &" this works and I ...
0
votes
1answer
641 views

Syntax error on python 2.7.3

I am trying to perform a QSTK related task on python2.7.3 but ending up with syntax error [Python 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2] on linux2 Type "copyright", "credits" or ...
1
vote
1answer
669 views

Tkinter on Ubuntu 14.04 seems not to work

I receive following Traceback: Traceback (most recent call last): File "tkinter_basic_frame.py", line 4, in <module> from Tkinter import Tk, Frame, BOTH File ...
0
votes
1answer
261 views

Completely unable to install python2.7-dev [duplicate]

Am totally stuck! Am unable completely to install python2.7-dev on my Ubuntu13.04. I have tried all the tricks mentioned on this site (askubuntu.com) and many other sites on the web but still ...
0
votes
0answers
51 views

Python 2.7.8 and pyglet

I've installed python2.7.8 as default version of python. Pyglet worked perfectly before (with version 2.7.6). Now, it says that there is No module named pyglet. What to do? P.S. I've already tried to ...
2
votes
1answer
100 views

Removing idle-python2.7 in Ubuntu 12.04

I'm having some issues when updating packages on Ubuntu 12.04: Processing triggers for menu ... Errors were encountered while processing: idle-python2.7 Setting up idle-python2.7 (2.7.3-0ubuntu3.5) ...
3
votes
1answer
1k 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
1answer
5k views

Python 2.7.6 on Ubuntu 12.04 How to?

I'm developer and I need to make my enviroment work with Python 2.7.6 (not 2.7.3) on the Ubuntu 12.04. Please, provide me some notes how to do that?
0
votes
1answer
453 views

How can i Download attachments from an email using Python?

My Current python script can download attachments from Gmail. But i want to Download Attachments from any other email services than Gmail. Ex: Other email services are ymail, hot mail, etc .. Is ...
1
vote
0answers
8 views

How to change update At-spi1.32 to At-spi2 core in ubuntu 12.04?

On Ubuntu 12.04 by default At-spi1.32 and py-atspi 1.9.0 are installed. I am trying to intstall atspi2-core and pyatspi2 because in there are new methods I need. When I am trying to import like from ...
2
votes
2answers
254 views

Changing python version without breaking software center

I have been fiddling with my Python installation on Ubuntu 12.04 (I was having trouble installing a python library), and at one point my python command wasn't working. It turned out the symlink was ...
1
vote
0answers
163 views

Ubuntu 14.04 + pyes 0.99.2 + Elasticsearch 1.2.1

Im using Ubuntu 14.04 in a Django Project with ElasticSearch and after I install pyes with pip install pyes==0.99.2 and try to acces to the ElasticSearch page, it returns an error from the OS: ...
0
votes
1answer
26 views

Empty variables in python [closed]

This snippet is from my Python for Biologists book: genomic = open("genomic_dna.txt").read() exons = open("exons.txt") for line in exons: positions = line.split(',') start = int(positions[0]) ...
-1
votes
2answers
100 views

Shifting between alternate versions of Python in Ubuntu

I am new to ubuntu and I wanted to shift my version to Python 3.4.1. So I ran the command: $ sudo update-alternatives --config python update-alternatives: error: no alternatives for python But ...
2
votes
0answers
713 views

python-plugin installation

I try to play online radio in the Chrome web browser. It said this following installation: Required plugin could not be found Python(2.7) requires to install plugins to play media files of the ...
1
vote
1answer
118 views

Two python distributions, sudo picking the wrong one

I'm back to Linux after an over 10 year abstinence (fool me thinks). And a little rusty in the sys admin department. I'm faced with an issue with my python distribution. I'm using Python 2.7, but ...
0
votes
1answer
48 views

Get the openstack cinder volume size through python bindings

Can any one help me out to get the openstack cinder volume size through python bindings. I have list of cinder volumes that are extracted by calling cinder_client_instance.volumes.list() method. Now ...
3
votes
2answers
15k views

How to install h.264 decoder?

I tried playing videos in movie player but only the audio could be heard. I tried playing the video with dragon player but here also only the audio could be heard. A message box appeared showing the ...
1
vote
1answer
3k views

python error IndentationError: expected an indented block

I started to learn python , but when I try to make an function I get this error IndentationError: expected an indented block I use the terminal and write python then start to write the function ...
0
votes
0answers
25 views

How to install pythoncard?(any alternate method)

How to install pythoncard?I have tried browsing the software center for it and I installed it,but when I run a pythoncard-based program,it shows me that there is no module named pythoncard.Can I ...
0
votes
0answers
127 views

Python pip says AttributeError with xmlrpc

I got this error when i update pip. /usr/local/bin/pip run on Tue May 6 15:03:16 2014 Exception: Traceback (most recent call last): File ...
7
votes
3answers
6k views

python 2.7 => ImportError: No module named _io

I decided to switch from Windows to Linux, so I installed Ubuntu Raring final beta. Unfortunately I have a Python problem. I was trying to use pip from a virtualenv I created, to install packages ...