Skip to main content

How to use pip with Python 3.x alongside Python 2.x

At first I was expecting pip to be automatically installed alongside python3.4 in Kali Linux. To my frustration, it was not.

You can try one of the following:

1. To install pip using apt. Type the following command in your terminal:


apt-get install python3-pip

However in my case, this command doesn't always work. In those cases, I would resort to the next way.

2. Install pip using the python script from Python Packaging Authority. Type the following commands in your terminal:


> curl -O https://bootstrap.pypa.io/get-pip.py

> python3.2 get-pip.py


get-pip.py is a bootstrapping script that enables users to install pip, setuptools, and wheel in Python environments that don't already have them.

Hope this helps!
Cheers! 

Popular posts from this blog

Importing Exploit-DB Exploits into Metasploit in Kali Linux for Offline Access

You're going to need three terminals open for this. Terminal 1 for starting metasploit Terminal 2 for importing the exploit to local Metasploit repository Terminal 3 for searchsploit which we will use to search for the exploit instead of opening your browser and looking in exploitdb. Let's be done with it! 1. First, open the first terminal to run metasploit with the following commands: > service postgresql start > msfconsole  2. Go to Terminal 3 and run the following command to update its database: > searchsploit -u 3. Open Terminal 2, then go to the metasploit modules directory by: > cd .msf4/modules 4. Then create a directory inside the msf4 modules folder: > mkdir exploits 5. Now, back to the Terminal 3. We will to search for an exploit we want to import. Let's first try to look for the explore ms15-100 by typing: > searchsploit msf15-100 After pressing Enter, you should be able to see the search result. It will be a t...

Using Termux in Android to Download Youtube Videos

In termux: apt update && apt upgrade Give termux access to your phone's filesystem via ~/storage/shared termux-setup-storage Install python: packages install python Install youtube-dl pip install youtube-dl Create a folder to store your downloaded videos: mkdir /data/data/com.termux/files/home/storage/shared/Youtube Create youtube-dl config (volume-down key emulates Ctrl in termux): nano ~/.config/youtube-dl/config The contents of my config is as follows: --no-mtime -o /data/data/com.termux/files/home/storage/shared/Youtube/%(title)s.%(ext)s -f "best[height<=480]" (the height<=480 tells youtube-dl to download the best quality version up to 480px in width. You can change to 240, 360, 720 or 1080, etc to suit your needs / bandwidth restrictions. Save with "Volume-down" + O, then close nano with "Vol-down" + X Create "termux-url-opener" in ~/bin to enable one-click download via the "Share" menu i...

Free Photoshop Alternatives

  These tools have all the basic image manipulation features for you everyday photo editing needs and are   neither heavy on your Windows system, nor on your pocket   . So, let’s just leave Photoshop for professional designers and take a look at these   free image manipulation tools for Windows   and see which one will suit you the best. Adobe Photoshop Express Adobe Photoshop Express for Windows enables photo magic at your fingertips. It’s a small pack of  essential everyday photo-editing tools from Adobe  to help you create better-looking pictures. It has many exciting features to  enhance your photos and do easy touch-ups  through functions like crop, rotate, flip, brightness, etc. PC Image Editor PC Image Editor is a  solid but simple image-editing application . It’s built for beginners and professionals who like to customize or enhance photos with minimum effort. The super intuitive interface brings many editing tools and options su...