openai / gpt-2

Code for the paper "Language Models are Unsupervised Multitask Learners"
https://openai.com/blog/better-language-models/
Other
22.57k stars 5.53k forks source link

The specified module was not found #261

Open Sylive147 opened 4 years ago

Sylive147 commented 4 years ago

This exception occurred after I change TensorFlow version into 1.13.1

Traceback (most recent call last): File "C:\Users\L\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\L\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\L\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "C:\Users\L\AppData\Local\Programs\Python\Python38\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\Users\L\AppData\Local\Programs\Python\Python38\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed while importing _pywrap_tensorflow_internal: 找不到指定的模块。

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "src/interactive_conditional_samples.py", line 7, in import tensorflow as tf File "C:\Users\L\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow__init__.py", line 24, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "C:\Users\L\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python__init__.py", line 49, in from tensorflow.python import pywrap_tensorflow File "C:\Users\L\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in raise ImportError(msg) ImportError: Traceback (most recent call last): File "C:\Users\L\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\L\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\L\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "C:\Users\L\AppData\Local\Programs\Python\Python38\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\Users\L\AppData\Local\Programs\Python\Python38\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed while importing _pywrap_tensorflow_internal: 找不到指定的模块。

Failed to load the native TensorFlow runtime.

I can only find "_pywrap_tensorflow_internal.pyd" this path.

ftalamo commented 4 years ago

i have same problem with modules model, sample, encoder.. I'll try to import wtih "." and without it.

OneDirection67 commented 4 years ago

I met the same issue,have you solve it?

ftalamo commented 3 years ago

Not yet