"TensorLayer does not support Tensorflow version o

网友投稿 310 2022-08-25

"TensorLayer does not support Tensorflow version o

今天在运行程序的时候,出现了下面的错误:

/Users/admin/anaconda3/envs/defocus/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:535: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)])Traceback (most recent call last): File "main.py", line 2, in from utils import * File "/Users/admin/Documents/项目/散焦估计/DMENet/utils.py", line 2, in import tensorlayer as tl File "/Users/admin/anaconda3/envs/defocus/lib/python3.6/site-packages/tensorlayer/__init__.py", line 27, in "TensorLayer does not support Tensorflow version older than 2.0.0.\n"RuntimeError: TensorLayer does not support Tensorflow version older than 2.0.0.Please update Tensorflow with: - `pip install --upgrade tensorflow` - `pip install --upgrade tensorflow-gpu`

解决方法

pip install Tensorlayer==1.11.1

把tensorlayer降降级就行了。

参考文献

[1]. "TensorLayer does not support Tensorflow version older than 2.0.0. ​​https://github.com/tensorlayer/openpose-plus/issues/203​​

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:flask中使用ajax 处理前端请求,结果展示在同一页面,不点击页面不展示
下一篇:[leetcode] 678. Valid Parenthesis String
相关文章

 发表评论

暂时没有评论,来抢沙发吧~