Add quot;django-admin.pyquot; path to command line on Windows 7(添加“django-admin.pyWindows 7 上的命令行路径)
本文介绍了添加“django-admin.py"Windows 7 上的命令行路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在尝试将 django-admin.py
路径添加到 Windows 7 上的命令行.
I've been trying to add the django-admin.py
path to command line on Windows 7.
我尝试过这样做:
C:>set django-admin.py = C:Python27Scriptsdjango-admin.py
但是 cmd
告诉我:
'django-admin.py' is not recognized as an internal or external command.
那么如何在 Windows 7 上将 django-admin.py
路径添加到命令行?
So how can I add django-admin.py
path to command line on Windows 7?
我需要它,因为稍后我会这样做:
I need it because later I'm doing this:
C:UsersMichaelDesktopmysite>django-admin.py startproject mysite
谢谢.
推荐答案
试试下面的命令.
set path=%path%;c:python27scripts
PATH
仅为运行上述命令的 cmd.exe 设置.
PATH
is set only for the cmd.exe in which you run the above command.
更新
永久设置路径:
- 右键单击桌面上的我的电脑.
- 点击左侧的高级系统设置.
- 点击环境变量.
- 添加或更新
PATH
变量:- 如果不存在,则创建一个,并将值设置为
C:python27scripts
- 如果存在,将
;C:Python27scripts
附加到现有值.
- 如果不存在,则创建一个,并将值设置为
- Right click My computer in the desktop.
- Click Advanced System Settings on the left.
- Click Environmental Variable.
- Add or Update
PATH
variable:- If it does not exist, create one, and set value as
C:python27scripts
- If it exist, append
;C:Python27scripts
to existing value.
- If it does not exist, create one, and set value as
这篇关于添加“django-admin.py"Windows 7 上的命令行路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
沃梦达教程
本文标题为:添加“django-admin.py"Windows 7 上的命令行路径


猜你喜欢
- CTR 中的 AES 如何用于 Python 和 PyCrypto? 2022-01-01
- 如何使用PYSPARK从Spark获得批次行 2022-01-01
- 我如何透明地重定向一个Python导入? 2022-01-01
- 使用 Cython 将 Python 链接到共享库 2022-01-01
- 使用公司代理使Python3.x Slack(松弛客户端) 2022-01-01
- 检查具有纬度和经度的地理点是否在 shapefile 中 2022-01-01
- 我如何卸载 PyTorch? 2022-01-01
- ";find_element_by_name(';name';)";和&QOOT;FIND_ELEMENT(BY NAME,';NAME';)";之间有什么区别? 2022-01-01
- YouTube API v3 返回截断的观看记录 2022-01-01
- 计算测试数量的Python单元测试 2022-01-01