How do I install p4python on macOS 10.15 Catalina?

我的未来我决定 提交于 2020-05-17 06:48:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!