成功解决PermissionError: [WinError 5] 拒绝访问 \lib\\site-packages\\h5py\\_errors.cp38-win_amd64.pyd‘

简介: 成功解决PermissionError: [WinError 5] 拒绝访问 \lib\\site-packages\\h5py\\_errors.cp38-win_amd64.pyd‘


目录

解决问题

解决思路

解决方法


解决问题

Traceback (most recent call last):

 File "E:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\cli\base_command.py", line 228, in _main

   status = self.run(options, args)

 File "E:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\commands\uninstall.py", line 89, in run

   uninstall_pathset = req.uninstall(

 File "E:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\req\req_install.py", line 686, in uninstall

   uninstalled_pathset.remove(auto_confirm, verbose)

 File "E:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\req\req_uninstall.py", line 394, in remove

   moved.stash(path)

 File "E:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\req\req_uninstall.py", line 283, in stash

   renames(path, new_path)

 File "E:\ProgramData\Anaconda3\lib\site-packages\pip\_internal\utils\misc.py", line 352, in renames

   shutil.move(old, new)

 File "E:\ProgramData\Anaconda3\lib\shutil.py", line 806, in move

   os.unlink(src)

PermissionError: [WinError 5] 拒绝访问。: 'e:\\programdata\\anaconda3\\lib\\site-packages\\h5py\\_errors.cp38-win_amd64.pyd'

解决思路

拒绝访问,权限问题导致!

解决方法

首先检查,该文件是否已经被打开

发现e:\\programdata\\anaconda3\\lib\\site-packages\\h5py\\_errors.cp38-win_amd64.pyd'

经过查询发现,当前文件的确已经被当前打开,需要先关闭掉,再去执行对应的命令即可!


相关文章
|
编解码 C++ Python
成功解决LINK : fatal error LNK1181: 无法打开输入文件“avdevice.lib” error: command 'D:\\Program Files (x86)\\Micr
成功解决LINK : fatal error LNK1181: 无法打开输入文件“avdevice.lib” error: command 'D:\\Program Files (x86)\\Micr
成功解决LINK : fatal error LNK1181: 无法打开输入文件“avdevice.lib” error: command 'D:\\Program Files (x86)\\Micr
|
5月前
|
安全 数据安全/隐私保护 开发者
【Python】 已解决:ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: ‘e:\anaconda\i
【Python】 已解决:ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: ‘e:\anaconda\i
756 11
【Python】 已解决:ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: ‘e:\anaconda\i
|
4月前
|
iOS开发
解决Error (Xcode): File not found:XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
解决Error (Xcode): File not found:XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
62 0
|
5月前
|
UED Python
【Python】已解决:FileNotFoundError: [Errno 2] No such file or directory: ‘D:\1. PDF’
【Python】已解决:FileNotFoundError: [Errno 2] No such file or directory: ‘D:\1. PDF’
206 0
|
Python
ERROR: file or directory not found: xx.py
​ 1、问题出现原因 在vscode中已导入pytest框架,做自动化demo小测试,运行Python文件一直出现如题错误,截图如下: ERROR: file or directory not found: xx.py  2、解决办法 1)直接把该文件移到当前主目录下,放在PYTHON-STUDY下 2)VSCode中右键tuopan.py文件,选择[在集成终端中打开],或者通过CD命令进入到tuopan.py文件所在目录 然后输入以下命令即可: 注:上述命令不是换行,在d:/前有空格 ,第一行信息为python所在安装路径,空格后的换行为运行的python文件的所在路径  
173 0
|
Python
解决loaded more than 1 DLL from .libs和No metadata found in lib\site-packages两个错误
解决loaded more than 1 DLL from .libs和No metadata found in lib\site-packages两个错误
608 0
|
JavaScript
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
200 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
|
C语言 Python Windows
gcc: error: /FIPython.h: File o directory non esistente
gcc: error: /FIPython.h: File o directory non esistente
119 0
cl.exe is unable to create an executable file
cl.exe is unable to create an executable file
135 0
(Anaconda)ImportError: DLL load failed while importing win32file: 找不到指定的模块。
(Anaconda)ImportError: DLL load failed while importing win32file: 找不到指定的模块。
(Anaconda)ImportError: DLL load failed while importing win32file: 找不到指定的模块。