A vscode extension for installing/updating pip packages into virtual environments
- Invoke via command
pip-packages: Update pip packages from vscode command window
- Install specified pip packages with specified versions
- Supports multiple installations of python
- Supports multiple virtual environments
Valid python install(s) must exist on the system before this extension will work.
Configuration in vscode must be set to point at the valid python install(s), and must specify specific packages (see extension settings section).
Boolean value that toggles auto-update behavior. Setting 'true' will cause the extension to update packages automatically when vscode is launched.
Note: The behavior is still available by the command regardless of the value of this setting.
The default value is to not run the auto-update when vscode launches. However, configuration will still be loaded as part of the startup logic.
A list of packages to install and (optionally) specific versions. Ommitting the version or specifying "latest" will pull down the latest version of the package.
The default value is an empty array. At least one package must be specified.
List of virtual environments in which packages should be installed. Ommitting this setting will cause the packages to be installed in the system python installed in the
Virtual environment settings may also specify a path to python that should be used for the virtual environment. If this value is omitted, system python (in
$PATH) will be used to install the virtual environments.
If the path to python that is specified does not contain a valid
pip executable, the environment will be ignored.
Virtual environment settings may also specify a path on the system to store virtual environments. If this value is not configuration, the default of
~/.virtualenvs is used.
virtualenvwrapper will be installed into each python installation automatically in order to support virtual environments.
Note: The value of
$WORKON_HOME will be overwritten if a path to the virtual environments is specified in these settings
Entries are as follows:
- Virtual environment 'TestEnv' using system python in
- Virtual environment 'TestEnvPy36' using python in
/usr/bin/python36 (MacOS/Linux example)
- No virtual environment, installed using python in
C:\\python27 (Windows example)
- Virtual environment 'InDifferentEnvs' will be created/stored in specified directory
Note: Sample includes mac/windows paths together, which is not a supported production use-case.
The default value is an empty array. This will install packages into default environment (no environment) using the system python.
Timeout (in milliseconds) when invoking external processes. If the process does not complete in the specified time limit, failure is assumed and the process is aborted.
Packages with many dependencies may take a few minutes when installing on a clean system. This value may need to be increased in order for a successful invocation.
The default value is 60000 (1 minute).
- There are many issues using the default python that ships with macOS. It is highly recommended to download/install another python from python.org.
Fix regression where changing a configuration would cause it to reload incorrectly
Output will be displayed to the console in real-time instead of all at the end.
Use more appropriate event for catching configuration changes
Add auto-reload when configuration is changed. Add command for manually reloading configuration.
Fix bugfix for virtual environment commands on windows
Minor bugfix for virtual environment creation on windows
Extension is now supported on both Windows and macOS
Use value specified timeout when invoking external processes
Addition of 'AutoUpdate' configuration option and auto-update behavior
Minor updates (see changelog)