python-虚拟环境的创建与使用-针对linu系统
2024-03-18 09:13:22 阅读次数:45
django,linux,python
》为什么要有虚拟环境
实际的情况

= 虚拟环境就是python环境的复制版本
》安装虚拟环境的命令

对于 linux系统

》使用虚拟环境

如果行首出现了

成功创建了虚拟环境,后会自动进入该环境
代表环境创建成功
环境的文件位置位于

》 退出虚拟环境

》进入虚拟环境,切换虚拟环境

》查看本机上所有虚拟环境
work on

命令会列出所有虚拟环境的列表
》查看虚拟环境中安装了哪些包
办法1, pip list

非虚拟环境下也是使用这个命令来安装的
办法2 pip freeze

》安装指定版本的django
安装1.8.2的操作

=



版权声明:本文内容来自第三方投稿或授权转载,原文地址:https://blog.51cto.com/u_13137233/3416139,作者:ifubing,版权归原作者所有。本网站转在其作品的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如因作品内容、版权等问题需要同本网站联系,请发邮件至ctyunbbs@chinatelecom.cn沟通。
上一篇:Packet Tracer - 在 IPv4 和 IPv6 的 EIGRP 中传播默认路由
下一篇:全面了解Linux下Proc文件系统