在Kali中将sublime设为默认编辑器后,设置python3的build,但是在import pwn的时候发生如下错误:
_curses.error: must call (at least) setupterm() first
在网上找到的相关解决方案,都是关于在linux下的pycharm的,需要设置TERM和TERMINFO,因此尝试修改python3.sublime-build文件,修改如下
{
"env":
{
"PYTHONIOENCODING": "utf8",
"TERM":"linux",
"TERMINFO":"/etc/terminfo"
},
"cmd": ["/usr/bin/python3","-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
修改之后,就可以import pwn了
来源:CSDN
作者:RayLee23333
链接:https://blog.csdn.net/qq_33458986/article/details/103974736