当前位置:网站首页>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权限
边栏推荐
- js 闭包
- Flet tutorial 04 basic introduction to filledtonalbutton (tutorial includes source code)
- How does win11 search for wireless displays? Win11 method of finding wireless display device
- 2022 version of stronger jsonpath compatibility and performance test (snack3, fastjson2, jayway.jsonpath)
- Employment prospects and current situation of Internet of things application technology
- 被奉为经典的「金字塔原理」,教给我们哪些PPT写作技巧?
- In operation (i.e. included in) usage of SSRs filter
- How does the computer save web pages to the desktop for use
- 【深度学习】一文看尽Pytorch之十九种损失函数
- Huawei cloud store homepage banner resource bit application
猜你喜欢
Flet教程之 04 FilledTonalButton基础入门(教程含源码)
一文搞懂Go语言中文件的读写与创建
Form组件常用校验规则-1(持续更新中~)
强化学习-学习笔记2 | 价值学习
What if the brightness of win11 is locked? Solution to win11 brightness locking
【深度学习】一文看尽Pytorch之十九种损失函数
字节测试工程师十年经验直击UI 自动化测试痛点
NLP, vision, chip What is the development direction of AI? Release of the outlook report of Qingyuan Association [download attached]
C server log module
《动手学深度学习》(三) -- 卷积神经网络 CNN
随机推荐
[Beijing Xunwei] i.mx6ull development board porting Debian file system
电脑共享打印机拒绝访问要怎么办
Flet tutorial 07 basic introduction to popupmenubutton (tutorial includes source code)
js 闭包
15million employees are easy to manage, and the cloud native database gaussdb makes HR office more efficient
Lingyun going to sea | Murong Technology & Huawei cloud: creating a model of financial SaaS solutions in Africa
复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算
Ziguang zhanrui completed the first 5g R17 IOT NTN satellite on the Internet of things in the world
go语言笔记(2)go一些简单运用
什么叫内卷?
凌云出海记 | 沐融科技&华为云:打造非洲金融SaaS解决方案样板
idea大小写快捷键
【历史上的今天】7 月 4 日:第一本电子书问世;磁条卡的发明者出生;掌上电脑先驱诞生
How to adapt your games to different sizes of mobile screen
【ISMB2022教程】图表示学习的精准医疗,哈佛大学Marinka Zitnik主讲,附87页ppt
面对同样复杂的测试任务为什么大老很快能梳理解决方案,阿里十年测试工程师道出其中的技巧
jekins初始化密码没有或找不到
六石编程学:关于代码,有六个得意
Hash哈希竞猜游戏系统开发如何开发丨哈希竞猜游戏系统开发(多套案例)
Template_ Judging prime_ Square root / six prime method