Kh4l1l
(none)
February 2, 2021, 9:19am
1
Hi !
I want to install pip for python2, the command I used is sudo apt install python-pip
It tells me that that package doesn’t have a version that can be installed.
It also tells me that it’s in the database but it’s obsolete or missing.
I can install pip for python3 but I actually need the python2 version.
Can anyone help me please ?
dmknght
(Nông Hoàng Tú)
February 2, 2021, 9:25am
2
Python 2 is end of life. Python 2 is removed and python2 scripts will be removed.
Kh4l1l
(none)
February 2, 2021, 3:40pm
3
I know that, but there are a lot of scripts that still use Python2, how can we run these scripts then ?
Kh4l1l
(none)
February 8, 2021, 9:33pm
4
Can anyone help me please ?
Masmer
(Masmer Snerd)
February 8, 2021, 9:48pm
5
I will probably get yelled at for sharing this, and am not responsible if a future Parrot Upgrade breaks your system.
wget https://bootstrap.pypa.io/get-pip.py
sudo python2 get-pip.py
Verify…
pip2 --version
Masmer
(Masmer Snerd)
February 8, 2021, 11:07pm
7
Ah. Even the Python developers completely removed support for Python2 in the latest pip 21.0:
Note : pip 21.0, in January 2021, removed Python 2 support, per pip’s Python 2 support policy
. Please migrate to Python 3.
You will have to search for a .tar.gz of pip 20.3.4 or older, then after extraction, run the included setup.py.
python2 setup.py
Masmer
(Masmer Snerd)
February 8, 2021, 11:39pm
9
You are new to Python I take it.
sudo apt install python-setuptools
Kh4l1l
(none)
February 8, 2021, 11:42pm
10
Oh I’ve just resolve the issue
Thank you for your replies !
Have a nice day !
1 Like
system
(system)
Closed
June 8, 2021, 11:43pm
11
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.