How to install miniconda and build your own virtual environment - WPC-Systems-Ltd/WPC_Python_driver_release GitHub Wiki

What is miniconda?

  • Miniconda is a free minimal installer for conda. It is a small, bootstrap version of Anaconda that includes only conda, Python, the packages they depend on, and a small number of other useful packages, including pip, zlib and a few others.
  • Use miniconda to create a virtual environment with specific Python version. Prefix mini- stand for simplified version of conda.
  • Install necessary packages (for WPC Python driver) via pip in miniconda.
  • Follow six-step guide below to install miniconda and build virtual environment.

1. Install miniconda

  • Choose Just Me (recommended)
  • Do not click Add Miniconda3 to my PATH environment variable

2. Open miniconda

  • Open Anaconda Prompt (miniconda3) and run it as administrator.

3. Creating virtual environment in miniconda

$ conda create --name <myenv> python=<a.b>  
  • <myenv>is environment name you want to create, <a.b>is preferred python version.
  • For example: If I want to create myenv310 environment with python version 3.10.

conda create --name myenv310 python=3.10

  • Press y in console and starting environment installation.
  • If you see these messages on the screen, it means installation successfully.

4. Enter virtual environment myenv310 in miniconda.

  • Warning: By default, your environment is in base, you have to switch your environment to myenv310 manually.
  • Activate environment myenv310.
$ conda activate <myenv>

conda activate myenv310

5. Installation

Install wpcsys using pip:

$ pip install wpcsys

6. Check installed packages

 $ pip list -v 
⚠️ **GitHub.com Fallback** ⚠️