ModuleNotFoundError: No module named lib
时间: 2023-10-17 16:36:37 浏览: 157
ModuleNotFoundError: No module named lib是一个Python模块找不到的错误。根据引用,这个错误可能是因为在服务器部署了flask项目时没有正确安装所需的模块。根据引用,解决这个错误的方法是在当前运行目录下搜索对应的包。可以尝试在cmd中运行以下命令:
sys.path.append('.')
这样就可以让Python在当前运行目录下搜索模块,以解决ModuleNotFoundError的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [重启宝塔面板后提示-ModuleNotFoundError: No module named ‘geventwebsocket’](https://download.csdn.net/download/weixin_38709466/14107368)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [ModuleNotFoundError: No module named ‘lib.utils.cython_bbox](https://blog.csdn.net/qq_38251616/article/details/114827458)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [ModuleNotFoundError: No module named ‘lib](https://blog.csdn.net/YnullW/article/details/126148288)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文