In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Sublime Text4 configuration Python3 environment code prompt compilation error solution, in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
1 configure the Python3 environment
Click tools > compile system > New compilation system.
Pop up:
Replace the contents as follows:
{"cmd": ["G:\\ CodeTools\\ anaconda3\ python.exe", "- u", "$file"], "file_regex": "^ [] * File\" (. *?)\ ", line ([0-9] *)", "selector": "source.python", "encoding": "utf-8", "env": {"PYTHONIOENCODING": "utf8"}, "shell": "true"}
Replace the address in cmd with the program address of your Python3, for example, the program address of my Python3 is: "G:\\ CodeTools\\ anaconda3\\ python.exe"
Press Ctrl + S pop-up dialog box, you can change the file name to Python3 and its reserved file suffix, click Save
Click tools > compile system > Python3 after saving to select:
The default compilation shortcut is Ctrl + B test:
2 configure automatic code hints
Press Ctrl + Shift + P, enter install, and select the first press Enter:
Then enter anaconda to select the first press Enter:
After waiting for the installation to finish, pop up:
Restart the Sublime Text4 test and enter import + space to pop up:
Done.
3 compilation error
If you encounter the following error during compilation _ _ init__ () got an unexpected keyword argument 'kill_previous', click preferences > browse the plug-in directory.
Pop up the directory and delete the Default file:
Restart Sublime Text4 and compile again to solve the problem.
This is the solution to the problem of code prompt compilation error in the era of Sublime Text4 configuration Python3 environment. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.