简体   繁体   中英

import Anaconda packages into sublime text 3 when using anaconda executable

I've the following problem, I cannot import any packages when using anaconda executable on sublime text 3, my sublime build file works fine as i can run code but import packages throws me an error:

    the system is building correctly because i can print this text but numpy or any other package cannot be imported
Traceback (most recent call last):
  File "C:\Users\alexa\AppData\Roaming\Sublime Text 3\import.py", line 4, in <module>
    import numpy
  File "C:\Users\alexa\Anaconda3\lib\site-packages\numpy\__init__.py", line 140, in <module>
    from . import _distributor_init
  File "C:\Users\alexa\Anaconda3\lib\site-packages\numpy\_distributor_init.py", line 34, in <module>
    from . import _mklinit
ImportError: DLL load failed: The specified module could not be found.
[Finished in 0.1s with exit code 1]
[cmd: ['C:\\Users\\alexa\\Anaconda3\\python', '-u', 'C:\\Users\\alexa\\AppData\\Roaming\\Sublime Text 3\\import.py']]
[dir: C:\Users\alexa\AppData\Roaming\Sublime Text 3]
[path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\alexa\AppData\Local\Microsoft\WindowsApps;]

找到了解决方案,刚刚在 Windows 10 C:\\Users\\Your_User_Name\\Anaconda3\\Library\\bin到我的系统变量中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM