安裝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