找不到cPickle+安装tensorflow

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’

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值