使用virtualenv和pip构建项目所需的独立Python环境
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ESA_DSQ/article/details/82258737 由于最近刚好有个测试需求,来讲一讲如何使用virtualenv和pip构建项目所需的独立Python环境。关于pip的介绍之前已有一篇博客,链接在下面。今天对pip的介绍主要是关于其他参数。 Python开篇——简介、pip和conda 1 为什么需要独立的Python环境? 2 使用virtualenv和pip来构建纯净和独立的Python环境 2.1 安装 2.2 使用virtualenv创建Python环境 2.3 使用pip安装包 1 为什么需要独立的Python环境? 在讲技术前,想先讲讲目的。为什么我们需要独立的Python环境?这里就借用virtualenv的文档来解释吧。 virtualenv is a tool to create isolated Python environments. The basic problem being addressed is one of dependencies an...