pcharm中使用命令出现下面情况是什么原因 Traceback (most recent call last): File "D:\python\Python\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "D:\python\Python\lib\runpy.py", line 86, in run_code exec(code, run_globals) File "D:\python\Python\Scripts\pip.exe_main.py", line 7, in <module> File "D:\python\Python\lib\site-packages\pip_internal\cli\main.py", line 79, in main return command.main(cmd_args) File "D:\python\Python\lib\site-packages\pip_internal\cli\base_command.py", line 101, in main return self._main(args) File "D:\python\Python\lib\site-packages\pip_internal\cli\base_command.py", line 224, in _main return run(options, args) TypeError: with_cleanup.<locals>.wrapper() takes 1 positional argument but 2 were given
时间: 2023-06-30 15:09:58 浏览: 123
这个错误通常是由于pip版本更新造成的。解决方法是升级pip版本或者使用pip3代替pip。可以尝试在命令行中使用以下命令来升级pip:
```
python -m pip install --upgrade pip
```
或者在命令行中使用pip3代替pip来执行命令。
阅读全文