如何在macOS 10.15 Catalina上安装p4python? [英] How do I install p4python on macOS 10.15 Catalina?

查看:248
本文介绍了如何在macOS 10.15 Catalina上安装p4python?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在macOS 10.15 Catalina上安装p4python时出现错误.
命令pip install p4python.

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

当我尝试安装旧版本时,也会出现错误.
命令pip install p4python==2018.2.1743033.

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

第二个错误似乎是由使用LibreSSL而不是OpenSSL的macOS引起的.

The second error seems to be caused by macOS using LibreSSL instead of OpenSSL.

有什么想法要安装它吗?

Any ideas how to get it installed?

推荐答案

p4python无法安装,因为它没有适用于Python 3.8的软件包. 默认情况下安装的是Python 3版本.最新版本仅包含适用于3.7或更高版本的Python软件包: p4python 2019.1.1858212 PyPI

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

我安装了带有pyenv的Python 3.7,以安装/运行p4python.

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

旧答案:

Perforce技术支持的答案

Mac OS 10.15.2不支持

p4python

p4python is not supported on MacOS 10.15.2.

这篇关于如何在macOS 10.15 Catalina上安装p4python?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