New to Blender. Experienced with Python 2.7.
I am trying to install pip in my Blender Python implementation. I am attempting to do this by following the instructions in How to use PIP with Blender's bundled Python? - Answer, which links to Install pip.
I followed those instructions, and it seemed to be going well, but I got a PermissionError. I switched from doing it cmd.exe to PowerShell, but encountered the same problem.
Question
What do I need to do to get past the PermissionError?
Here is the full output from the command execution, including the exception message:
PS C:\Users\Paul Schrum> cd "C:\Program Files\Blender Foundation\Blender\2.79\python\lib"
PS C:\Program Files\Blender Foundation\Blender\2.79\python\lib> ..\bin\python D:\SourceModules\get-pip.py
Collecting pip
Using cached pip-9.0.1-py2.py3-none-any.whl
Collecting setuptools
Using cached setuptools-38.4.0-py2.py3-none-any.whl
Collecting wheel
Using cached wheel-0.30.0-py2.py3-none-any.whl
Installing collected packages: pip, setuptools, wheel
Exception:
Traceback (most recent call last):
File "C:\Users\name\AppData\Local\Temp\tmp185kt8q9\pip.zip\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\Users\PAULSC~1\AppData\Local\Temp\tmp185kt8q9\pip.zip\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "C:\Users\PAULSC~1\AppData\Local\Temp\tmp185kt8q9\pip.zip\pip\req\req_set.py", line 784, in install
**kwargs
File "C:\Users\PAULSC~1\AppData\Local\Temp\tmp185kt8q9\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\PAULSC~1\AppData\Local\Temp\tmp185kt8q9\pip.zip\pip\req\req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "C:\Users\PAULSC~1\AppData\Local\Temp\tmp185kt8q9\pip.zip\pip\wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "C:\Users\PAULSC~1\AppData\Local\Temp\tmp185kt8q9\pip.zip\pip\wheel.py", line 316, in clobber
ensure_dir(destdir)
File "C:\Users\PAULSC~1\AppData\Local\Temp\tmp185kt8q9\pip.zip\pip\utils\__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "C:\Program Files\Blender Foundation\Blender\2.79\python\lib\os.py", line 241, in makedirs
mkdir(name, mode)
PermissionError: [WinError 5] Access is denied: 'C:\\Program Files\\Blender Foundation\\Blender\\2.79\\python\\Lib\\site
-packages\pip'