ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context' (/home/bim/anaconda3/envs/mask_rcnn_tf2/lib/python3.7/site-packages/tensorflow/python/eager/context.py)

ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context' (/home/bim/anaconda3/envs/mask_rcnn_tf2/lib/python3.7/site-packages/tensorflow/python/eager/context.py)

pip install keras==2.3.1
(mask_rcnn_tf2) bim@bim-PowerEdge-R730:~/project/object_detection/pythons/Mask_RCNN/samples/coco$ pip install keras==2.3.1
Collecting keras==2.3.1
  Using cached Keras-2.3.1-py2.py3-none-any.whl (377 kB)
Collecting keras-applications>=1.0.6
  Using cached Keras_Applications-1.0.8-py3-none-any.whl (50 kB)
Requirement already satisfied: keras-preprocessing>=1.0.5 in /home/bim/anaconda3/envs/mask_rcnn_tf2/lib/python3.7/site-packages (from keras==2.3.1) (1.1.2)
Requirement already satisfied: h5py in /home/bim/anaconda3/envs/mask_rcnn_tf2/lib/python3.7/site-packages (from keras==2.3.1) (2.10.0)
Requirement already satisfied: scipy>=0.14 in /home/bim/anaconda3/envs/mask_rcnn_tf2/lib/python3.7/site-packages (from keras==2.3.1) (1.4.1)
Requirement already satisfied: six>=1.9.0 in /home/bim/anaconda3/envs/mask_rcnn_tf2/lib/python3.7/site-packages (from keras==2.3.1) (1.16.0)
Collecting pyyaml
  Using cached PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (596 kB)
Requirement already satisfied: numpy>=1.9.1 in /home/bim/anaconda3/envs/mask_rcnn_tf2/lib/python3.7/site-packages (from keras==2.3.1) (1.18.5)
Installing collected packages: pyyaml, keras-applications, keras
  Attempting uninstall: keras
    Found existing installation: keras 2.9.0
    Uninstalling keras-2.9.0:
      Successfully uninstalled keras-2.9.0
Successfully installed keras-2.3.1 keras-applications-1.0.8 pyyaml-6.0
(mask_rcnn_tf2) bim@bim-PowerEdge-R730:~/project/object_detection/pythons/Mask_RCNN/samples/coco$ 
(mask_rcnn_tf2) bim@bim-PowerEdge-R730:~/project/object_detection/pythons/Mask_RCNN/samples/coco$ 

 

 

 

####################

posted @ 2022-05-17 22:30  西北逍遥  阅读(1234)  评论(0编辑  收藏  举报