[英]Sublime tset: standard error: Inappropriate ioctl for device
I just installed Sublime 3 on my Mac running OSX and I'm just trying to ensure that my environment is set up correctly for running Python scripts. 我刚刚在运行OSX的Mac上安装了Sublime 3,并且试图确保正确设置环境以运行Python脚本。
Upon running the below code: 运行以下代码后:
def main():
print('hello world')
main()
I get the following output: 我得到以下输出:
tset: standard error: Inappropriate ioctl for device
hello world
[Finished in 0.1s]
Any idea why I am getting the tset:standard error? 知道为什么我会收到tset:standard错误吗?
You did not mention the operating system. 您没有提到操作系统。 If it's a *nix
system you need to mark the file as an executable. 如果是*nix
系统,则需要将文件标记为可执行文件。
chmod +x filename.py
I might be wrong. 我可能错了。 But this is worth giving a try. 但这值得一试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.