VSCode Conda Installation - dakside/pydemo GitHub Wiki
It can be tricky to setup a complete Python development environment on Windows. The easiest way to setup is to use anaconda which has built-in Python (also comes with many packages by default such as nltk, numpy, etc.) and use an IDE with it.
- Download and install https://www.anaconda.com/download/
- Install Visual Studio code https://code.visualstudio.com/docs/setup/setup-overview
- Download Visual Studio cheat sheet https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-shortcuts-reference
- Install Python module for Visual Studio code https://code.visualstudio.com/docs/python/python-tutorial
- Choose a Python interpreter by pressing
Ctrl+Shift+Pand then typeselect interpreter, then choosePython: Select interpreterfrom the dropdown menu. - Enable unittest (File > Preferences > Settings), this will open settings.json. Edit the right pane (USER SETTINGS) to something like this
// Place your settings in this file to overwrite the default settings
{
"python.unitTest.unittestEnabled": true,
"python.unitTest.pyTestEnabled": false,
"python.unitTest.nosetestsEnabled": false
}
- (Optional) Download and install Git from https://git-scm.com/downloads
- Some useful conda commands
conda create -n conda_py27 python=2.7 anaconda
conda create -n conda_py34 python=3.4 anaconda
source activate conda_py27
# on Windows
activate conda_py27