[error scenario]
(1) Pycharm version: pycharm 2021.2.2 (Community Edition)
(2)Python Interpret:Anaconda3(64-bit)
(3)Python 3.8.11
(4)tensorflow 2.3
When using RNN for text classification experiment, the following import statement at the beginning of the program makes an error:
import tensorflow_datasets as tfds
[solution]
Select the menu file -> Open the settings dialog box, expand the project: [current project name] item in the left panel, select the python interpret item, and select the “+” icon in the right panel to open the available packages dialog box. The settings dialog box is shown in the following figure:
Enter tensorflow datasets in the search bar at the top of the available packages dialog box. After the tensorflow datasets module name appears in the list below the search bar, select it, and then click the install package button at the bottom to wait for the installation to complete. [note] the middle line of the package name here is a middle line, not an underscore, but an underscore in the front and back import statements.
Read More:
- Tensorflow import Error: ImportError: libcuda.so.1: cannot open shared object file: No such file or dire
- How to Solve Python Importerror: DLL load failed: unable to find the specified program using tensorflow
- How to Solve Pychart configuration import torch error
- Raspberry pie Use PCA9685() Error: [Errno 121] Remote I/O error
- Django Issues: TypeError: “Settings” object is irreversible
- [Solved] Pycharm Use pip to install package error: no such option –build-dir
- [Solved] Python matplotlib Error: RuntimeError: In set_size: Could not set the fontsize…
- Keras import package error: importerror: cannot import name ‘get_ config‘
- Pychar can’t connect to Python console, but it can run. Py file, and Anaconda’s command line can run Python command
- [Solved] Pycham Error: non zero exit code (2)
- [Solved] ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE
- [Solved] Pycharm from xx import xx Error: Unresolved reference
- [Solved] R Error: Python module tensorflow.keras was not found.
- [How to Solve] ImportError: No module named typing
- ModuleNotFoundError: No module named ‘tensorflow.python’ And the pits encountered after installation
- How to Solve Turtle_tf Error in ROS
- [Solved] Selenium.common.exceptions.WebDriverException: Message: newSession
- Conda Install Library Error: failed with initial frozen solve. Retrying with flexible solve.
- Change the Python installation path in Pycharm
- [Solved] django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.Did you install mysqlclie