Shi Jie Tio Shi Jie Tio - 5 months ago 120
Python Question

PermissionError: [Errno 13] Permission denied: 'C:\\Program Files\\Python35\\Lib\\site-packages\\'

I am using python 3.5.3, and now I want to install pandas and numpy but not able to, following is the error in cmd, anyone can help me?

C:\Program Files\Python35\Scripts>py -3.5 -m pip install pandas

Collecting pandas
Using cached pandas-0.20.1-cp35-cp35m-win_amd64.whl
Collecting python-dateutil>=2 (from pandas)
Using cached python_dateutil-2.6.0-py2.py3-none-any.whl
Collecting numpy>=1.7.0 (from pandas)
Using cached numpy-1.12.1-cp35-none-win_amd64.whl
Collecting pytz>=2011k (from pandas)
Using cached pytz-2017.2-py2.py3-none-any.whl
Collecting six>=1.5 (from python-dateutil>=2->pandas)
Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: six, python-dateutil, numpy, pytz, pandas
Traceback (most recent call last):
File "C:\Program Files\Python35\lib\site-packages\pip\", line 215, in main
status =, args)
File "C:\Program Files\Python35\lib\site-packages\pip\commands\", line 342, in run
File "C:\Program Files\Python35\lib\site-packages\pip\req\", line 784, in install
File "C:\Program Files\Python35\lib\site-packages\pip\req\", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "C:\Program Files\Python35\lib\site-packages\pip\req\", line 1064, in move_wheel_files
File "C:\Program Files\Python35\lib\site-packages\pip\", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "C:\Program Files\Python35\lib\site-packages\pip\", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "C:\Program Files\Python35\lib\", line 121, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\Program Files\\Python35\\Lib\\site-packages\\'

Answer Source

As others have pointed out you need to run the command with admin privileges.

How to do this varies by windows version, but on Windows 8 and 10 you can just press Windows+X (or just right-clicking the Start button). On the menu, choose “Command Prompt (Admin).”

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download