Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我运行 ./manage.py 时,出现以下错误,
来自:无法读取 /var/mail/os.path
./manage.py:第 4 行:导入:找不到命令
./manage.py:第 7 行:意外标记“0”附近的语法错误
./manage.py:第 7 行:`sys.path.insert(0, abspath(join(dirname( file ), 'external_apps')))'
它是什么!!!我该如何解决?
不要添加 #!/usr/bin/python 。在运行 python manage.py your_command 之前使用 virtualenv 并激活它。当您熟悉 virtualenv 时,请尝试 virtualenvwrapper。