Before installing P4Python, any previously installed versions should be uninstalled.
As of
P4Python
2015.1, the recommended mechanism for installing
P4Python
is via pip
. For example:
$ pip install p4python
pip
installs binary versions of
P4Python
where possible, otherwise it attempts to automatically build
P4Python
from source.
Windows users can download an installer containing pre-built packages for P4Python from the Perforce web site at https://www.perforce.com/downloads/helix-core-api-python.
When
P4Python
is built without the --apidir
option, setup attempts to
connect to ftp.perforce.com to download the correct version
of the
P4API
binary. If the
P4API
download is successful, it is unpacked into a temporary directory.
When
P4Python
is built and the --ssl
is provided without a path, setup
attempts to determine the correct path of the installed OpenSSL
libraries by executing openssl version
.