Cannot install python3-pip on kali linux
First you should check if pip3
is installed on your system . To do so run the following :
pip3 --version
if it's already installed you should get something like :
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)
in this case pip3
is already installed and you don't need to do anything .
Otherwise python3-pip
Package is in kali-rolling
repos , And to install it you need to make sure you have kali-rolling
enabled in your /etc/apt/sources.list
, by running following in your terminal :
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" | sudo tee /etc/apt/sources.list
apt update && apt upgrade
then finally you can install python3-pip
by running :
apt install python3-pip
This should get python3-pip
installed on your kali machine
If for some weird reason this didn't work for you and you needed a quick way to install pip3 on your machine you can download this file : get-pip
Then run this in your terminal :
cd ~/Downloads
python3 get-pip.py
This should get pip3
installed on your machine , you can check by running pip3 --version
Cannot install python-pip on Kali Linux
At-First Open Your sources.list
File With any Editor.
nano /etc/apt/sources.list
and add these Lines.
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
Not Update and Upgrade Your Kali Linux Using These Commands.
apt-get update
apt-get upgrade
and then Install pip
using this command
apt-get install python-pip #For Python2
apt-get install python3-pip #For Python3
Not able to install python-pip in kali linux 2019.3 vbox amd 64 with apt-get install python-pip
It is better to install it manually.
wget https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
Remeber to check the python version with python --version
to check if that's the one you want. If it prints 2.7
and you want Python 3, your command may be python3
How to install Python 3.6+ version in Kali Linux?
Not all Unix distributions offer all Python versions. It is common to only have one Python 2.7.x version and one or two Python 3.y .
Normally Python 3 has a good ascending compatibility, so a Python 3.9 should run a Python 3.6 without any problem. If you really need a specific version, the desperate way is to get a source distribution from python.org and build it locally. The downside is that this one will not participate in apt
version control, so it will not be detected by third party application. But it is the only way I know to have a no longer distribution maintained version.
Related Topics
Equivalent to Gettickcount() on Linux
How to Find the Mountpoint a File Resides On
Read File with Timeout in Python
How to Push a Subprocess.Call() Output to Terminal and File
Run a Python Script in Terminal Without the Python Command
Multiprocessing: Use Only the Physical Cores
Ignore Case in Glob() on Linux
Move and Zoom a Tkinter Canvas with Mouse
Opening a Python Thread in a New Console Window
Using Python 32 Bit in 64Bit Platform
Command 'X86_64-Linux-Gnu-Gcc' Failed with Exit Status 1
How to Write Dataframe to Postgres Table
Writing Python Lists to Columns in Csv
How to Show Pil Image in Ipython Notebook
Plt.Figure.Figure.Show() Does Nothing When Not Executing Interactively