0

几周前我开始使用 VSC 和 otree 进行编码,一切都很顺利。今天,我开始了一个新项目,所以我去了终端并输入

cd otree

其次是

otree startapp project

然后我得到了

Traceback (most recent call last):
  File "/Users/T/anaconda3/bin/otree", line 11, in <module>
    sys.exit(execute_from_command_line())
  File "/Users/T/anaconda3/lib/python3.6/site-packages/otree_startup/__init__.py", line 75, in execute_from_command_line
    configure_settings(DJANGO_SETTINGS_MODULE)
  File "/Users/T/anaconda3/lib/python3.6/site-packages/otree_startup/__init__.py", line 153, in configure_settings
    user_settings_module = import_module(DJANGO_SETTINGS_MODULE)
  File "/Users/T/anaconda3/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 978, in _gcd_import
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 781, in get_code
  File "<frozen importlib._bootstrap_external>", line 741, in source_to_code
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
  File "/Users/T/oTree/settings.py", line 68
    },
     ^
SyntaxError: invalid syntax

而且我不确定这意味着什么或如何解决它。谢谢!

* 更新 * 我卸载了所有东西,现在更糟了。我从

pip3 install -U otree

然后,

otree startproject oTree

但是,我得到

-bash: otree: command not found
4

0 回答 0