Discuss / Python / 还是有问题啊

还是有问题啊

Topic source

pip install --upgrade pip之后提示 Exception: Traceback (most recent call last): File "C:\Python34\lib\shutil.py", line 371, in _rmtree_unsafe os.unlink(fullname) PermissionError: [WinError 5] 拒绝访问。: 'C:\Users\ADMINI~1\AppData\Local \Temp\pip-d1afcnlg-uninstall\python34\scripts\pip.exe'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Python34\lib\site-packages\pip\basecommand.py", line 232, in main logger.critical('Operation cancelled by user') File "C:\Python34\lib\site-packages\pip\commands\install.py", line 347, in r n ensure_dir(options.target_dir) File "C:\Python34\lib\site-packages\pip\req\req_set.py", line 560, in instal

 missing_requested = sorted(

File "C:\Python34\lib\site-packages\pip\req\req_install.py", line 680, in co mit_uninstall File "C:\Python34\lib\site-packages\pip\req\req_uninstall.py", line 153, in ommit self.save_dir = None File "C:\Python34\lib\site-packages\pip_vendor\retrying.py", line 49, in wr pped_f return Retrying(dargs, **dkw).call(f, args, **kw) File "C:\Python34\lib\site-packages\pip_vendor\retrying.py", line 212, in c ll raise attempt.get() File "C:\Python34\lib\site-packages\pip_vendor\retrying.py", line 247, in g t six.reraise(self.value[0], self.value[1], self.value[2]) File "C:\Python34\lib\site-packages\pip_vendor\six.py", line 659, in rerais

 raise value

File "C:\Python34\lib\site-packages\pip_vendor\retrying.py", line 200, in c ll attempt = Attempt(fn(args, **kwargs), attemptnumber, False) File "C:\Python34\lib\site-packages\pip\utils_init.py", line 61, in rmtr e def import_or_raise(pkg_or_module_string, ExceptionType, args, **kwargs):

File "C:\Python34\lib\shutil.py", line 478, in rmtree return rmtreeunsafe(path, onerror) File "C:\Python34\lib\shutil.py", line 368, in _rmtree_unsafe _rmtree_unsafe(fullname, onerror) File "C:\Python34\lib\shutil.py", line 368, in _rmtree_unsafe _rmtree_unsafe(fullname, onerror) File "C:\Python34\lib\shutil.py", line 373, in _rmtree_unsafe onerror(os.unlink, fullname, sys.exc_info()) File "C:\Python34\lib\site-packages\pip\utils__init.py", line 73, in rmtr e_errorhandler if e.errno != errno.EEXIST: PermissionError: [WinError 5] 拒绝访问。: 'C:\Users\ADMINI~1\AppData\Local \Temp\pip-d1afcnlg-uninstall\python34\scripts\pip.exe'


  • 1

Reply