numpy.whl安装错误。(Windows权限错误)

时间:2017-11-06 19:54:09

标签: python numpy opencv access-denied failed-installation

我尝试在Windows 8.1中使用" pip安装轮安装" opencv_python-3.3.0.10-cp36-cp36m-win32.whl" ..&#34 ;命令(预安装python 3.6)。但是显示了以下错误......

C:\Program Files (x86)\Python36-32\Lib\site-packages>pip install wheel 
opencv_python-3.3.0.10-cp36-cp36m-win32.whl
Collecting wheel
Using cached wheel-0.30.0-py2.py3-none-any.whl
Processing c:\program files (x86)\python36-32\lib\site-packages\opencv_python-3.3.0.10-cp36-cp36m-win32.whl
Collecting numpy>=1.11.3 (from opencv-python==3.3.0.10)
Downloading numpy-1.13.3-2-cp36-none-win32.whl (6.8MB)
100% |████████████████████████████████| 6.8MB 66kB/s
Installing collected packages: wheel, numpy, opencv-python
Exception:
Traceback (most recent call last):
File "c:\program files (x86)\python36-32\lib\site-
packages\pip\basecommand.py"
, line 215, in main
status = self.run(options, args)
File "c:\program files (x86)\python36-32\lib\site-packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "c:\program files (x86)\python36-32\lib\site-packages\pip\req\req_set.py", line 784, in install
**kwargs
File "c:\program files (x86)\python36-32\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 (x86)\python36-32\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "c:\program files (x86)\python36-32\lib\site-packages\pip\wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "c:\program files (x86)\python36-32\lib\site-packages\pip\wheel.py", line 316, in clobber ensure_dir(destdir)
File "c:\program files (x86)\python36-32\lib\site-packages\pip\utils\__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "c:\program files (x86)\python36-32\lib\os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [WinError 5] Access is denied: 'c:\\program files (x86)\\python36-32\\Lib\\site-packages\\wheel'

C:\Program Files (x86)\Python36-32\Lib\site-packages>

"如何克服这一权利被拒绝'问题" - 将所有文件夹权限更改为读取,写入和修改!适用于所有用户。

0 个答案:

没有答案