Python3虚拟环境之pipenv

pipenv是python官方推荐的包管理工具,集成了virtualenv, pip和pyenv三者的功能。集合了所有的包管理工具的长处,自动为项目创建和管理虚拟环境。

安装

复制代码
pip install pipenv

在Pycharm中使用

修改Pipfile的安装源参数url,改为https://pypi.tuna.tsinghua.edu.cn/simple,加快安装速度

复制代码
[[source]]
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
verify_ssl = true
name = "pypi"

安装模块并加入到Pipfile配置项,这里以fastapi为例子

复制代码
pipenv install "fastapi[all]"

查看安装模块

复制代码
pip list
相关推荐
2401_828890646 小时前
使用 BERT 实现意图理解和实体识别
人工智能·python·自然语言处理·bert·transformer
多恩Stone7 小时前
【3DV 进阶-2】Hunyuan3D2.1 训练代码详细理解下-数据读取流程
人工智能·python·算法·3d·aigc
xiaopengbc7 小时前
在 Python 中实现观察者模式的具体步骤是什么?
开发语言·python·观察者模式
Python大数据分析@7 小时前
python用selenium怎么规避检测?
开发语言·python·selenium·网络爬虫
ThreeAu.7 小时前
Miniconda3搭建Selenium的python虚拟环境全攻略
开发语言·python·selenium·minicoda·python环境配置
偷心伊普西隆7 小时前
Python EXCEL 理论探究:格式转换时处理缺失值方法
python·excel
精灵vector8 小时前
LLMCompiler:基于LangGraph的并行化Agent架构高效实现
人工智能·python·langchain
java1234_小锋8 小时前
Scikit-learn Python机器学习 - 特征降维 压缩数据 - 特征选择 - 移除低方差特征(VarianceThreshold)
python·机器学习·scikit-learn