2018-12-27 07:13:58 +08:00
|
|
|
@ECHO OFF
|
|
|
|
:: Performs necessary setup steps to allow the use of
|
|
|
|
:: virtualenv commands such as "mkvirtualenv [ENV_NAME]"
|
|
|
|
:: for creating and using Python virtual environments.
|
|
|
|
|
2022-10-31 08:31:16 +08:00
|
|
|
py -m pip install --upgrade pip --user
|
|
|
|
py -m pip install --upgrade wheel --user
|
2020-08-18 04:23:52 +08:00
|
|
|
py -m pip install virtualenvwrapper-win --force-reinstall --user
|
2018-12-27 08:27:16 +08:00
|
|
|
echo:
|
|
|
|
echo:
|
|
|
|
echo: *** You may now use virtualenv commands in your command shell. ***
|
|
|
|
echo:
|
|
|
|
echo: virtualenv commands:
|
|
|
|
echo: * "mkvirtualenv [ENV_NAME]" - Create a Python virtual environment
|
|
|
|
echo: * "deactivate" - Exit the current virtual environment
|
|
|
|
echo: * "workon [ENV_NAME]" - Enter an existing virtual environment
|
|
|
|
echo: * "lsvirtualenv" OR "workon" - List all virtual environments
|
|
|
|
echo: * "rmvirtualenv [ENV_NAME]" - Delete a virtual environment
|
|
|
|
echo:
|
|
|
|
echo: Example:
|
|
|
|
echo: mkvirtualenv seleniumbase
|
2019-10-02 13:34:16 +08:00
|
|
|
echo: mkvirtualenv seleniumbase --python=[PATH_TO_PYTHON]
|
2018-12-27 08:27:16 +08:00
|
|
|
echo:
|