运行以下代码时出现以下错误:
name: myapp-env
dependencies:
- python=3.5
- pip
- django=1.8
- pip:
- django-environ=0.4
错误:
yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 7, column 1:
- django-environ=0.4
格式化 .yml 文件以 pip 安装包的正确方法是什么?
最佳答案
那里非常明确:YAML(在 pyyaml 中实现)禁止使用制表符进行缩进。将该行更改为 <space><space><space><space>- django-environ=0.4
.
关于python - 如何在 conda environment.yml 文件中 pip 安装包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34314702/