当我尝试在我的网络应用程序的视图中包含cass.py文件时出现此错误:“没有名为cassandra的模块”
cass.py
from datetime import datetime
from uuid import uuid1, UUID
import random
import cassandra
from cassandra.cluster import Cluster
cluster = Cluster(['127.0.0.1'])
session = cluster.connect('project')
当我从命令行在我的python shell中运行它时,它工作正常,所以我不认为这是任何安装问题。也许django只是找不到cassandra模块?模块的路径是
/usr/local/lib/python2.7/dist-packages/cassandra/__init__.pyc
关于如何让django找到cassandra模块以便我可以使用它的任何想法?