我编写了一个jinja2模板,用于遍历多个值。但是,我从linux命令中获得了这些值。'{print $1}'100011000310005 [{% for range in port %} {% endfor %}]
使用jinja2模板中的"for循环“,我尝试迭代由linux命令生成的值,但我不知道如何保存这些
2020.12.5 Processing /home/linux1Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/home/linux1Push failedce
具体来说,当我尝试用pipv6.0.6(在virtualenv内)安装Jinja2==2.6时,我会得到以下错误Name: pipCollecting Jinja2==2.6
Could not find a version that satisfiesthe requirement Jinja2==2.6 (from versions: 2
当我使用docker-组合来安装一个快速程序时,我得到了AssertionError: jinja2 must be installed to use Jinja2Templates。但是当我使用env安装它时,它将运行良好。SQLAlchemy~=1.4.23
Werkzeug==1.0.1
# async-generator~=1.10
jinja2
当我运行sudo pip install jinja2时,我看到:Requirement already satisfied: Jinja2 in /Users/rose/Library/Python/但是在一个新的python2.7shell中运行import jinja2会得到:ImportError: No module named jinja2