繁体   English   中英

pip安装django graphos成功,但导入错误

[英]pip install django graphos successful but import error

这肯定是一个非常简单的问题,接缝林缺少明显的东西...

我做了:

sudo pip install django-graphos

并得到:

Successfully installed django-graphos

到目前为止一切都很好,然后我转到settings.py并添加:

'graphos',

到已安装的应用程序,但我收到此错误:

ImportError: No module named graphos

我缺少什么?

这是我的点子冻结:

Cheetah==2.4.4
Landscape-Client==14.12
PAM==0.4.2
Pillow==4.0.0
PyYAML==3.10
Twisted-Core==13.2.0
Twisted-Names==13.2.0
Twisted-Web==13.2.0
apt-xapian-index==0.45
argparse==1.2.1
chardet==2.0.1
cloud-init==0.7.5
colorama==0.2.5
configobj==4.7.2
distro-info==0.12
django-graphos==0.3.29
djangorestframework==3.5.3
euca2ools==3.0.1
html5lib==0.999
jsonpatch==1.3
jsonpointer==1.0
lxml==3.3.3
oauth==1.0.1
olefile==0.44
prettytable==0.7.2
pyOpenSSL==0.13
pycurl==7.19.3
pyserial==2.6
python-apt==0.9.3.5ubuntu2
python-debian==0.1.21-nmu2ubuntu2
requestbuilder==0.1.0-beta1
requests==2.2.1
six==1.5.2
ssh-import-id==3.21
urllib3==1.7.1
virtualenv==15.1.0
wheel==0.24.0
wsgiref==0.1.2
zope.interface==4.0.5

您正在使用sudo在系统范围的全局Python安装中安装软件包。 但这不是您的应用程序配置为可以运行的地方。

您的应用程序使用其他环境(也许是虚拟环境); 在该虚拟环境中,您没有安装该软件包。

在安装任何软件包之前,您应该确保激活了虚拟环境。 并且不要使用sudo

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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