Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

ImportError: cannot import name 'lookup_ops' from 'tensorflow.python.ops' (unknown location) #552

Open
Yirenjiayu opened this issue Sep 3, 2024 · 0 comments

Comments

@Yirenjiayu
Copy link

My model uses some new modules and then reports an error:ImportError: This version of TensorFlow Probability requires TensorFlow version >= 2.14; Detected an installation of version 2.10.0. Please upgrade TensorFlow to proceed.

After I upgraded tensorflow to 2.14, this original error is gone. But a new error appeared:
File "C:\Users\panyingying\.conda\envs\tensorflow\lib\site-packages\tensorflow_privacy\__init__.py", line 26, in <module> from tensorflow_privacy import v1 File "C:\Users\panyingying\.conda\envs\tensorflow\lib\site-packages\tensorflow_privacy\v1\__init__.py", line 28, in <module> from tensorflow_privacy.privacy.estimators.v1.dnn import DNNClassifier as DNNClassifierV1 File "C:\Users\panyingying\.conda\envs\tensorflow\lib\site-packages\tensorflow_privacy\privacy\estimators\v1\dnn.py", line 19, in <module> from tensorflow_privacy.privacy.estimators.v1 import head as head_lib File "C:\Users\panyingying\.conda\envs\tensorflow\lib\site-packages\tensorflow_privacy\privacy\estimators\v1\head.py", line 18, in <module> from tensorflow.python.ops import lookup_ops # pylint: disable=g-direct-tensorflow-import ImportError: cannot import name 'lookup_ops' from 'tensorflow.python.ops' (unknown location)
4c7a8587696045fec7af726bfa5bd76b

Has anyone else encountered this error? Please help me!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant