问题
I get an error when trying to install p4python on macOS 10.15 Catalina.
Command pip install p4python
.
Cannot build P4Python without SSL support
Exception: Parameter –ssl is needed
When I try to install an older version, I also get an error.
Command pip install p4python==2018.2.1743033
.
Cannot match OpenSSL Version string ‘LibreSSL 2.8.3’
Cannot build P4Python without SSL support
The second error seems to be caused by macOS using LibreSSL instead of OpenSSL.
Any ideas how to get it installed?
回答1:
Have you tried doing exactly what it's telling you to do?
pip install p4python -ssl
回答2:
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.
来源:https://stackoverflow.com/questions/59372106/how-do-i-install-p4python-on-macos-10-15-catalina