You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2021/02/11 07:18:47 UTC

[GitHub] [incubator-mxnet] 422926799 commented on pull request #18362: fix windows dll search path in python 3.8

422926799 commented on pull request #18362:
URL: https://github.com/apache/incubator-mxnet/pull/18362#issuecomment-777247115


   The reason for this problem is: Python 3.8 changed the dynamic link library (DLL) loading rules under Windows.
   
   The new rules improve security. By default, DLL dependencies can only be loaded from Trusted Locations, which avoids security risks such as DLL hijacking to a certain extent.
   
   Reference link:https://github.com/ynyyn/Miniblink-Python-SimpleDemo/issues/4
   ```python
   import os
   mxnetpath=sys.path[6]+"\\mxnet\\libmxnet.dll"
   os.add_dll_directory(mxnetpath)
   import mxnet
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org