Recently, I was playing wechat Turing robot, but I installed some libraries, reported errors, and searched the Internet for a long time. I summarized two methods and recorded them
method 1:
Install manually, go directly to the official website and download the python library you need locally
Put it in the python installation path, C: \ users \ blue silver heart \ appdata \ local \ programs \ Python \ Python 37 \ lib \ venv \ scripts
PIP install – U library name
method 2:
Install in pycharm, but because many libraries are foreign and the domestic connection is not very friendly, some library installations will fail or fail to connect directly due to unstable network, such as
Solution
PIP source for domestic, I personally think Tsinghua source is relatively stable
Tsinghua source
https://pypi.tuna.tsinghua.edu.cn/simple/
Install again, successful
last
In comparison, it’s easier to install Python libraries automatically in Python. Manual installation is too cumbersome. I don’t like it
Similar Posts:
- Error in installing Python package — readtimeouterror
- [Solved] ImportError: No module named tensorflow
- Anaconda uses CONDA to connect to the network. Error: http 000 connection failed for URL
- TypeError at /index.html/ ‘method’ object is not subscriptable
- Importerror: no module named BS4 error resolution
- Pychar can’t install the third-party library, the solution of error code non zero exit code (1)
- [Solved] DeprecationWarning: the imp module is deprecated in favour of importlib
- [Solved] QT operate error: exited with code – 1073741515
- Mac pychar import Jieba error resolution
- How to find real IP in CDN