DEV Community

Installing pip on Windows

el-joft on July 19, 2017

Note: "the newest versions of python comes with pip but older version has to be installed by the user." Before you install pip on your computer, m...
Collapse
 
smeysama profile image
smeysama • Edited

hi el-joft
i did your tutorial but i'm getting message down:

C:\Python27\Lib\site-packages>pip list
DEPRECATION: The default format will switch to columns in the future. You can us
e --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.con
f under the [list] section) to disable this warning.
pip (9.0.1)
setuptools (38.4.0)
virtualenv (15.1.0)
wheel (0.30.0)

C:\Python27\Lib\site-packages>pip freeze
virtualenv==15.1.0

for update show message down:
C:\Python27\Scripts>python -m pip install -U pip
Requirement already up-to-date: pip in c:\python27\lib\site-packages

so

C:\Python27>python -m pip install --upgrade pip setuptools wheel
Requirement already up-to-date: pip in c:\python27\lib\site-packages
Requirement already up-to-date: setuptools in c:\python27\lib\site-packages
Requirement already up-to-date: wheel in c:\python27\lib\site-packages

Collapse
 
bilal26036 profile image
bilal26036

i am following your tutorial but i am getting error.

Requirement already up-to-date: pip in c:\program files (x86)\paython 3.6.1\lib\site-packages
Collecting wheel
Using cached wheel-0.30.0-py2.py3-none-any.whl
Installing collected packages: wheel
[31mException:
Traceback (most recent call last):
File "C:\Users\ARSALA~1\AppData\Local\Temp\tmpcb1hb02_\pip.zip\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\Users\ARSALA~1\AppData\Local\Temp\tmpcb1hb02_\pip.zip\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "C:\Users\ARSALA~1\AppData\Local\Temp\tmpcb1hb02_\pip.zip\pip\req\req_set.py", line 784, in install
**kwargs
File "C:\Users\ARSALA~1\AppData\Local\Temp\tmpcb1hb02_\pip.zip\pip\req\req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "C:\Users\ARSALA~1\AppData\Local\Temp\tmpcb1hb02_\pip.zip\pip\req\req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "C:\Users\ARSALA~1\AppData\Local\Temp\tmpcb1hb02_\pip.zip\pip\wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "C:\Users\ARSALA~1\AppData\Local\Temp\tmpcb1hb02_\pip.zip\pip\wheel.py", line 316, in clobber
ensure_dir(destdir)
File "C:\Users\ARSALA~1\AppData\Local\Temp\tmpcb1hb02_\pip.zip\pip\utils_init_.py", line 83, in ensure_dir
os.makedirs(path)
File "C:\Program Files (x86)\paython 3.6.1\lib\os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [WinError 5] Access is denied: 'C:\Program Files (x86)\paython 3.6.1\Lib\site-packages\wheel'[0m

Collapse
 
ghost profile image
Ghost

There is a good chance that the Python Scripts directory was already added to your PATH, when you installed Python.

Collapse
 
pranavvaid profile image
pranav-vaid

Worked like a charm. Really appreciated it. Thanks to the Dev!!

Collapse
 
el_joft profile image
el-joft

you are welcome

Collapse
 
ghost profile image
Ghost

just copy and paste the python code into a fresh python IDLE (GUI)

Any text editor will do. Just make sure you have the correct file extension after saving.

Collapse
 
mikennani profile image
Micheal Uchenna Nnani

Thanks, man. it worked

Collapse
 
ghost profile image
Ghost

python get-pip.py.

The "." on the end is a typo, I think.

Collapse
 
shirleyholmes profile image
ShirleyHolmes

Why is pip install not working? Assamese Tantrik

Collapse
 
el_joft profile image
el-joft

Are you getting any error?