赞
踩
想要安装certifi2023.11.17
pip install certifi version==2023.11.17,出现错误
- Attempting uninstall: certifi
- Found existing installation: certifi 2018.8.24
- ERROR: Cannot uninstall 'certifi'. It is a distutils installed project and thus we cannot accurately
- determine which files belong to it which would lead to only a partial uninstall.
尝试了pip install certifi --ignore-installed,收集的包是最新版,安装的仍然是2018.8.24
- Collecting certifi
- Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
- Using cached certifi-2024.2.2-py3-none-any.whl (163 kB)
- Installing collected packages: certifi
- Successfully installed certifi-2018.8.24
尝试卸载pip uninstall -y certifi,提示同样错误
- Found existing installation: certifi 2018.8.24
- ERROR: Cannot uninstall 'certifi'. It is a distutils installed project and thus we cannot accurately
- determine which files belong to it which would lead to only a partial uninstall.
尝试强制更新pip install certifi --upgrade --force-reinstall,同样错误
- Collecting certifi
- Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
- Using cached certifi-2024.2.2-py3-none-any.whl (163 kB)
- Installing collected packages: certifi
- Attempting uninstall: certifi
- Found existing installation: certifi 2018.8.24
- ERROR: Cannot uninstall 'certifi'. It is a distutils installed project and thus we cannot accurately
- determine which files belong to it which would lead to only a partial uninstall.
找到anaconda\install\Lib\site-packages文件夹,删除certifi文件夹,再安装pip install certifi --ignore-installed,又重新下回了2018.8.24版
- ollecting certifi
- Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
- Using cached certifi-2024.2.2-py3-none-any.whl (163 kB)
- Installing collected packages: certifi
- Successfully installed certifi-2018.8.24
再删除certifi文件夹,去pypi找到最新版certifi下载到anaconda\install\Lib\site-packages文件夹下,安装,pip install certifi-2024.2.2-py3-none-any.whl
- certifi is already installed with the same version as the provided wheel. Use --force-reinstall to force
- an installation of the wheel.
发现已安装该版本
尝试安装2023版本,pip install certifi version==2023.11.17,成功。
- Attempting uninstall: certifi
- Found existing installation: certifi 2024.2.2
- Uninstalling certifi-2024.2.2:
- Successfully uninstalled certifi-2024.2.2
- Successfully installed certifi-2023.11.17
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。