- 博客(7)
- 收藏
- 关注
原创 AttributeError: module ‘tensorflow‘ has no attribute ‘logging‘
将tf.logging替换成tf.compat.v1.logging。可能使用的是tensorflow 2.1。
2024-03-13 16:25:14
840
原创 AttributeError: module ‘tensorflow._api.v2.train‘ has no attribute ‘Optimizer‘
将tf.train.Optimizer改为tf.kears.optimizers.Optimizer。
2024-03-13 16:21:52
1220
原创 jupyter notebook AttributeError: module ‘numpy‘ has no attribute ‘float‘. `np.float` was a deprecate
numpy版本问题,先卸载,pip uninstall numpy。再安装 pip install -U numpy==1.23.5。
2024-03-11 12:07:04
1117
原创 ModuleNotFoundError: No module named ‘sanic‘
pip install sanic sanic-ext
2024-03-10 19:05:09
592
1
原创 ModuleNotFoundError: No module named ‘tensorflow‘
接着出现这种情况,可能原因是:1.python版本过高或过低;
2024-03-10 16:37:41
794
1
原创 ImportError: DLL load failed while importing _ssl: 找不到指定的模块。 Couldn‘t connect to console process.
找到E:\Anaconda\envs\pytorch2023\Library\bin路径下的两个文件(可能中间数字有变化)复制到E:\Anaconda\envs\pytorch2023\DLLs。
2024-03-09 16:06:40
816
6
原创 jupyter notebook出现ImportError: Matplotlib requires numpy>=1.20; you have 1.18.5pympl‘
numpy版本过低需要更新。
2024-03-07 14:58:21
1078
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人