pydev项目-没有名为pyodbc的模块 [英] pydev project - no module named pyodbc
本文介绍了pydev项目-没有名为pyodbc的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我对这一切还是陌生的,所以请多多包涵.我正在尝试在eclipse上执行以下python代码,但发现了一些错误:
Hello guys I am pretty new to all this so please bear with me. I am trying to execute the following python code on eclipse but finding some errors:
import pyodbc
from bs4 import BeautifulSoup
我都遇到以下错误:
import pyodbc
ModuleNotFoundError: No module named 'pyodbc'
import BeautifulSoup
ModuleNotFoundError: No module named 'BeautifulSoup'
当进入命令提示符并单击 pip install pyodbc
时,我得到以下信息:
When going to command prompt and clicking on pip install pyodbc
I get the following:
Requirement already satisfied: pyodbc in c:\users\sammy\anaconda3\lib\site-packages
我该怎么办?非常感谢.
What should I do? Many thanks.
推荐答案
在日食时,只需转到此处,
When you are on eclipse just go to here ,
windows->preferences->python interpreter->select path of your python interpreter
现在,单击使用pip安装/卸载按钮,然后在其中键入pyodbc,如图2所示..现在点击运行.然后重新开始蚀.它应该可以解决您的问题.
Now Click on button install/uninstall with pip and type pyodbc there as shown in pic 2 . Now click on Run . Then restart your eclipse again . It should solve your issue.
这篇关于pydev项目-没有名为pyodbc的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文