简体   繁体   English

pydev项目-没有名为pyodbc的模块

[英]pydev project - no module named pyodbc

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: 我试图在Eclipse上执行以下python代码,但发现一些错误:

import pyodbc
from bs4 import BeautifulSoup

I get the following error for both: 我都收到以下错误:

import pyodbc
ModuleNotFoundError: No module named 'pyodbc'
   import BeautifulSoup
ModuleNotFoundError: No module named 'BeautifulSoup'

When going to command prompt and clicking on pip install pyodbc I get the following: 当进入命令提示符并单击pip install pyodbc我得到以下信息:

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

在此处输入图片说明 Now Click on button install/uninstall with pip and type pyodbc there as shown in pic 2 现在单击pip安装/卸载按钮,然后在其中键入pyodbc,如图2所示。 图片2 . Now click on Run . 现在点击运行。 Then restart your eclipse again . 然后重新开始蚀。 It should solve your issue. 它应该可以解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM