-1
運行的virtualenv無模塊錯誤
我已經安裝了GPS包,使用mysql包: 命令和apt-get安裝的GPSD的GPSD的客戶端 須藤的dpkg-重新配置的GPSD & 命令和apt-get安裝python2.7-MySQLdb的 它表明包已成功安裝,但是當我跑我的Python代碼其中有:(GPS和MySQL)在Python 2.7與Lubuntu
import gps
import MySQLdb as mdb
error comes:
ImportError: No module named gps
and ImportError: No module named MySQLdb
in python sys.path gives the following:
sys.path
['', '/home/odroid/.virtualenvs/barc/src/django-tastypie-master', '/home/odroid/barc/workspace/devel/lib/python2.7/dist-packages', '/opt/ros/indigo/lib/python2.7/dist-packages', '/usr/local/lib/python2.7/site-packages', '/home/odroid/.virtualenvs/barc/lib/python2.7', '/home/odroid/.virtualenvs/barc/lib/python2.7/plat-arm-linux-gnueabihf', '/home/odroid/.virtualenvs/barc/lib/python2.7/lib-tk', '/home/odroid/.virtualenvs/barc/lib/python2.7/lib-old', '/home/odroid/.virtualenvs/barc/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-arm-linux-gnueabihf', '/usr/lib/python2.7/lib-tk', '/home/odroid/.virtualenvs/barc/local/lib/python2.7/site-packages', '/home/odroid/.virtualenvs/barc/lib/python2.7/site-packages']