|
C0VNOct 23, 2015
1
环境变量没设置好吧
|
|
2
@xavierskip 在 virtualenv 虚拟环境里安装的 Django
|
|
yongzhongOct 23, 2015
3
用默认的命令
|
|
glasslionOct 23, 2015
4
@commoccoom 首先确认 django 安装成功了:
pip freeze 以及在 python shell 里 import django 的结果是什么? |
|
5
|
|
6
|
|
yongzhongOct 23, 2015
7
@commoccoom windos 下眼拙看错了,你是否装了多个版本的 python?
|
|
glasslionOct 23, 2015
8
@commoccoom 拿确实蛮诡异的。可以试试在 django-admin.py 前加上完整的 python 路径
`D:\...\virtualenv\scripts\python django-admin.py startproject` 有可能你安装过多个 python , 直接运行 .py 文件 没有关联到正确的 python 上 |
|
C0VNOct 23, 2015
9
提示找不到模块,你就在相同的环境进 python 解释器 import 模块试一下呗?
|
|
FingerLiuOct 23, 2015
11
pip list 看下
|
|
12
|
|
13
|
|
14
@yongzhong
就装了 2.7.9 |
|
windfarerOct 23, 2015 via Android
15
在 Windows 上折腾 Web 开发坑蛮多的
|
|
16
|
|
C0VNOct 23, 2015
17
|
|
18
|
|
kn007Oct 23, 2015
19
@commoccoom 你不是说你安装了 2.7.9 么,截图里版本不对
|
|
20
@kn007
2.7.9 是办公室的机器上,我自己的安装了 2.7.10 ,都是同样的问题 |
|
21
@xavierskip
@glasslion http://stackoverflow.com/questions/29172342/cant-install-django-on-windows-in-a-virtualenv windows 用 virtualenvwrapper 比 virtualenv 更简单吗? |
|
22
|