python sqlalchemy安装_python 3。x安装后没有名为sqlalchemy的模块

在尝试使用Python 3.x和Ubuntu 12.04与MySQL数据库交互时,通过`sudo apt-get install python3-sqlalchemy`安装了sqlalchemy模块,但导入时提示找不到名为sqlalchemy的模块。安装过程中没有明显错误,且安装包已成功安装。问题可能是安装后未正确配置或存在其他依赖问题。
摘要由CSDN通过智能技术生成

我试图安装sqlalchemy来与我的python 3.x和ubuntu 12.04的mysql数据库交互,但是当我导入sqlalchemy时,它说没有名为sqlalchemy的模块。这就是我在安装时所做的:aoi@aoi:~$ sudo apt-get install python3-sqlalchemy

[sudo] password for aoi:

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages were automatically installed and are no longer required:

libgio-cil libmono-corlib4.0-cil libmono-system-security4.0-cil libmono-system-xml4.0- cil libmono-i18n-west4.0-cil cli-common guile-1.8-libs

libmono-system-configuration4.0-cil librhythmbox-core5 mono-runtime libgdu-gtk0 libavahi-ui-gtk3-0 mono-4.0-gac mono-gac

linux-headers-3.5.0-23-generic libglib2.0-cil linux-headers-3.5.0-23 libming1 thunderbird-globalmenu libmusicbrainz3-6 libmono-i18n4.0-cil

libmono-security4.0-cil libmono-system4.0-cil

Use 'apt-get autoremove' to remove them.

Suggested packages:

python-sqlalchemy-doc

The following NEW packages will be installed:

python3-sqlalchemy

0 upgraded, 1 newly installed, 0 to remove and 81 not upgraded.

Need to get 450 kB of archives.

After this operation, 2,808 kB of additional disk space will be used.

Get:1 http://ph.archive.ubuntu.com/ubuntu/ precise-updates/main python3-sqlalchemy all 0.7.4-1ubuntu0.1 [450 kB]

Fetched 450 kB in 40s (11.0 kB/s)

Selecting previously unselected package python3-sqlalchemy.

(Reading database ... 346102 files and directories currently installed.)

Unpacking python3-sqlalchemy (from .../python3-sqlalchemy_0.7.4-1ubuntu0.1_all.deb) ...

Setting up python3-sqlalchemy (0.7.4-1ubuntu0.1) ...

我做错什么了吗?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值