ctrl+c结束cmd命令
安装tensorflow
看这篇
链接:https://blog.csdn.net/Cs_hnu_scw/article/details/79695347
升级tensorflow到最新版本
但是速度很慢
pip install -U tensorflow
pip3 install --upgrade tensorflow
清华园
i https://pypi.tuna.tsinghua.edu.cn/simple
清华园安装
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow
下载过程中出现six不能卸载情况
pip3 install tensorflow –ignore-installed six
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow --ignore-installed six
解决思路
由于环境原因,无法安装程序包错误:[WinError 5]拒绝访问
解决方法
考虑使用“–user”选项或检查权限
最终可行口令
pip3 install --user -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow --ignore-installed six
最后结果
WARNING: The script f2py.exe is installed in
‘C:\Users\10755\AppData\Roaming\Python\Python35\Scripts’ which is not
on PATH. Consider adding this directory to PATH or, if you prefer to
suppress this warning, use --no-warn-script-location. WARNING: The
script wheel.exe is installed in
‘C:\Users\10755\AppData\Roaming\Python\Python35\Scripts’ which is not
on PATH. Consider adding this directory to PATH or, if you prefer to
suppress this warning, use --no-warn-script-location. WARNING: The
scripts easy_install-3.5.exe and easy_install.exe are installed in
‘C:\Users\10755\AppData\Roaming\Python\Python35\Scripts’ which is not
on PATH. Consider adding this directory to PATH or, if you prefer to
suppress this warning, use --no-warn-script-location. WARNING: The
scripts pyrsa-decrypt.exe, pyrsa-encrypt.exe, pyrsa-******.exe,
pyrsa-priv2pub.exe, pyrsa-sign.exe and pyrsa-verify.exe are installed
in ‘C:\Users\10755\AppData\Roaming\Python\Python35\Scripts’ which is
not on PATH. Consider adding this directory to PATH or, if you
prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script markdown_py.exe is installed in
‘C:\Users\10755\AppData\Roaming\Python\Python35\Scripts’ which is not
on PATH. Consider adding this directory to PATH or, if you prefer to
suppress this warning, use --no-warn-script-location. WARNING: The
script chardetect.exe is installed in
‘C:\Users\10755\AppData\Roaming\Python\Python35\Scripts’ which is not
on PATH. Consider adding this directory to PATH or, if you prefer to
suppress this warning, use --no-warn-script-location. WARNING: The
script google-oauthlib-tool.exe is installed in
‘C:\Users\10755\AppData\Roaming\Python\Python35\Scripts’ which is not
on PATH. Consider adding this directory to PATH or, if you prefer to
suppress this warning, use --no-warn-script-location. WARNING: The
script tensorboard.exe is installed in
‘C:\Users\10755\AppData\Roaming\Python\Python35\Scripts’ which is not
on PATH. Consider adding this directory to PATH or, if you prefer to
suppress this warning, use --no-warn-script-location. WARNING: The
scripts estimator_ckpt_converter.exe, saved_model_cli.exe,
tensorboard.exe, tf_upgrade_v2.exe, tflite_convert.exe, toco.exe and
toco_from_protos.exe are installed in
‘C:\Users\10755\AppData\Roaming\Python\Python35\Scripts’ which is not
on PATH. Consider adding this directory to PATH or, if you prefer to
suppress this warning, use --no-warn-script-location.
Successfully installed absl-py-0.10.0 astunparse-1.6.3
cachetools-4.1.1 certifi-2020.6.20 chardet-3.0.4 gast-0.3.3
google-auth-1.21.3 google-auth-oauthlib-0.4.1 google-pasta-0.2.0
grpcio-1.32.0 h5py-2.10.0 idna-2.10 importlib-metadata-2.0.0
keras-preprocessing-1.1.2 markdown-3.2.2 numpy-1.18.5 oauthlib-3.1.0
opt-einsum-3.3.0 protobuf-3.13.0 pyasn1-0.4.8 pyasn1-modules-0.2.8
requests-2.24.0 requests-oauthlib-1.3.0 rsa-4.6 setuptools-50.3.0
six-1.15.0 tensorboard-2.3.0 tensorboard-plugin-wit-1.7.0
tensorflow-2.3.1 tensorflow-estimator-2.3.0 termcolor-1.1.0
urllib3-1.25.10 werkzeug-1.0.1 wheel-0.35.1 wrapt-1.12.1 zipp-1.2.0