Questions tagged [python-2.7]

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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
3k views

Is there a way to get Blue-Proximity working or an alternative?

I'm looking for a way to use my mobile to automatically unlock my laptop. Blue Proximity seemed like a good answer, but it's clearly been abandoned as a project and I'm having problems with some of ...
CaptainFuzzyFace's user avatar
0 votes
1 answer
389 views

Python command target changed

Older versions of Ubuntu shipped with python 2.7 and python 3.6. But in Ubuntu 20.04 LTS, only python 3.8 is installed. So when python was typed in terminal, python3.8 opened. python, python3 and ...
Abhay Patil's user avatar
  • 2,705
1 vote
1 answer
4k views

Python3 vs Python 3.8

Ubuntu (older than 20.04 LTS) ships with Python 3 and python 2 both. When python was typed in terminal, python2.7 opens and to open python 3.6, python3 command is needed. However python3.6 also works. ...
Abhay Patil's user avatar
  • 2,705
0 votes
1 answer
4k views

`pip install pygame` produces `Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vD9diA/pygame/`

What I'm running on OS: Ubuntu Server 18.04.4 Computer: Raspberry Pi 4 Model B pip version (the default installed on 18.04.4 LTS): pip 9.0.1 python version (the default installed on 18.04.4 LTS): ...
Drake P's user avatar
  • 103
12 votes
1 answer
19k views

pygtk not available on Focal Fossa (20.04)? [duplicate]

tl;dr I cannot install pygtk on Focal Fossa (Ubuntu 20.04) anymore but need it for my self-written PyGTK-based Python application. I wrote a Python2 application some years ago based on GTK using the ...
Alfe's user avatar
  • 245
1 vote
0 answers
1k views

Can't import installed package in python

I've Installed Charm-Crypto in my ubuntu 18.04 and I can find this library files in /usr/lib/python2.7/dist-packages path. But when I try to import this library I'm getting this error message: Python ...
Solat's user avatar
  • 111
0 votes
1 answer
7k views

python2-requests package missing in Ubuntu 20.04?

I do not see any package named python2-requests in the apt search results. I do not see pip2 either. How can I install requests module for python2 ?
Jay Aurabind's user avatar
0 votes
1 answer
139 views

Make file wrong for building libbot2 library

Let me describe my problems. So far I was building the MPNet which requests the libbot2 library. MPNet GitHub libbot2 GitHub I have installed the requirement libraries as followed: GLib 2....
chiehpower's user avatar
2 votes
1 answer
340 views

Python version ambiguity on ubuntu 18.04 & ubuntu 20.04

I can't comprehend what mess I am in, somebody please explain what is happening here and how do I resolve it?screenshot of command line $ python --version Python 3.6.5 $ which python /usr/bin/python ...
Jenim Patel's user avatar
1 vote
3 answers
6k views

Ubuntu 20.04 still supporting Python2

I upgraded from Ubuntu 19.10 to 20.04. Many articles mention that the latest LTS will not support python2. But I still have it. Why is that? $ python Python 2.7.18rc1 (default, Apr 7 2020, 12:05:55) ...
Ashutosh Dash's user avatar
2 votes
2 answers
3k views

Can Gourmet still run on Ubuntu 20.04?

I am a Gourmet user for my cooking recipes, I found no better alternative on Ubuntu for that. Gnome Recipes is attractive and promising, but dev is not very active from what I can see, and it lacks ...
pled's user avatar
  • 578
0 votes
0 answers
824 views

Error after the installation of python-pip

I have Ubuntu (version 18.04.4), installed on Windows, if it is important. Python version is 2.7.17. I'm installing pip with sudo apt install python-pip and the output looks ok, but when I'm ...
YeR's user avatar
  • 1
3 votes
1 answer
1k views

Does python on Ubuntu come with any libraries?

I'm asking this because it appears to me that the standard Ubuntu installation already comes packaged with the python library requests (although I could be wrong about this). Is there a list of, if ...
Ahri's user avatar
  • 217
0 votes
1 answer
170 views

Cannot install ocrfeeder on Ubuntu 18.04

ocrfeeder is an Ubuntu desktop application which utilises Tesseract and other OCR engines to perform OCR. I had it running OK under Ubuntu 14 but am having problems installing it under 18.04. Problem ...
Bahati Mbaya's user avatar
0 votes
0 answers
96 views

I deleted python from my ubuntu 18.04

I remove python with this command sudo apt autoremove python right now, i cant enter to my pc. my ubuntu ask me, login and password but i cant enter, i dont see my files i've made this solutions: ...
hubman's user avatar
  • 103
4 votes
1 answer
9k views

How to correctly avoid the "You are running Setuptools on Python 2, which is no longer supported" message while using Python 2?

I have just installed Ubuntu 16.04 LTS on fresh system. I need to run some Python 2 stuff on it. So I did the following: $ pip2 The program 'pip2' is currently not installed. You can install it by ...
N0rbert's user avatar
  • 99.8k
-3 votes
1 answer
157 views

i uninstalled the python2 with sudo apt-get remove after that generates the following error , any help would be great,thankyou

