Enter pip install tensorflow in the terminal, and the error is as follows, even if you use pip3
ERROR: Could not find a version that satisfies the requirement tensorflow
ERROR: No matching distribution found for tensorflow
The solution is as follows:
Use the mirror source of Douban, enter in the terminal:
pip3 install tensorflow-hub -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
it worked
expand:
If you want to install other packages, such as gym, you can install it with the following statement, and replace the installation package with the package name you want to install gym
pip install <软件包> -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com