更新 Tensorflow 库 和 anaconda

anaconda : 

                更新所有库:
                        conda update --all

tensorflow:

                查看版本:

                           import tensorflow as tf

                           tf.__version__

                更新:

                         pip3 install --upgrade tensorflow


安装可能出现的问题

Cannot remove entries from nonexistent file

如果在安装 TensorFlow 的时候出现类似 Cannot remove entries from nonexistent file c:\users\li\anaconda3\lib\site-packages\easy-install.pth 的错误,那么可以参考Cannot remove entries from nonexistent #622 和 osx 10.11 installation issues #135,里面说了好多种解决办法,我在这里介绍一种方法:在 pip3 install --upgrade tensorflow-gpu 之前先执行pip install --upgrade --ignore-installed setuptools 。



猜你喜欢

转载自blog.csdn.net/weixin_38663832/article/details/80563566