root@odroid:/var/cache/apt/archives# sudo apt-get autoclean Reading package lists... Done Building dependency tree Reading state information... Done root@odroid:/var/cache/apt/archives# sudo apt-get ...
Siddharth 's user avatar
0 votes
1 answer
6k views

How to upgrade from python 2.7 to the latest version of python

I have python 2.7.15+ installed and I want to upgrade to the latest version 3.7. I have come across the command from net sudo apt-get install python 3.3.3 But this command adds another software ...
Hrushi's user avatar
  • 319
1 vote
1 answer
15k views

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 <...
mprovitina's user avatar
7 votes
2 answers
47k views

How to update Python to the latest version on Ubuntu 16.04

I am trying to update my python version but whenever I try: pip install --upgrade python the output is: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade ...
Andre's user avatar
  • 71
0 votes
1 answer
258 views

How to install KivEnt on Ubuntu?

I'm currently learning Kivy for making some simple games as my project work. I recently found out that there is something called as KivEnt that can make Game developement on Kivy more reliable. But I ...
Firos's user avatar
  • 1
1 vote
1 answer
230 views

Ubuntu 16: Confusion regarding Python 2.7 and Python 3.x

I have gone through the related questions and their answers. Still I am asking this question. If a change the alias to Python 3.x, will the system break. There are two pip files in\usr\bin directory. ...
Sreekumar R's user avatar
0 votes
0 answers
54 views

Restore system after accidentally purging python2

My brother have purged python2 in his Ubuntu Desktop 18.04. That's what happened, Graphical Display Manager is failing. After logging in tty, I have tried to update, --fix-missing and apt install ...
Arafat Hasan's user avatar
-2 votes
1 answer
4k views

Default python path - bash: /usr/local/bin/python2.7: No such file or directory

When I write python on terminal get an error bash: /usr/local/bin/python2.7: No such file or directory but if I use in terminal python2 or python3 it's working perfectly How to solve this? Please ...
MD SHAYON's user avatar
  • 385
0 votes
2 answers
3k views

Unable to install numpy for python2

I used to have numpy working earlier. Not sure what happened, but now I get the import error: >>> import numpy Traceback (most recent call last): File "<stdin>", line 1, in <...
SKR's user avatar
  • 43
3 votes
1 answer
5k views

Can't Change the default python to 3.7 in ubuntu 19.10? [duplicate]

I am not very experienced at Linux but I recently installed Ubuntu 19.10 and I am trying to use Python 3 and the default is Python 2. I spent a lot of time reading how to configure Ubuntu to run ...
user1016220's user avatar
2 votes
3 answers
26k views

how to switch python 2.7 to python 3.7 in ubuntu 19.10

I am using Ubuntu 19.10 and I have python 2.7 installed on it. I want to upgrade to python 3.7 on it. How do I do it? I have downloaded https://www.anaconda.com/ for 3.7 version of Linux and installed ...
political science's user avatar
1 vote
1 answer
12k views

How to install python-dev (for python 2.7) on ubuntu 18.04? [duplicate]

Ubuntu 18.04. I have a pip (2.7) installation that fails for not finding "Python.h". I tried this: $ sudo apt install python-dev --fix-missing and got this for output: Reading package lists... ...
RadlyEel's user avatar
  • 211
1 vote
1 answer
2k views

Install python2.7 unmet dependencies problems - Ubuntu 18.04

I recently clean reinstalled Ubuntu 18.04 and now wanted to install python2.7 for various other dependencies, however am unable to do so. Running sudo apt install python and sudo apt install python-...
Justus's user avatar
  • 11
1 vote
1 answer
632 views

Ubuntu 18.04 python-tz and python-zmq errors

I've got a side install of Python 2.7.15rc1 and I've created some problem when I changed the python symlink to Python3 temporarily and changed back. Now when I try to from updates via apt. sudo apt ...
guudr's user avatar
  • 11
0 votes
1 answer
2k views

Permission Denied while installing [duplicate]

I am getting the above error when i run the command: apt-get -f install E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend ...
Chaitanya Kumar's user avatar
1 vote
1 answer
865 views

Manually Installed new Python to /usr/bin, how to get Repo version back?

Yes, I'm a moron, and I tried to manually install a higher point release of python 2.7.16 to /usr/bin/ (i did ./configure --prefix=/usr) on my Ubuntu 16.04 machine. It seems to work fine EXCEPT for ...
Mohamed Hafez's user avatar
2 votes
0 answers
1k views

I cannot install python-tk on python2.7

I am an Ubuntu Mate 16.04 user. I want to run this program. I have to use python2.7 to run the program. And I enter python2 train_and_test.py on the terminal. Then, an error was displayed. ...
Sakurai.JJ's user avatar
0 votes
0 answers
623 views

How to control fan speed with python 2.7?

I need to control the fan speed with python 2.7. Problem is, I can't find a way that works. I'm on ubuntu 18.04, please help! sensors-detect output: # sensors-detect revision 6284 (2015-05-31 14:00:...
Pythonic456's user avatar
2 votes
2 answers
12k views

