代码只有一个print:
print("hello")
执行后的结果:
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute 'setdefaultencoding'
hello
Process finished with exit code 0
程序都可以执行,但是必定会出现Error 和AttributeError,并且Process finished with exit code 0,说明错误不是问题本身而是文件出错。(问题出现的原因是我安装scrapy一系列包之后出现的)
可能的原因:
1,python安装环境出错,PYTHONPATH找不到了;
2,PyEnv插件出错;