成功解决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
|
7月前
|
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文件的所在路径  
91 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两个错误
349 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)
136 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
Can‘t exec “autopoint“: 没有那个文件或目录 at /usr/share/autoconf/Autom4te/FileUtils.pm line 345.
Can‘t exec “autopoint“: 没有那个文件或目录 at /usr/share/autoconf/Autom4te/FileUtils.pm line 345.
414 0
Can‘t exec “aclocal“: 没有那个文件或目录 at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
Can‘t exec “aclocal“: 没有那个文件或目录 at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
270 0
|
算法框架/工具 Caffe
File "/usr/local/lib/python3.5/site-packages/dateutil/rrule.py", line 55 raise ValueError
File "/usr/local/lib/python3.5/site-packages/dateutil/rrule.py", line 55 raise ValueError
90 0
ld: file not found: python.exe报错解决
ld: file not found: python.exe报错解决
132 0
|
Python
WARNING: Ignoring invalid distribution -ip (e:\python\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (e:\python\lib\site-packages)
663 0
WARNING: Ignoring invalid distribution -ip (e:\python\lib\site-packages)