1、pip时报错:Defaulting to user installation because normal site-packages is not writeable
解决方法:在 pip install 后面加上 --user 即可,这个是权限不足引发的问题。如果还是不行则用镜像源,然后别忘了在镜像源的“install”后面加上“--user”。
比如下面这是豆瓣镜像源的例子:
pip install --user 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
2、pip时报错:ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='mirrors.cloud.tencent.com', port=443): Max retries exceeded with url:/pypi/packages/f1/0a/18755fa6aec794fd539b050beeaa905fa5c77c64356aa8bdecb62c01581a/virtualenv-20.23.0-py3-none-any.whl ((Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
解决办法:
见大佬博客的第四个解决办法:https://blog.csdn.net/happen_if/article/details/104294070?spm=1001.2014.3001.5506