创建目录
mkdir pyenv
进入
cd pyenv
初始化环境
python3 -m venv .
进入bin目录
jihan@jihandeMacBook-Pro pyenv % cd bin
jihan@jihandeMacBook-Pro bin % ls
Activate.ps1 activate activate.csh activate.fish pip pip3 pip3.12 python python3 python3.12
jihan@jihandeMacBook-Pro bin % pip3 list
Package Version
future 1.0.0
pip 24.2
ply 3.11
pure-sasl 0.6.2
PyHive 0.7.0
python-dateutil 2.9.0.post0
simple-ddl-parser 1.6.1
six 1.16.0
sqlglot 25.20.1
thrift 0.20.0
thrift-sasl 0.4.3
wheel 0.44.0
虚拟环境生效
source activate
尝试安装
pip3 install jinja2
查看
退出
deactivate
对比系统自带包
标签:bin,venv,python,虚拟环境,activate,jihan From: https://www.cnblogs.com/smallyi/p/18421047