【发布时间】:2014-11-02 23:28:29
【问题描述】:
我在虚拟环境中安装了 DJANGO 并在运行命令时
manage.py runserver
在 DJANGO 教程开始时指定 我正面临这个错误。
(djangosite) E:\__FreshStart\Python\djnagosite\mysite>manage.py runserver
Fatal Python error: Py_Initialize: unable to load the file system codec
File "c:\Python\VEnv\djangosite\Lib\encodings\__init__.py", line 123
raise CodecRegistryError,\
^
SyntaxError: invalid syntax
- 操作系统:Windows 7
- Python 安装:
- Python 2.7.6
- 基于python 2.7.6的DJANGO虚拟环境
- Python 3.4
- PYTHONPATH 指向虚拟环境文件夹下的 LIB
- PYTHONHOME 为空白
【问题讨论】: