简体   繁体   English

Sublime Text 3和Anaconda,Python错误路径

[英]Sublime text 3 and anaconda, python wrong path

I'm new to python and sublime. 我是python和sublime的新手。 I downloaded anaconda3-5.2, the full version with python3.6, and sublime text 3 on my 64bit machine windows 10. 我在64位计算机Windows 10上下载了anaconda3-5.2,带有python3.6的完整版本以及sublime text 3。

When i start my sublime text 3 i imediately get the Error: 当我启动崇高文字3时,我立即收到错误消息:

问题消息框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. 它清楚地说它指向的是python2.7,而我没有python2.7。 I have python 3.6. 我有python 3.6。

On the internet they tell to choose python as builder and as syntax, but this didn't solve the problem. 在互联网上,他们告诉选择python作为生成器和语法,但这并不能解决问题。

I also reinstalled anaconda and sublime, but this also didn't fixed it. 我还重新安装了anaconda和sublime,但这也没有解决。

Does anybody have a possible solution? 有人有可能解决的办法吗?

I had got the same issue, but in linux. 我有同样的问题,但是在Linux中。 I had to change the settings for anaconda in Preferences -> package settings -> anaconda -> settings-default. 我必须在“首选项”->“程序包设置”->“ anaconda”->“设置-默认”中更改anaconda的设置。

Then, I searched for the line related to "python_interpreter" wich default value was python and I changed it to python3. 然后,我搜索与“ python_interpreter”相关的行,其中默认值为python,并将其更改为python3。 Then I restarted sublime and then it worked fine. 然后我重新启动了sublime,然后工作正常。

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. 安装python 3.6时,您很可能没有选中将其添加到用户PATH环境变量中的框。 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\\" 否则,您可以更新用户路径环境变量,添加类似“ C:\\ Users \\ OdatNurd \\ AppData \\ Local \\ Programs \\ Python \\ Python36 \\”的内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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