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
3answers
119 views

How to remove Python 2 from Ubuntu 20.04?

I've upgraded recently from Ubuntu 18.04 to 20.04. But I can see that Python2 is still the default instead of python 3.8.2. $ python -V Python 2.7.18rc1 $ python3 -V Python 3.8.2 Is it possible ...
0
votes
1answer
21 views

pip install pyopenssl object has no attribute 'SSL_ST_INIT'

I've searched this forum for the same issues and none of the fixes worked for me. I have a Ubuntu 18.04 and any python 2.7 modules that need OpenSSL I get an attribute error. Pip install command ...
1
vote
1answer
18 views

How to install gcloud in a Docker container on 19.10?

I have a Docker container as 19.10 as both the host and guest, and I tried to install gcloud: # Add the Cloud SDK distribution URI as a package source RUN echo "deb [signed-by=/usr/share/keyrings/...
0
votes
0answers
17 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 ...
0
votes
1answer
26 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 ...
0
votes
1answer
34 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. ...
0
votes
1answer
94 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): ...
2
votes
1answer
362 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 ...
1
vote
0answers
32 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:: [...
0
votes
1answer
208 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 ?
0
votes
1answer
27 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....
1
vote
1answer
118 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 ...
0
votes
2answers
310 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) ...
1
vote
1answer
438 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 ...
0
votes
0answers
65 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 ...
2
votes
1answer
89 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 ...
0
votes
1answer
32 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 ...
0
votes
0answers
49 views

How do I install google assistant on ubuntu 16.04

I am having ubuntu 16.04. I need google assistant on my dell pc. Can somebody suggest the easiest way to install it. I also have python (v2.7) installed.
0
votes
0answers
15 views

Ubuntu 18.04.4 Live Server in a Virtual box - /usr/bin/ld: cannot find -lgflahs and -lhdf5_serial_h1

What does this error mean, during caffe compilation ? How shall I fix it? Commands: cd /home/aegono/CTPN/caffe sudo make Output: LD -o .build_release/lib/libcaffe.so /usr/bin/ld: cannot find -...
0
votes
0answers
69 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: ...
3
votes
1answer
3k 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 ...
-3
votes
1answer
48 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 ...
0
votes
1answer
197 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 ...
0
votes
0answers
354 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 <...
0
votes
1answer
330 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 ...
0
votes
0answers
47 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 ...
0
votes
0answers
85 views

Install python-2.7.15 on ubuntu 18.04 LTS

I want to install python 2.7.15 on my system for the sake of a project. Currently, my system has python 2.7.17 installed. I don't want to delete it either. I want to install it in such a way as it ...
1
vote
1answer
110 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. ...
0
votes
0answers
24 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 ...
-2
votes
1answer
388 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 ...
0
votes
2answers
480 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 <...
3
votes
1answer
2k 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 ...
0
votes
3answers
8k 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 ...
0
votes
1answer
983 views

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

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... ...
0
votes
0answers
78 views

user login logout time in new file python3.x

See i wanna monitor my local users log-in log-out time using python-3.x script and in the same way if i wanna see particular user login logout time also it should work.
1
vote
1answer
307 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-...
1
vote
1answer
184 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 ...
0
votes
1answer
588 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 ...
0
votes
0answers
101 views

Suddenly not working on Ubuntu Digital Ocean: requests error for only Google

It was working fine a week ago, but all of a sudden it stopped working. Steps to reproduce: Python 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "...
1
vote
1answer
96 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 ...
2
votes
0answers
251 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. ...
0
votes
0answers
149 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:...
2
votes
2answers
7k 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 ...
0
votes
1answer
136 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 ...
1
vote
1answer
76 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 ...
1
vote
0answers
361 views

turbodbc installation error in ubuntu 18.04

i tried to install turbodbc in my ubuntu 18.04 using : pip install turbodbc inside the virtual environment. But its showing this error. pip install turbodbc DEPRECATION: Python 2.7 will ...
10
votes
1answer
4k 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.
1
vote
1answer
218 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 ...
1
vote
0answers
69 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 ...
0
votes
1answer
107 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 ...

1
2 3 4 5
8