当前位置:网站首页>PermissionError: [Errno 13] Permission denied: ‘data.csv‘
PermissionError: [Errno 13] Permission denied: ‘data.csv‘
2022-07-04 19:12:00 【思考实践】
在Pi上运行运行df.to_csv("result.csv")出现报错,不知道为啥,找了很多方法都不能解决,最后
运行.py文件的时候加上sudo进行提权,这样运行就没有报错了。
这个debug了我可能有2h.
然后sudo python3 xx.py文件又报错了,import 包的错误
通过sudo pip3 install 相关包 来解决问题
参考资料
PermissionError: [Errno 13] Permission denied: - Operater - 博客园 (cnblogs.com)
(170条消息) Python报错:PermissionError: [Errno 13] Permission denied解决方案详解_水亦心的博客-CSDN博客_permissionerror
(171条消息) 执行python脚本用sudo权限_zhuiyuan2012的博客-CSDN博客_python sudo权限
边栏推荐
- Win11系统wifi总掉线怎么办?Win11系统wifi总掉线的解决方法
- 2022 version of stronger jsonpath compatibility and performance test (snack3, fastjson2, jayway.jsonpath)
- 实践示例理解js强缓存协商缓存
- PHP pseudo original API docking method
- Oracle database, numbers Force 2 decimal places to display-Alibaba Cloud
- Qt五子棋人机对战画棋子之QPainter的使用误区总结
- So this is the BGP agreement
- 哈希(Hash)竞猜游戏系统开发功能分析及源码
- NLP、视觉、芯片...AI重点方向发展几何?青源会展望报告发布[附下载]
- ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声
猜你喜欢

Process of manually encrypt the mass-producing firmware and programming ESP devices

Win11共享文件打不开怎么办?Win11共享文件打不开的解决方法

原来这才是 BGP 协议

Ziguang zhanrui completed the first 5g R17 IOT NTN satellite on the Internet of things in the world

Qt五子棋人机对战画棋子之QPainter的使用误区总结

What if the brightness of win11 is locked? Solution to win11 brightness locking

Managed service network: application architecture evolution in the cloud native Era

Small hair cat Internet of things platform construction and application model

Related concepts of federal learning and motivation (1)

【历史上的今天】7 月 4 日:第一本电子书问世;磁条卡的发明者出生;掌上电脑先驱诞生
随机推荐
浏览器渲染页面过程
同事的接口文档我每次看着就头大,毛病多多。。。
Flet教程之 04 FilledTonalButton基础入门(教程含源码)
针对深度学习的“失忆症”,科学家提出基于相似性加权交错学习,登上PNAS
LeetCode 871. Minimum refueling times
被奉为经典的「金字塔原理」,教给我们哪些PPT写作技巧?
Lingyun going to sea | Wenhua online & Huawei cloud: creating a new solution for smart teaching in Africa
What financial products can you buy with a deposit of 100000 yuan?
Win11系统wifi总掉线怎么办?Win11系统wifi总掉线的解决方法
NetCore3.1 Json web token 中间件
电脑怎么保存网页到桌面上使用
Installation and use of VMware Tools and open VM tools: solve the problems of incomplete screen and unable to transfer files of virtual machines
go语言笔记(2)go一些简单运用
What if the win11 shared file cannot be opened? The solution of win11 shared file cannot be opened
工厂从自动化到数字孪生,图扑能干什么?
原来这才是 BGP 协议
Is it safe for Great Wall Securities to open an account? Stock account opening process online account opening
ICML 2022 | meta proposes a robust multi-objective Bayesian optimization method to effectively deal with input noise
左右最值最大差问题
[in-depth learning] review pytoch's 19 loss functions