我正在尝试建立与数据库的连接,因为我在python中使用熊猫中的一些库在python的文件zilla上具有FTP IP,用户,密码和FTP链接,因为我在问题错误中遇到错误
Unable to import 'MySQLdb'pylint(import-error)[2,1]
和此终端错误
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:/Users/user 3/Desktop/My Python Refrence/ImpDataToMySQL.py", line
8, in <module>
engine = create_engine('sqlite:///:memory:', echo=True)
File "C:\Anaconda\lib\site-packages\sqlalchemy\engine\__init__.py", line
425, in create_engine
return strategy.create(*args, **kwargs)
File "C:\Anaconda\lib\site-packages\sqlalchemy\engine\strategies.py", line
81, in create
dbapi = dialect_cls.dbapi(**dbapi_args)
File "C:\Anaconda\lib\site-
packages\sqlalchemy\dialects\sqlite\pysqlite.py", line 339, in dbapi
raise e
File "C:\Anaconda\lib\site-
packages\sqlalchemy\dialects\sqlite\pysqlite.py", line 337, in dbapi
from sqlite3 import dbapi2 as sqlite # try 2.5+ stdlib name.
File "C:\Anaconda\lib\sqlite3\__init__.py", line 23, in <module>
from sqlite3.dbapi2 import *
File "C:\Anaconda\lib\sqlite3\dbapi2.py", line 27, in <module>
from _sqlite3 import *
ImportError: DLL load failed: The specified module could not be found.
我在这一行中发现错误
engine = create_engine('sqlite:///:memory:', echo=True)
我注意到有一种使用此引擎连接的概念,但我不知道如何
因为我有这样的连接详细信息
FTP IP : 10.xx.xx.x
User : xxxxxxx
Password : xxxxxxxx
FTP link on file zilla : /export/home/omc/var/prs/result_file/
所以我搜索了这种情况的解决方案,我认为本文档中的解决方案
https://docs.sqlalchemy.org/en/latest/core/connections.html
但是理解这份文档很复杂,所以如果有人可以帮助我解决这个问题,我会很感激