1.安装
pip3 install pipenv # 如果提示pip未安装 可以在 .zshrc上配置python的环境输出
1.1查找python3的安装路径
which python3 # 查找python3的安装路径
/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 #得到的路径地址
1.2 ~./zshrc 配置
# python3
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
source .zshrc # 重新激活配置文件 注意我的 .zshrc 的路径
- 开始正式使用pipenv
pipenv --three #创建当前项目Python3的环境
pipenv shell #激活当前虚拟环境
pipenv --where #显示项目信息
pipenv --venv #显示虚拟环境信息
pipenv --flask #在虚拟环境中安装Flask框架





网友评论