pip安装TensorFlow

安装TensorFlow报错,出现了了两个标红:
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

第一个问题:
pip install PyHamcrest -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
第二个问题:
pip install -U --ignore-installed wrapt enum34 simplejson netaddr
然后再次安装TensorFlow:
pip --default-timeout=1000 install tensorflow -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

posted @ 2021-01-02 21:49  轩辕吊雷  阅读(1541)  评论(0编辑  收藏  举报