uwsgi.ini 运行包 ModuleNotFoundError: No module named
时间: 2023-10-15 12:23:11 浏览: 216
根据引用内容中的报错信息,出现了 ModuleNotFoundError: No module named 'flask' 的错误。这意味着在运行uwsgi.ini时,没有找到名为'flask'的模块。
根据引用内容中的参考链接,可以尝试解决这个问题。可以设置uwsgi.ini文件中的pythonpath的值为'/usr/local/lib/python3.8/site-packages/',这样uwsgi就能够找到所需的模块。
所以,你可以尝试修改uwsgi.ini文件,将pythonpath的值设置为'/usr/local/lib/python3.8/site-packages/',然后重新运行uwsgi.ini文件,这样应该能够解决 ModuleNotFoundError: No module named 'flask' 的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Python编程:uWSGI配置报错ModuleNotFoundError: No module named 'flask'](https://blog.csdn.net/mouday/article/details/82594765)[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_2"}}] [.reference_item style="max-width: 50%"]
- *3* [【解决方法】Docker+uWSGI+Flask 报错 ModuleNotFoundError: No module named ‘flask](https://blog.csdn.net/zhyl8157121/article/details/119751488)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文