使用pip安装Django,找不到django-admin [英] Installing Django with pip, django-admin not found

查看:705
本文介绍了使用pip安装Django,找不到django-admin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下命令安装了python:brew install python,最后是pip install Django.但是,当我尝试运行django-admin.py startproject test时,只会得到找不到的文件.我忘记了什么?

I installed python using: brew install python and then eventually pip install Django. However when I try to run django-admin.py startproject test I just get a file not found. What did I forget?

推荐答案

这是一个要点来安装django在virtualenv中创建并在一个步骤中创建一个项目.

Here's a gist to install django within a virtualenv and to create a project in a single step.

注意:您可以使用它来设置开发环境.对于生产,请查看这篇文章.

Note: You can use it for setting up your development environment. For production, check out this post.

这篇关于使用pip安装Django,找不到django-admin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