简体   繁体   English

源烤面包机启动失败,并显示错误启动django(尽管存在)

[英]source toaster start failed with error start django although it is exists

I am trying to start the Yocto toaster. 我正在尝试启动Yocto烤面包机。

I installed python 2.7 and django. 我安装了python 2.7和django。

Traceback (most recent call last): File "", line 1, in ImportError: No module named 'django' This program needs Django>1.8,<1.9 Please install with pip install -r /home/elia/YoctoProject/poky/bitbake/toaster-requirements.txt 追溯(最近一次调用):文件“”,第1行,在ImportError中:没有名为django的模块此程序需要Django> 1.8,<1.9请使用pip install -r / home / elia / YoctoProject / poky / bitbake进行安装/toaster-requirements.txt

I also tried using virtual environments. 我也尝试使用虚拟环境。

The sys path is: sys路径为:

/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/home/elia/.local/lib/python2.7/site-packages
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages

django-admin --version returns 1.8.18 django-admin --version返回1.8.18

And from the python itself I am getting the django version ok 从python本身,我就可以得到Django版本了

print(django.get_version())
1.8.18

without the error that source toaster start is telling. 没有源烤面包机开始告诉的错误。

What should I do to start toaster? 我应该怎么做才能开始烤面包机?

You need to install the required packages for toaster, if you are using yocto version below 2.1(krogoth) then use below command in your command line. 您需要安装烤面包机所需的软件包,如果您使用低于2.1(krogoth)的yocto版本,请在命令行中使用以下命令。

pip install -r /home/elia/YoctoProject/poky/bitbake/toaster-requirements.txt

If you are using yocto version above 2.2(morty) use below command 如果您使用的yocto版本高于2.2(morty),请使用以下命令

pip3 install -r /home/elia/YoctoProject/poky/bitbake/toaster-requirements.txt

Note: Below versions of yocto-2.1(krogoth) depends on python and pip 注意:以下yocto-2.1(krogoth)取决于python和pip

From yocto-2.2(morty ) it will depends on python3 and pip3 yocto-2.2(morty )它将取决于python3和pip3

Check which version of yocto you are using. 检查您使用的yocto版本。

在您的源代码poky$使用以下命令

pip install -r /home/elia/YoctoProject/poky/bitbake/toaster-requirements.txt

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

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