Ubuntu/Linux 系统 python 虚拟环境 建立和使用)

这是一篇简明教程,介绍了如何在Ubuntu系统中设置和使用Python虚拟环境。通过命令行操作,遵循官方文档指导,可以创建并激活虚拟环境,从而实现Python项目的隔离管理。
摘要由CSDN通过智能技术生成

Ubuntu/Linux python 虚拟环境 virtual environment 建立和使用 setup and usage

Ubuntu/Linux 系统 python 虚拟环境 建立和使用)

Introduction 前言(选,可直接看代码)

你好! 这是一篇关于如何在Ubuntu上使用python的虚拟环境的精简教程。
Hi! This is a concise tutorial on how to setup a virtual environment with python on Ubuntu system.(https://mermaidjs.github.io/)

Codes 代码

创建和进入虚拟环境命令来源:https://docs.python.org/3/tutorial/venv.html

Summary and miscellaneous usage 总结和一些另外的细节如下


#创建 create
python3 -m venv tutorial-env

# in case it pops out: The virtual environment was not created successfully because ensurepip is not
#available.  On Debian/Ubuntu systems, you need to install the python3-venv
#package using the following command.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值