Installation of PyPop7

In order to install pypop7, it is highly recommended to use the Python3-based virtual environment via venv or conda.

Anaconda is a very popular Python programming platform for scientists.

Pip via Python Package Index (PyPI)

Note that pip is the package installer for Python. You can use it to install various packages easily.

pip install pypop7

If the latest cutting-edge version is preferred, you can install directly from the GitHub repository:

git clone
cd pypop
pip install -e .

Conda-based Virtual Environment

You can first use the popular conda tool to create a virtual environment (e.g., named as env_pypop7):

conda deactivate  # close exiting virtual env
conda create -y --prefix env_pypop7  # you can change the name of virtual environment to any
conda activate ./env_pypop7  # for Windows OS (use `conda activate env_pypop7/` for Linux)
conda install -y --prefix env_pypop7 python=3.8.12
pip install pypop7
conda deactivate

Note that the above Python version (3.8.12) can be changed to meet your personal Python3 version (>=3.5).

Although we strongly recommend to use the the conda package manager to build the virtual environment as your working space, currently we do not add this library to conda-forge and leave it for the future (maybe 2024). As a result, you can only use pip install pypop7 for conda.

For MATLAB Users

For Matlab users, MATLAB-to-Python Migration Guide or NumPy for MATLAB Users is highly recommended.