No module named 'pwd'
时间: 2023-08-25 12:13:38 浏览: 238
回答: 错误提示"No module named 'pwd'"表示在当前环境中找不到名为'pwd'的模块。根据引用可以得知,在Windows系统上是没有pwd模块的,该模块只在Unix系统上可用。在引用中也提到了在设置环境变量时使用了pwd命令,这也是Unix系统上的命令。所以,如果你在Windows上运行了使用了pwd模块的代码,就会报错"No module named 'pwd'"。要解决这个问题,你需要修改代码,移除对pwd模块的依赖,或者在Unix系统上运行该代码。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *3* [[Eclipse] Importerror no module named pwd-----getpass.getuser()](https://blog.csdn.net/COMEYAN/article/details/50444347)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [Python 中 No Module named ***问题](https://blog.csdn.net/miss_future/article/details/98388999)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文