'FileNotFoundError: Could not find module when I use pycharm
my code can work previously,tensorflow-gpu==2.4.0,but I lowered the version of six to 1.15.0, and then the code started to report errors.
I checked the six version corresponding to tensorflow-gpu2.4.0 is 1.15.0. The corresponding scipy==1.6.2, numpy==1.19.2, but the code still reports an error, I don't know how to solve it, can someone help me?
File "D:\anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\keras\__init__.py", line 27, in <module>
from tensorflow.python.keras import models
File "D:\anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\keras\models.py", line 26, in <module>
from tensorflow.python.keras.engine import functional
File "D:\anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\keras\engine\functional.py", line 38, in <module>
from tensorflow.python.keras.engine import training as training_lib
File "D:\anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\keras\engine\training.py", line 52, in <module>
from tensorflow.python.keras.engine import data_adapter
File "D:\anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\keras\engine\data_adapter.py", line 61, in <module>
from scipy import sparse as scipy_sparse # pylint: disable=g-import-not-at-top
File "D:\anaconda\envs\tensorflow\lib\site-packages\scipy\__init__.py", line 136, in <module>
from . import _distributor_init
File "D:\anaconda\envs\tensorflow\lib\site-packages\scipy\_distributor_init.py", line 59, in <module>
WinDLL(os.path.abspath(filename))
File "D:\anaconda\envs\tensorflow\lib\ctypes\__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'D:\anaconda\envs\tensorflow\lib\site-packages\scipy\.libs\libbanded5x.CBCBXIAYFUWOYCSBXUA2BT6W76FYX4C7.gfortran-win_amd64.dll' (or one of its dependencies).
Try using the full path with constructor syntax.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
