-
Notifications
You must be signed in to change notification settings - Fork 765
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
Import "tensorflow.keras" could not be resolved #3753
Comments
I think The
whereas pylance would look for it here:
@bschnurr has advice on how to get pylance to see where it is: |
@rchiodo the comment you linked does nothing, it says that anything name under the |
whats your version of tensorflow? try the latest |
I installed version 2.10 using mambaforge on WSL2 Ubuntu, it works now. |
Try keras only without using tensorflow before it |
With keras3 there is a new way to import, the documentation has examples for layers, models, optimizers, applications Just do below with no other imports:
For Dense you would do
Example:
|
Environment data
Code Snippet
Repro Steps
Expected behavior
Imports should be resolved
Actual behavior
Import "tensorflow.keras" could not be resolvedPylance[reportMissingImports](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportMissingImports)
Logs
pylance.log
The text was updated successfully, but these errors were encountered: