越搞越晕了
Installing collected packages: pywin32, portalocker, iopath, layoutparser
Attempting uninstall: pywin32
Found existing installation: pywin32 223
Uninstalling pywin32-223:
Successfully uninstalled pywin32-223
Rolling back uninstall of pywin32
Moving to c:\users\dell\anaconda3\lib\site-packages\__pycache__\pythoncom.cpython-37.pyc
from C:\Users\Dell\AppData\Local\Temp\pip-uninstall-np_i9_4j\pythoncom.cpython-37.pyc
Moving to c:\users\dell\anaconda3\lib\site-packages\adodbapi
from c:\users\dell\anaconda3\lib\site-packages\~dodbapi
Moving to c:\users\dell\anaconda3\lib\site-packages\isapi
from c:\users\dell\anaconda3\lib\site-packages\~sapi
Moving to c:\users\dell\anaconda3\lib\site-packages\pythoncom.py
from C:\Users\Dell\AppData\Local\Temp\pip-uninstall-ryfjvxy2\pythoncom.py
Moving to c:\users\dell\anaconda3\lib\site-packages\pythonwin
from c:\users\dell\anaconda3\lib\site-packages\~ythonwin
Moving to c:\users\dell\anaconda3\lib\site-packages\pywin32-223-py3.7.egg-info
from c:\users\dell\anaconda3\lib\site-packages\~ywin32-223-py3.7.egg-info
Moving to c:\users\dell\anaconda3\lib\site-packages\win32\lib\
from c:\users\dell\anaconda3\lib\site-packages\win32\~ib
Moving to c:\users\dell\anaconda3\lib\site-packages\win32com
from c:\users\dell\anaconda3\lib\site-packages\~in32com
Moving to c:\users\dell\anaconda3\lib\site-packages\win32comext
from c:\users\dell\anaconda3\lib\site-packages\~in32comext
ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'c:\\users\\dell\\anaconda3\\Lib\\site-packages\\win32\\_win32sysloader.pyd'
Consider using the `--user` option or check the permissions.
不仅如此,pip也出问题了
(base) C:\Users\Dell>pip -v
Error processing line 7 of c:\users\dell\anaconda3\lib\site-packages\pywin32.pth:
Traceback (most recent call last):
File "c:\users\dell\anaconda3\lib\site.py", line 168, in addpackage
exec(line)
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pywin32_bootstrap'
Remainder of file ignored
好像前面卸载又重装pywin32没有成功,导致运行pip也报错