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.
Questions tagged [python-2.7]
419 questions
30
votes
4 answers
python2.7 broken by weakref import error, please help!
I just updated from 16.04 to 17.10, and every time I attempt to run any python2.7 command, I'm getting this error:
pip install --upgrade pip
Traceback (most recent call last):
File "/home/XXXX/bin/pip", line 7, in
from pip import main
…

Alaisdar Alves
- 301
8
votes
2 answers
How to install the cPickle module?
I was unable to install the cPickle module using pip:
$ pip --version
pip 1.5.6 from /usr/lib/python2.7/dist-packages (python 2.7)
$ pip install cPickle
...
Could not find any downloads that satisfy the requirement pickle
Attempting installation…

donnie
- 81
5
votes
1 answer
Where can I find the python Tools directory?
The python2.7 documentation refers to a Tools/scripts directory and a Tools/demos directory, but those don't seem to be on my computer.
locate Tools/scripts
doesn't find anything.
A post on this site said that
sudo apt-get source…

saulspatz
- 239
2
votes
1 answer
How to install swi-prolog as a shared library?
I need to develop an expert system using prolog as an inference engine and python as interface. I already have the SWI-prolog installed in my machine, but, i can't import the interface PySwip because SWI-Prolog is not installed as a shared library.…

aguiarroney
- 143
- 1
- 6
2
votes
0 answers
Python unknown encoding utf8
I need to renew my Letsencrypt certificate, but python doesn't find UTF8 encoding.
I had a suggestion to reinstall Python, but I Ubuntu 14 doesn't let me.

Eligijus
- 121
2
votes
1 answer
Install PyNSource in Ubuntu 12.04
How can i Install PyNSource in Ubuntu 12.04 LTS (the python version is 2.7)

HachDev
- 21
- 2
2
votes
1 answer
PyKaraoke not working on Ubuntu 12.10. Will it be for python3?
I have Ubuntu 12.10 and PyKaraoke was not working before I worked in 12.10. It now opens but I can not add folders to the library. Only the Home folder.

Domingo
- 21
1
vote
1 answer
while installing rethinkdb i'm getting some socket error..how to overcome from that error
While installing rethinkdb, I'm get some socket error. How do I fix the error?
I tried:
$rethinkdb
error: TCP socket creation failed for port 29015: Address already in use.
1
vote
1 answer
Python to Anaconda
I am completely new to python. I have Python 2.7.9 on my computer. Now I need to install anaconda and do scientific programming. How can I proceed to have anaconda and use it to code some problems?

rainman
- 113
1
vote
1 answer
Running MadGraph on Ubuntu
I'm trying to run MadGraph on an Ubuntu virtual machine. The documentation for MadGraph states that I just need python 2.7 and the unzipped MadGraph to be able to run it.
Nevertheless, I can't MadGraph to run. Any help?
The problem rests in that…

Tetradic
- 11
1
vote
1 answer
unable to import pcl to python?
I followed the instructions given here http://www.pointclouds.org/downloads/linux.html .
After installing the libpcl , what should be done to import it in python?

Neeraj Kulkarni
- 11
- 1
- 2
1
vote
1 answer
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?

Skykoo
- 11
1
vote
1 answer
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 uno library for python 2.7
Earlier when i was using…

user1839132
- 11
- 1
- 2
1
vote
1 answer
Dependencies of python2, e. g. GIMP
After installing in 18.04 (upgraded from 16.04) python3 I removed python2 by
sudo apt autoremove python2
sudo apt autoremove python2.7
As I now realized this was stupid.
But I don't understand why GIMP doesn't work any more now.
Is it enough to…

ubuntuuser
- 230
1
vote
1 answer
can't locate libpython2.7.so.1.0
I'm trying to install an application called Prism pipeline on Ubuntu 19.10. The installer fails with this error:
Traceback (most recent call last):
File "Scripts/PrismInstaller.py", line 65, in
from PySide.QtCore import *
ImportError:…

mprovitina
- 11