python – django 1.8不适用于CentOs 6.5服务器
发布时间:2020-12-20 12:32:59 所属栏目:Python 来源:网络整理
导读:Installing collected packages: DjangoSuccessfully installed Django-1.8[root@manage ~]# PYTHON-bash: PYTHON: command not found[root@manage ~]# pythonPython 2.6.6 (r266:84292,Jan 22 2014,09:42:36)[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on lin
Installing collected packages: Django Successfully installed Django-1.8 [root@manage ~]# PYTHON -bash: PYTHON: command not found [root@manage ~]# python Python 2.6.6 (r266:84292,Jan 22 2014,09:42:36) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2 Type "help","copyright","credits" or "license" for more information. >>> import django Traceback (most recent call last): File "<stdin>",line 1,in <module> File "/usr/lib/python2.6/site-packages/django/__init__.py",in <module> from django.utils.version import get_version File "/usr/lib/python2.6/site-packages/django/utils/version.py",line 7,in <module> from django.utils.lru_cache import lru_cache File "/usr/lib/python2.6/site-packages/django/utils/lru_cache.py",line 28 fasttypes = {int,str,frozenset,type(None)},^ SyntaxError: invalid syntax >>> 你好,我是Django和CentOS的新手,我只是通过pip成功安装django 1.8,但是当我尝试在python shell中导入django时,它显示上面的错误信息,任何人都可以告诉我发生了什么? ?谢谢 ! 解决方法
https://docs.djangoproject.com/fr/1.9/releases/1.8/#python-compatibility (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |