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.