如何在windows安装搭建django开发环境和所需要的软件

简介: Python的虚拟环境的安装与配置(virtualenv)win+r 打开cmdpip install virtualenv如下():Microsoft Windows [版本 10.0.16299.492](c) 2017 Microsoft Corporation。

Python的虚拟环境的安装与配置(virtualenv)

  • win+r 打开cmd
  • pip install virtualenv
  • 如下():
Microsoft Windows [版本 10.0.16299.492]
(c) 2017 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>pip install virtualenv
Requirement already satisfied: virtualenv in c:\anaconda3\lib\site-packages (16.0.0)
notebook 5.4.0 requires ipykernel, which is not installed.
jupyter 1.0.0 requires ipykernel, which is not installed.
jupyter-console 5.2.0 requires ipykernel, which is not installed.
ipywidgets 7.1.1 requires ipykernel>=4.5.1, which is not installed.

C:\Users\Administrator>
C:\Users\Administrator>pip install virtualenvwrapper win
Requirement already satisfied: virtualenvwrapper in c:\anaconda3\lib\site-packages (4.8.2)
Collecting win
  Could not find a version that satisfies the requirement win (from versions: )
No matching distribution found for win

C:\Users\Administrator>
  • 修改虚拟环境默认的创建的目录如下图:
image.png
image.png

新建如下图:


image.png

然后确定保存,

然后如下:

C:\Users\Administrator>workon

Pass a name to activate one of the following virtualenvs:
==============================================================================
blogproject_env
mxonline
python2
python3

C:\Users\Administrator>

创建虚拟环境

  • 创建一个py3scrapy虚拟环境
C:\Users\Administrator>mkvirtualenv py3scrapy
Using base prefix 'c:\\anaconda3'
New python executable in E:\Evns\py3scrapy\Scripts\python.exe
Installing setuptools, pip, wheel...done.

(py3scrapy) C:\Users\Administrator>

然后在E:\Evns目录能看到所创建的虚拟环境:

image.png
目录
相关文章
|
人工智能 JavaScript 开发工具
极速上手!Claude Code 原生支持 Windows 免WSL安装教程
Claude Code 现已支持 Windows 原生运行,无需 WSL 配置。本文提供详细安装教程,涵盖 Node.js 环境验证、Git 安装及 Claude Code 配置步骤,助你快速上手这一强大 AI 编程工具。
13952 13
|
存储 虚拟化 Windows
VMware安装Windows10
本案例介绍了在Windows系统上使用VMware Workstation 17.5 Pro安装配置Windows 10虚拟机的详细步骤,包括所需设备、软件下载链接、虚拟机设置及系统安装全过程。
8628 134
VMware安装Windows10
|
Ubuntu Unix Linux
在Windows上轻松安装和使用Ubuntu的方法详解
继续点击“Continue”按钮以继续安装流程,随后选择清理磁盘并安装操作系统的选项。 接下来,在安装过程中,你需要选择时区。为了与你的地理位置相匹配,请选择中国上海作为你的时区设置。 在安装过程中,你还需要设置计算机的名称以及账号密码。请务必牢记这些信息,因为它们将作为你登录系统的凭证。
|
安全 Ubuntu iOS开发
Nessus Professional 10.10 Auto Installer for Windows - Nessus 自动化安装程序
Nessus Professional 10.10 Auto Installer for Windows - Nessus 自动化安装程序
445 3
Nessus Professional 10.10 Auto Installer for Windows - Nessus 自动化安装程序
|
Java 测试技术 网络安全
Burp Suite Professional 2025.10 for Windows x64 - 领先的 Web 渗透测试软件
Burp Suite Professional 2025.10 for Windows x64 - 领先的 Web 渗透测试软件
731 0
Burp Suite Professional 2025.10 for Windows x64 - 领先的 Web 渗透测试软件
|
安全 数据挖掘 Android开发
Cellebrite UFED 4PC 7.72 (Windows) - Android 和 iOS 移动设备取证软件
Cellebrite UFED 4PC 7.72 (Windows) - Android 和 iOS 移动设备取证软件
1144 2
Cellebrite UFED 4PC 7.72 (Windows) - Android 和 iOS 移动设备取证软件
|
人工智能 数据可视化 数据挖掘
Cellebrite Physical Analyzer 7.67 (Windows) - 取证数据分析软件
Cellebrite Physical Analyzer 7.67 (Windows) - 取证数据分析软件
464 1
Cellebrite Physical Analyzer 7.67 (Windows) - 取证数据分析软件
|
Ubuntu JavaScript Linux
Windows安装Claude Code
Claude Code 是 Anthropic 推出的代码助手,支持在 Windows 通过 WSL(Windows Subsystem for Linux)运行。本文介绍如何在 Windows 系统中启用 WSL、安装 Ubuntu 子系统、配置 Python 与 Node.js 环境,并最终安装和运行 Claude Code。内容涵盖 WSL 设置、开发工具安装、依赖配置及常见问题解决方法,助你顺利在本地环境中使用 Claude Code 提升编码效率。
19892 3
|
Linux API iOS开发
Blender 4.5 (Linux, macOS, Windows) - 开源 3D 创意软件 (渲染 建模 雕刻)
Blender 4.5 (Linux, macOS, Windows) - 开源 3D 创意软件 (渲染 建模 雕刻)
773 1
Blender 4.5 (Linux, macOS, Windows) - 开源 3D 创意软件 (渲染 建模 雕刻)

热门文章

最新文章