Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install pcpp via python pip




pcpp - A C99 preprocessor written in pure Python, it belongs to Classifiers:

- Topic :: Software Development :: Build Tools

When you know about this project and you want to new install pcpp to support your project or you get trouble as ModuleNotFoundError: No module named "pcpp" or ImportError: cannot import name "pcpp" in your project, let follow this tutorial to install pcpp



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_pcpp_env

- Active the virtual environment

test_pcpp_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_pcpp_env

- Active the virtual environment

source test_pcpp_env/bin/active


Step 2: OK, now, let flow below content to start the installation pcpp

To install pcpp on Windows(CMD):

py -m pip install pcpp

To install pcpp on Unix/macOs:

pip install pcpp


Step 3: If you want to install a specific pcpp version, add ==<pcpp version> to the end command line

Example:

pip install pcpp==1.0.1


Please see the version list below table:

VersionReleased dateCommand
pcpp 1.302021-10-29T13:16:51Windows:

py -m pip install pcpp==1.30

Unix/macOs:

pip install pcpp==1.30

pcpp 1.222020-10-19T10:32:42Windows:

py -m pip install pcpp==1.22

Unix/macOs:

pip install pcpp==1.22

pcpp 1.212019-09-30T10:26:35Windows:

py -m pip install pcpp==1.21

Unix/macOs:

pip install pcpp==1.21

pcpp 1.20.12019-01-07T20:31:50Windows:

py -m pip install pcpp==1.20.1

Unix/macOs:

pip install pcpp==1.20.1

pcpp 1.1.02018-06-20T08:07:01Windows:

py -m pip install pcpp==1.1.0

Unix/macOs:

pip install pcpp==1.1.0

pcpp 1.0.12018-02-21T18:57:49Windows:

py -m pip install pcpp==1.0.1

Unix/macOs:

pip install pcpp==1.0.1


Step 4: Otherwise, you can install pcpp from local archives:

Download the distribution file from pcpp-1.30.tar.gz or the specific pcpp version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_pcpp_downloaded_file>

On Unix/macOs:

pip install <path_to_pcpp_downloaded_file>


List distribution:


Project link:

- Homepage