make `pip` use not-default python3.7

I know this is a question similar to those already asked many times, but I still can not get a trustable solution. I have many versions of python installed on my Ubuntu 16.04, from the 2.7 to the ...
Py-ser's user avatar
  • 687
0 votes
1 answer
383 views

problem installing jupyter on ubuntu

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pyzmq-18.0.2.dist-info' Consider using the --user option or check ...
ashrafkhan's user avatar
1 vote
1 answer
804 views

I have python3 idle already installed on my computer, how can I install python2.7 idle too?

I need to run files programmed using 2.7 and if I go into terminal and give the command: sudo apt-get install idle It doesn't work. Reading package lists... Done Building dependency tree ...
user966137's user avatar
1 vote
0 answers
370 views

turbodbc installation error in Ubuntu 18.04 [duplicate]

I tried to install turbodbc with pip install turbodbc inside a Python virtual environment in Ubuntu 18.04, but it's showing this error. DEPRECATION: Python 2.7 will reach the end of its life on ...
SRJ577's user avatar
  • 105
12 votes
1 answer
6k views

Is it safe to remove Python 2.7.15rc1 from Ubuntu 18.04?

I upgraded my laptop from Ubuntu 16.04 to Ubuntu 18.04 as soon as I got it and I am not using Python 2. Is it safe for me to remove it? My terminal is showing the default version as Python 3.7.3.
Jaswitha Reddy's user avatar
1 vote
1 answer
1k views

When configuring update-notifier - cannot find chardet even though it is installed

So my ubuntu installation (16.04.6 LTS) is having a problem configuring the update-notifier: ~$ sudo dpkg --configure -a Setting up update-notifier-common (3.168.10) ... Traceback (most recent call ...
FrankRalphBob's user avatar
1 vote
0 answers
96 views

Ubuntu 16.04, Python 2, TensorFlow 2

I have installed TensorFlow 2, Python 2 and Cuda 8. I am not able to use any TensorFlow modules, it seems they are not compatible. Anyone knows which version of Python and Cuda should I use with ...
Emma's user avatar
  • 11
0 votes
1 answer
146 views

Installing python 3 modules issues

I am having an issue installing modules on OS Ubuntu 19.04 with Python 3.7.3 and Python 2.7.16 The module is only for Python>=3.5. Research hasn't led me to much or I have looked in the wrong places ...
hangejj's user avatar
  • 101
1 vote
1 answer
236 views

Which of these Python 2.7 libraries can I remove without bricking my 16.04?

I am trying to remove all non-system Python 2.7 libraries which I installed in my 16.04. I want to reset my Python library list to its default. I have manually removed most of the libraries myself ...
Eka's user avatar
  • 2,967
0 votes
1 answer
2k views

Problem when installing pip for python 2.7.16 in Ubuntu 18.04 [duplicate]

I used the following in Home $ sudo apt install python-pip the output was the following Reading package lists... Done Building dependency tree Reading state information... Done Some packages ...
Phineas's user avatar
  • 175
1 vote
1 answer
2k views

Opendr installation error (python2.7 & Ubuntu 16.04): failed with error code 1 in /tmp/pip-install-e1zPWl/opendr/

I am trying to set up virtualenv on Ubuntu 16.04. I have already installed pip (v.19.0.3), scipy, numpy, matplotlib, scikit-image, deepdish, opencv_python, absl_py and ipdb. When I try to install ...
user7366428's user avatar
2 votes
0 answers
8k views

What's the command to find out version of gcc is used inside a conda virtual environment?

I have a program to be compiled in which I need to have gcc. However, when a python 2.7 virtual conda enviornment being installed, it needs gcc. So I believe I don't have to install gcc package ...
Jenny's user avatar
  • 591
0 votes
1 answer
113 views

python2.7 installs a fake pip3.5

I have tried installing pip 8.1.2 through python2.7 as follows: root@ubuntu18test:~# python2.7 -m easy_install pip==8.1.2 Searching for pip==8.1.2 Reading https://pypi.python.org/simple/pip/ ...
Score_Under's user avatar
5 votes
4 answers
4k views

Duplicity with B2 Backblaze issue

Running 18.04LTS I've installed Duplicity... it seems to work. I'm running duplicity 0.7.18.2. I've installed the B2 Command line tool... it works without issue. I get the following when I try to ...
Eddie's user avatar
  • 51
0 votes
0 answers
112 views

Kivy doesn't works with Python3 but works with Python2

I installed the Kivy library for Python3 but when I import the Kivy library, the interpreter gives an error 'No module name Kivy' even though I installed the package python3-kivy. I'm able to import ...
siddheshk599's user avatar
1 vote
0 answers
1k views

How to reset pip packages of python2 and python3 to the default in 16.04?

I want to reset all the python modules in python3 and python2 to the default system packages in 16.04. I followed this method pip freeze | grep -v "^-e" | xargs pip uninstall -y which broke my pip and ...
Eka's user avatar
  • 2,967

1
2
3 4 5
9