File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 37
37
from . import core
38
38
except ImportError as e :
39
39
if os .name == 'nt' :
40
+ executable_path = os .path .abspath (os .path .dirname (sys .executable ))
40
41
raise ImportError (
41
- """NOTE: You may need to run \" set PATH=c:\python27\lib:%PATH%\"
42
- if you encounters \" mkldnn.dll not found\" errors. If you have python
43
- installed in other directory, replace \" c:\python27\lib" with your own
44
- directory. The original error is: \n """ + cpt .get_exception_message (e ))
42
+ """NOTE: You may need to run \" set PATH=%s;%%PATH%%\"
43
+ if you encounters \" DLL load failed\" errors. If you have python
44
+ installed in other directory, replace \" %s\" with your own
45
+ directory. The original error is: \n %s""" %
46
+ (executable_path , executable_path , cpt .get_exception_message (e )))
45
47
else :
46
48
raise ImportError (
47
49
"""NOTE: You may need to run \" export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH\"
You can’t perform that action at this time.
0 commit comments