How do I install p4python on macOS 10.15 Catalina?

Solution 1:

p4python can not be installed because it doesn't have a package for Python 3.8. Which is the Python 3 version installed by default. The latest release only has packages for Python up-to 3.7: p4python 2019.1.1858212 PyPI

I installed Python 3.7 with pyenv to get p4python installed/working.

// install pyenv and required python version
brew install pyenv
pyenv install 3.7.7

// add following to ~/.bash_profile
export PYENV_ROOT="$HOME/.pyenv/shims"
export PATH="$PYENV_ROOT:$PATH"
export PIPENV_PYTHON="$PYENV_ROOT/python"

// go to project directory and set python version
cd project
pyenv local 3.7.7
// check verion
python --version
// install p4python
pip install p4python

Old answer:

Answer from Perforce Technical Support

p4python is not supported on MacOS 10.15.2.