0

Environment:

Windows 10 64bit
Python 3.5.1 32bit
Visual Studio Code

What I know

  • pip install xxxx install globally
  • Using Pycharm install via settings

Problem

How can I install a package inside a project using the command line on Windows? I looked through the documents, there is something called a VirtualEnv, but I don't get this command in Windows.

Jason
  • 2,278
  • 2
  • 17
  • 25
Albert Gao
  • 3,653
  • 6
  • 40
  • 69

3 Answers3

0

You can install virtualenv using pip.

pip install virtualenv virtualenvwrapper

Once installed, you can refer this guide to get started with virtualenv.

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

Sagar Sharma
  • 118
  • 1
  • 1
  • 7
0

VirtualEnv is your best bet. The answers in the following post can help you get familiar with VirtualEnv. Comprehensive beginner's virtualenv tutorial?

To run it on Windows, have a look at this link:

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

Community
  • 1
  • 1
Ash Sharma
  • 470
  • 3
  • 18
  • Also refer to the following links: http://www.tylerbutler.com/2012/05/how-to-install-python-pip-and-virtualenv-on-windows-with-powershell/ http://pymote.readthedocs.org/en/latest/install/windows_virtualenv.html – Ash Sharma Apr 14 '16 at 04:36
0

venv comes with Python. I am not sure what advantages there are to the addon virtualenv and virtualenvwrapper. https://docs.python.org/3/library/venv.html?highlight=venv#module-venv

lit
  • 14,456
  • 10
  • 65
  • 119