how to find where pip is installed code example
Example 1: how to find where python is located
>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\\Python25'
Example 2: windows where are pip packages installed
#Windows
%localappdata%\programs\python\python38\lib\site-packages
#Installed with chocolatey
C:\Python38\Lib\site-packages
Example 3: how to check if pip is installed
File"stdin",line 1
pip list
Syntax Error: invalid syntax
Example 4: how to see pip installed packages
py -m pip list [options]