TensorFlow报错:Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository……

综合网上查到的解决方案和自己的试验:
TODO1:pip install --upgrade distribute

发现报错ImportError: No module named _markerlib
因此为了解决这个问题TODO2:easy_install distribute

报错AttributeError: ‘NoneType’ object has no attribute ‘clone’
之后查呀查,在https://stackoverflow.com/questions/5178535/easy-install-libmysqld-dev-error-nonetype-object-has-no-attribute-clone找到了方法
TODO3:sudo easy_install -U setuptools
这个方法顺利成功,然后再依次执行之前的指令,之后tensorflow运行就不会报那个错误啦


本文详细介绍了在安装TensorFlow过程中遇到的错误:“Versioningforthisprojectrequireseitheransdisttarball,oraccesstoanupstreamgitrepository...”,并提供了有效的解决步骤。首先尝试使用pip升级distribute,但遇到模块导入错误。随后通过easy_install尝试解决问题,最终通过更新setuptools成功解决了TensorFlow的安装问题。
752





