FOR WINDOWS ONLY
open cmd.
then type pip help
, if pip is installed then a message would come explaining how to use it else an error message stating that the program is not found.
then type python
and see whether that's installed properly, if you receive this Python is not recognized as an internal or external command, operable program or batch file
then this means that python is not installed on your system and you need to reinstall it. Or if it is installed properly then you would get something like this
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
to install pip download this pip install and then open your cmd in that folder where you have installed it by using the cd
command(like if you have installed it in downloads you should type in the cmd cd Downloads
), then type this python get-pip.py
.
And this should have installed pip on your system. (see step 1 to see if it works)
Then just upgrade pip and you are good to go, you can upgrade pip by python -m pip install --upgrade pip
Then try installing a module like pip install tksplash
in the cmd.
FOR LINUX ONLY
sudo apt install python3-pip
(works only on debian based disrtos like -: Ubuntu,Kali, Parrot))pip install Flask
Installing Anaconda will be better option. It has all packages required. get-pip.py needs to be downloaded and run python get-pip.py.
Use Python 3.10, it installs pip
properly out of the box.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.