只需要将阿里云的源改为信任源即可,在虚拟环境中输入如下命令:

pip install --upgrade tensorflow -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com