Python Forum

Full Version: pip wont install selenium
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i have installed python 3.6 on my windows 8.1 laptop. but i cannot get pip to install selenium.
i get the following appear in red font on command prompt :
Exception:
Traceback <most recent call last>:
File "c:\program files\python37\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run<options, args>
File "c:\program files\python37\lib\site-packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "c:\program files\python37\lib\site-packages\pip\req\req_set.py!, line 784, in install
**kwargs
File "c:\program files\python37\lib\site-packages\pip\req\req_install.py", line 851, in install
self.move_wheel_files<self.source_dir, root=root, prefix=prefix>
File "c:\program files\python37\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "c:\program files\python37\lib\site-packages\pip\wheel.py", line 345, in move_wheel_files
clobber<source, lib_dir, True>
File "c:\program files\python37\lib\site-packages\pip\wheel.py", line 316, in clobber
ensure_dir<destdir>
File "c:\program files\python37\lib\site-packages\pip\utils\__init__.py", line 83, in ensure_dir
os.makedirs<path>
File "c:\program files\python37\lib\os.py", line 221, in makedirs
mkdir<name, mode>
PermissionError: [winError 5] Acces is denied: 'c:\\program files\\python37\\Lib\\site-packages\\selenium'

can anyone help me as i am a complete beginner.
thanks
Error:
PermissionError: [winError 5] Acces is denied: 'c:\\program files\\python37\\Lib\\site-packages\\selenium'
This means you dont have permission. Get an elevated command prompt.
Thanks, that worked.