PyCharm ImportError: DLL load failed while importing _psycopg: 找不到指定的模块。
时间: 2023-09-07 20:17:06 浏览: 328
当在使用PyCharm时,出现"ImportError: DLL load failed while importing _psycopg: 找不到指定的模块"的错误提示时,可以尝试以下解决方法。首先,将PostgreSQL的bin和lib路径添加到系统的环境变量Path中。然后,使用以下命令来更新psycopg2插件: "pip install --upgrade psycopg2"。
另外,根据您电脑的具体情况,您可以选择下载适合您电脑位数的PostgreSQL安装文件。下载完成后,运行该exe文件,并选择修复选项。修复完成后,再次运行PyCharm中的代码,应该就不会再报错了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [PyCharm ImportError: DLL load failed while importing _psycopg: 找不到指定的模块。](https://blog.csdn.net/lsqtzj/article/details/109133152)[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* [当python导入包时,出现DLL load failed while impoting _path错误](https://blog.csdn.net/w1405270578/article/details/117598696)[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 ]
阅读全文