解决“No module named django.core”
程序员文章站
2022-07-14 15:52:02
...
反复的删除django和重装就会有这个问题
查看python setup.py install >a.log
只干了两件事,一个是copy django目录,一个是copy 这个文件django-admin.py
copying build/scripts-2.7/django-admin.py -> /usr/local/bin
changing mode of /usr/local/bin/django-admin.py to 755
需要检查
python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
和
export $PYTHONPATH可能不一样
转载http://bbs.scmroad.com/viewthread.php?tid=1429&page=1&extra=page%3D1#pid2621
bogon:~ apple$ django-admin.py startproject aa Traceback (most recent call last): File "/usr/local/bin/django-admin.py", line 2, in <module> from django.core import management ImportError: No module named django.core bogon:~ apple$
查看python setup.py install >a.log
只干了两件事,一个是copy django目录,一个是copy 这个文件django-admin.py
copying build/scripts-2.7/django-admin.py -> /usr/local/bin
changing mode of /usr/local/bin/django-admin.py to 755
需要检查
python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
和
export $PYTHONPATH可能不一样
转载http://bbs.scmroad.com/viewthread.php?tid=1429&page=1&extra=page%3D1#pid2621
上一篇: Docker镜像的基本操作
推荐阅读
-
PHP加密3DES报错 Call to undefined function: mcrypt_module_open() 如何解决
-
Android Data Binding 在 library module 中遇到错误及解决办法
-
解决Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com
-
解决Python找不到ssl模块问题 No module named _ssl的方法
-
Python安装Imaging报错:The _imaging C module is not installed问题解决方法
-
python提示No module named images的解决方法
-
解决Python源码编译时提示:ModuleNotFoundError: No module named ‘distutils.command‘
-
CentOS安装Nginx 报错“configure: error: the HTTP rewrite module requires the PCRE library”解决办法
-
Fatal error: session_start(): Failed to initialize storage module: files问题解决方法
-
Android Data Binding 在 library module 中遇到错误及解决办法