如何使用 Windows 上的命令行在 python 中的项目中安装包?

How to install packages inside a project in python using command line on Windows?

环境:

Windows 10 64bit
Python 3.5.1 32bit
Visual Studio Code

我所知道的

问题

如何在 Windows 上使用命令行在项目 中安装软件包 ?我查看了文档,有一个叫做 VirtualEnv 的东西,但是我在 Windows.

中没有得到这个命令

您可以使用 pip 安装 virtualenv。

pip install virtualenv virtualenvwrapper

安装完成后,您可以参考本指南开始使用 virtualenv。

http://docs.python-guide.org/en/latest/dev/virtualenvs/

VirtualEnv 是您最好的选择。以下 post 中的答案可以帮助您熟悉 VirtualEnv。 Comprehensive beginner's virtualenv tutorial?

到运行它在Windows,看看这个link:

https://virtualenv.pypa.io/en/latest/userguide.html

venv 附带 Python。我不确定插件 virtualenv 和 virtualenvwrapper 有什么优势。 https://docs.python.org/3/library/venv.html?highlight=venv#module-venv