Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant