Posted by Jeremy Song on
2021-07-27
Estimated Reading Time 2 Minutes
Words 436 In Total
Viewed Times
背景
今天在使用 pip install pip -U 命令升级 pip 时没太注意。执行完之后界面好像报了一个错误,当时没在意。结果在安装 mysql 驱动的时候发现报错了。报错信息如下:
1 2 3 4 5 6 7
Traceback (most recent call last): File "e:\program files\python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "e:\program files\python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "E:\Program Files\Python39\Scripts\pip.exe\__main__.py", line 4, in <module> ModuleNotFoundError: No module named 'pip'