ModuleNotFoundError:没有名为“ P4”的模块

问题描述

我想将python库用于perforce。我已经通过导入P4创建了python脚本。为了使用此功能,我按照以下步骤安装了perforce-p4python3

在/etc/apt/sources.list.d/perforce.list中创建了一个包含以下内容的文件

deb http://package.perforce.com/apt/ubuntu/仿生发布

wget -qO-https://package.perforce.com/perforce.pubkey |须藤apt-key 添加-sudo apt-get update

sudo apt安装perforce-p4python

当我执行python脚本时,我遇到错误,

import P4
ModuleNotFoundError: No module named 'P4'

当我尝试再次安装时,

sudo apt install perforce-p4python3
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    perforce-p4python3 is already the newest version (2020.1-1983437~bionic).
    0 upgraded,0 newly installed,0 to remove and 100 not upgraded.

当我进行点冻结时,我看不到p4python。我错过了什么吗?如何在python中使用P4()功能?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)