我尝试使用管理员权限运行以下脚本(在创建.bat文件并以管理员身份运行之后): http://enthought-dev.117412.n3.nabble.com/attachment/2871546/0/rename_mkl.py
运行脚本后,我收到以下错误:
C:\Windows\system32>python C:\Users\Adnane\Desktop\rename_mkl.py
C:\Users\Adnane\AppData\Local\Enthought\Canopy\User\Lib\site-packages
`Traceback (most recent call last):`
File "C:\Users\Adnane\Desktop\rename_mkl.py", line 124, in <module>
main()
File "C:\Users\Adnane\Desktop\rename_mkl.py", line 117, in main
if not is_DLL(path):
File "C:\Users\Adnane\Desktop\rename_mkl.py", line 49, in is_DLL
fi = open(path, 'rb')
IOError: [Errno 13] Permission denied:
'C:\\Users\\Adnane\\AppData\\Local\\Enthought\\Canopy\\User\\Lib\\site-packages'
在我安装了MKL numpy
而不是enthought canopy包中包含的原始numpy之后发生了错误(为了使用cvxopt package
,MKL numpy是必需的)。系统抱怨:
OMP: Error #15: Initializing libiomp5md.dll, but found mk2iomp5md.dll already in
itialized.
OMP: Hint: This means that multiple copies of the OpenMP runtime have been linke
d into the program. That is dangerous, since it can degrade performance or cause
incorrect results. The best thing to do is to ensure that only a single OpenMP
runtime is linked into the process, e.g. by avoiding static linking of the OpenM
P runtime in any library. As an unsafe, unsupported, undocumented workaround you
can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program
to continue to execute, but that may cause crashes or silently produce incorrec
t results. For more information, please see http://www.intel.com/software/produc
ts/support/.
我已经在enthought dev网站上阅读了运行这个rename_mkl.py
脚本应该解决问题,但是当我运行它时,我得到了上面提到的错误。
拜托,有什么解决方案吗?