Skip to content Skip to sidebar Skip to footer

How To Configure Sublime Text 3 For Anaconda?

I downloaded and installed Anaconda 2 from Anaconda Home. I registered Anaconda as my default Python 2, but I didn't add it to my PATH. After this, I started the Anaconda Prompt a

Solution 1:

It appears that you are using the wrong build system for your anaconda prompt. You can simply add in a build system by going to Tools->Build Systems->New Build System and enter the following json input

{
    "cmd": ["C:\\Users\\<<YOUR_NAME>>\\Anaconda3\\python.exe", "$file"],
    "selector": "source.python",
    "file_regex": "^\\s*File \"(...*?)\", line ([0-9]*)"
}

You can replace the path with the path you have stored your python interpreter for anaconda.

The sublime-build file should be saved in \AppData\Roaming\Sublime Text 3\Packages\User with a .sublime-build extension with whatever name you want it to be.

You can then access it by Tools->Build Systems-> anaconda. This should point sublime to the correct interpreter. You can then force uninstall and reinstall numpy using the following command pip install --upgrade --force-reinstall numpy

I hope this solves your issue.

Post a Comment for "How To Configure Sublime Text 3 For Anaconda?"