昨天试了一些方法不行,今天解决了,记录一下
终端运行:
pip install pyserial
提示警告:
WARNING: You are using pip version 21.2.4; however, version 22.1 is available. You should consider upgrading via the 'C:UsersLenovoAppDataLocalProgramsPythonPython310python.exe -m pip install --upgrade pip' command.
直接
python -m pip install --upgrade
后依旧提示警告 版本不对
之后:
python -m pip install --upgrade pip Starting Python ... Requirement already satisfied: pip in e:programamesiminstallamesimsyspythonwin64libsite-packages (21.3.1)
pip install --target=e:programamesiminstallamesimsyspythonwin64libsite-package s pyserial
成功



