【阿里云复仇记2】内容安全识别(鉴黄)
律动侠
2025年04月01日 20:38

老师我换了3.9和3.12的环境都启动不了,前端能起来,后端不行:

​

​(envs) D:\Py_Project\内容检测工具(阿里云复仇记2)>python server.py

Traceback (most recent call last):

File "D:\Py_Project\内容检测工具(阿里云复仇记2)\envs\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 73, in <module>

from tensorflow.python._pywrap_tensorflow_internal import *

ImportError: DLL load failed while importing _pywrap_tensorflow_internal: 动态链接库(DLL)初始化例程失败。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "D:\Py_Project\内容检测工具(阿里云复仇记2)\server.py", line 4, in <module>

import tensorflow as tf

File "D:\Py_Project\内容检测工具(阿里云复仇记2)\envs\lib\site-packages\tensorflow\__init__.py", line 40, in <module>

from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow # pylint: disable=unused-import

File "D:\Py_Project\内容检测工具(阿里云复仇记2)\envs\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 88, in <module>

raise ImportError(

ImportError: Traceback (most recent call last):

File "D:\Py_Project\内容检测工具(阿里云复仇记2)\envs\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 73, in <module>

from tensorflow.python._pywrap_tensorflow_internal import *

ImportError: DLL load failed while importing _pywrap_tensorflow_internal: 动态链接库(DLL)初始化例程失败。

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors for some common causes and solutions.

If you need help, create an issue at https://github.com/tensorflow/tensorflow/issues and include the entire stack trace above this error message.