Could not find a version that satisfies the requirement tensorflow-解决方法转载
使用命令【pip install tensorflow -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com】即可解决
链接: https://blog.csdn.net/weixin_42001089/article/details/84403842.
用pip安装tensorflow时出现:THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE-解决方法转载
1.使用命令【pip install --upgrade tensorflow】即可解决
链接: https://blog.csdn.net/lincoco49/article/details/85381383.
2.使用命令【pip install --upgrade tensorflow --default-timeout=1000 gensim】即可解决
链接: https://blog.csdn.net/weixin_39082274/article/details/104384862.
ERROR: Could not find a version that satisfies the requirement cPickle (from versions: none)-解决方法转载
因为用的是python3,但是这个包是基于python2的
解决办法:修改为【import _pickle as cPickle 】,使用该方式使用cPickle即可解决
链接: https://blog.csdn.net/qq1437715969/article/details/104482563.
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow 2.4.1 requires numpy~=1.19.2, but you have numpy 1.16.0 which is incompatible.
tensorflow-cpu 2.3.0rc2 requires tensorboard<2.3.0,>=2.2.0, but you have tensorboard 2.5.0 which is incompatible.
tensorflow-cpu 2.3.0rc2 requires tensorflow-estimator<2.4.0,>=2.3.0rc0, but you have tensorflow-estimator 2.4.0 which is incompatible.
pandas 1.2.1 requires numpy>=1.16.5, but you have numpy 1.16.0 which is incompatible.
解决方案【pip install XXX==版本】
调试代码时遇到问题的解决方法:tensorflow和protobuf 版本不对应,于是修改为tensorflow 1.13.0rc1,protobuf 3.6.1。
现在遇到的问题:AttributeError: module ‘keras_applications’ has no attribute ‘set_keras_submodules’