/virtualenv-creator

A fast and easy python virtual environment creator which allows for python version selection.

Primary LanguageShellMIT LicenseMIT

virtualenv-creator

A fast and easy python virtual environment creator for Bash and PowerShell that:

  • allows for fast virtualenv creation with easy python version selection, fast
    library installation and optional automatic activation,
  • optional file can be created containing a list of pip libraries which can be
    installed when creating a new virtualenv,
  • gives a list of all the virtualenvs created with this tool which the user can
    select from and either activate or delete.

Screenshots

Creating a Virtualenv (in Bash)

image

Using The List (in PowerShell)

image

Supported Shells

Linux

  • Bash
  • ZSH

Mac OS

(in testing)

Windows

  • PowerShell
  • Windows PowerShell

Dependencies

  • python3.5+
  • pip/pip3
  • virtualenv

Installation

  1. Clone the git repo into desired directory:

    git clone https://github.com/declancm/virtualenv-creator.git
  2. Run the install file:

    python3 install.py

Usage

Enter pyvenv into your shell to either create a virtualenv or see a list of
created virtualenvs.

A libraries.txt file can be created in the virtualenv directory (as shown in the
file tree), which will be read. List each library which will be installed on a
separate line. The script will automatically detect this file and ask if the
libraries should be installed to your new virtualenv.

Example File Tree

.
├── data/
│   ├── Bash/
│   │   └── virtualenvList.txt
│   └── PowerShell/
│       └── virtualenvList.txt
├── src/
│   ├── Bash/
│   │   ├── create.sh
│   │   ├── list.sh
│   │   └── pyvenv.sh
│   └── PowerShell/
│       ├── create.ps1
│       ├── list.ps1
│       └── pyvenv.ps1
├── install.py
├── libraries.txt
└── README.md