简体   繁体   中英

apt-get module not being imported into python

I am trying to install the python-pymssql module into python so that I could connect it my MS database. I have installed the package using apt-get. But when I import into python it tells me " No module named 'pymssql'". Note: I am working on google Colab.

Code:

!sudo apt-get install python-pymssql
!apt list --installed 
import pymssql

Can you try installing it with pip, pip install pymssql and check whether it works or not.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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