ModuleNotFoundError: No module named ‘google‘

This error indicates that your code encountered a module import problem during execution. According to the error message, the problem seems to occur when importing the `google.protobuf` module, prompting that the `google` module cannot be found.

One possible way to solve this problem is to ensure that the `protobuf` library is installed in your environment, since `google.protobuf` is actually part of the `protobuf` library.

You can try the following steps to resolve this issue:

1. Open a terminal or command prompt window.

2. To activate your Conda environment, you can run:
   ```
   conda activate wly
   ```
   (if `wly` is the name of your environment)

3. Install the `protobuf` library and run:
   ```
   conda install protobuf
   ```
   or
   ```
   pip install protobuf
   ```

4. After ensuring the installation is successful, try running your code again.

If your code still reports an error, you may need to check other issues, such as environment configuration, dependent library versions, etc. If the problem persists, it is recommended to provide more information about your environment, code and dependent library versions so that I can provide more specific help.

 

Guess you like

Origin blog.csdn.net/qq_25368751/article/details/132586964