简体   繁体   中英

Sublime text 3 and anaconda, python wrong path

I'm new to python and sublime. I downloaded anaconda3-5.2, the full version with python3.6, and sublime text 3 on my 64bit machine windows 10.

When i start my sublime text 3 i imediately get the Error:

问题消息框Anaconda

I really don't know how to solve this. It clearly says it is pointing to a python2.7, and i don't have python this one. I have python 3.6.

On the internet they tell to choose python as builder and as syntax, but this didn't solve the problem.

I also reinstalled anaconda and sublime, but this also didn't fixed it.

Does anybody have a possible solution?

I had got the same issue, but in linux. I had to change the settings for anaconda in Preferences -> package settings -> anaconda -> settings-default.

Then, I searched for the line related to "python_interpreter" wich default value was python and I changed it to python3. Then I restarted sublime and then it worked fine.

I hope this could be helpfull

在此处输入图片说明

When you installed python 3.6 you most likely you did not check the box to add it to your user PATH environment variable. Reinstalling and checking the box should fix it.

Otherwise, you could update your user Path Environment Variable adding something like "C:\\Users\\OdatNurd\\AppData\\Local\\Programs\\Python\\Python36\\"

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