Python3 no way to run the SQLAlchemy?

Source: Internet
Author: User
Tags sqlite

[Email protected] python]# Python3 router.py

Traceback (most recent):

File "/usr/local/lib/python3.6/site-packages/sqlalchemy/dialects/sqlite/pysqlite.py", line 337, in Dbapi

From sqlite3 import dbapi2 as SQLite # try 2.5+ stdlib name.

File "/usr/local/lib/python3.6/sqlite3/__init__.py", line at <module>

From SQLITE3.DBAPI2 Import *

File "/usr/local/lib/python3.6/sqlite3/dbapi2.py", line +, in <module>

From _sqlite3 Import *

Modulenotfounderror:no module named ' _sqlite3 '


During handling of the above exception, another exception occurred:


Traceback (most recent):

File "router.py", line 2, <module>

From DB Import *

File "/home/ming/python/db.py", line one, in <module>

Db_engine = Create_engine (' sqlite:///:memory: ', echo = False)

File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/__init__.py", line 391, in Create_engine

Return Strategy.create (*args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/strategies.py", line +, in Create

Dbapi = Dialect_cls.dbapi (**dbapi_args)

File "/usr/local/lib/python3.6/site-packages/sqlalchemy/dialects/sqlite/pysqlite.py", line 339, in Dbapi

Raise E

File "/usr/local/lib/python3.6/site-packages/sqlalchemy/dialects/sqlite/pysqlite.py", line 334, in Dbapi

From Pysqlite2 import Dbapi2 as SQLite

Modulenotfounderror:no module named ' Pysqlite2 '

[Email protected] python]#


Python3 no way to run the SQLAlchemy?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.