|
发表于 2022-9-6 16:32:23
|
显示全部楼层
python3.10用cmd安装直接pip install chardet会WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.报错。
从安装目录Python\Python310\Scripts可以看到pip有三个,试了一下pip3和pip一样报错,但是用pip3.10就成功下载安装并且运行成功了……如果第一次使用pip3.10提示WARNING: You are using pip version 21.2.4; however, version 22.2.2 is available.
You should consider upgrading via the 'C:\Users\37580\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.
那就按按提示的要求输入C:\Users\37580>C:\Users\37580\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip
更新一下pip之后再用pip3.10 install chardet就可以成功安装了
|
|