- 博客(9)
- 资源 (1)
- 收藏
- 关注
转载 django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE的解决办法
在Python的开发中,遇到了这个错误: django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO
2017-04-27 11:11:54
4562
转载 django报错:django.core.exceptions.ImproperlyConfigured: 处理办法
django报错: Eclipse pydev 运行不出错,cmd 命令行界面中Python 运行出错: django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environme
2017-04-27 11:00:01
609
转载 Django URL传递参数的方法总结
1 无参数情况 配置URL及其视图如下: 1 2 3 4 (r'^hello/$', hello) def hello(request): return HttpResponse("Hello World") 访问http://127.0.0.1:8000/hello,输出结果为“Hello World” 2 传递一个参数 配
2017-04-21 15:32:41
332
转载 Django URL传递参数的方法总结
1 无参数情况 配置URL及其视图如下: 1 2 3 4 (r'^hello/$', hello) def hello(request): return HttpResponse("Hello World") 访问http://127.0.0.1:8000/hello,输出结果为“Hello World” 2 传递一个参数 配
2017-04-21 15:32:19
110
转载 编编安装python时出现can't decompress data; zlib not available错误
解决方法: 1、安装依赖zlib、zlib-devel 2、重新编译安装python ./configure 编辑Modules/Setup文件 找到下面这句,去掉注释 #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz 重新编译安装:make & make install
2017-03-21 10:03:02
1117
转载 python 环境搭建-Linux 系统下python2.6.6升级python3.5.2步骤
[root@template ~]# python -v # /usr/lib64/python2.6/encodings/utf_8.pyc matches /usr/lib64/python2.6/encodings/utf_8.py import encodings.utf_8 # precompiled from /usr/lib64/python2.6/encodings/utf_8.p
2017-03-21 09:51:43
328
转载 windows下使用pip安装python模块时报错总结
前言: 这几天把python版本升级后,发现pip安装模块好多都报错(暂不确定是不是因为升级导致的),我定睛一看,发现是权限的问题,那么怎么解决呢? 1 权限问题 C:\Users\ljf>pip install xlwt Exception: Traceback (most recent call last): File "c:\program files\python
2017-03-20 16:11:19
300
原创 安装python 时出现no acceptable C compiler found in $PATH问题
今天在linux虚拟机上安装python3.6.0版本出现以下错误,错误如下,[root@abc Python-3.6.0]#./configure --prefix=/usr/local/python-3.6.0****** checking for gcc... no checking for cc... no checking for cc... no checking for cl... n
2017-03-20 15:55:35
632
转载 安装python 时出现no acceptable C compiler found in $PATH问题
今天在linux虚拟机上安装python3.6.0版本出现以下错误,错误如下, [root@abc Python-3.6.0]#./configure --prefix=/usr/local/python-3.6.0 ****** checking for gcc... no checking for cc... no checking for cc... no check
2017-03-20 15:49:13
802
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人