Skip to content

Instantly share code, notes, and snippets.

@real-jiakai
Last active April 16, 2023 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save real-jiakai/9c964973379c0236bff8a369eb9377ee to your computer and use it in GitHub Desktop.
Save real-jiakai/9c964973379c0236bff8a369eb9377ee to your computer and use it in GitHub Desktop.
debian安装pip和虚拟环境

1、debian安装pip

# 安装Python 3的pip包管理器。
apt install python3-pip
# 安装Python 3的virtualenv工具。
pip3 install virtualenv

# 使用内置venv模块创建Python虚拟环境。
python3 -m venv /root/gpt_env

使用virtualenv工具创建Python 3虚拟环境。
virtualenv -p python3 /root/gpt_env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment