This error is usually caused by pip not being able to find the module you want to install from the source library. Try using the following steps to solve this problem:
1. Check whether the module you want to install exists and make sure that the module name is correct;
2. Try to specify an accessible source repository using pip, using
pip install 库名 -i 源库地址
. For example,
pip install 库名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
;
3. If you are using a foreign source repository, you may need to set up a proxy, using
-proxy 某服务器地址:端口号
;
4. If SSL errors occur when using a foreign source repository, try using
--trusted-host 域名
to resolve them;
5. Try to install the whl file that you have downloaded locally. You can install it using
pip install 已下载的whl文件路径
.
If the above steps do not solve the problem, you are advised to try another version of python or give an error message and ask for help.
If the answer is helpful, please accept it.