目录
解决问题
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'
经过查询发现,当前文件的确已经被当前打开,需要先关闭掉,再去执行对应的命令即可!