python - Visual Studio Code (Python) - 'NoneType' object has no attribute 'write'
问题描述
I searched all the internet for a solution and didn't find it.
Well, i recently installed Anaconda Package, and the VS Code with all the required extensions, but like in every language i tried to run a:
print('Hello World')
But the code stopped with the following message: 'NoneType' object has no attribute 'write'
解决方案
在管理员模式下运行 Visual Studio Code 为我解决了这个问题。
推荐阅读
- javascript - Express-throttle 如何根据函数的参数设置 api 调用的成本
- flutter - 如何将 Flutter Web 应用程序转换为 PWA?
- python - 使用 cv2 时删除 [h264 @ xxx] 错误 cosole 输出
- django - 无法通过 django 管理页面添加用户
- python - ImportError:无法导入名称“get_distribution”
- generics - 是否可以将实现特征的所有类型存储在列表中并遍历该列表?
- gatsby - 创建内容丰富的自定义 Slug
- java - 如何为调用 API 的方法编写 JUnit 测试?
- rubymine - 在 Rubymine 中运行测试时,从服务器下载文件需要很长时间
- firebase - Firebase Firestore 数据库结构