无法运行/包B.py我得到一系列的帮助命令/包B.py:第58行:找不到import:命令

2024-09-27 21:27:55 发布

您现在位置:Python中文网/ 问答频道 /正文

对perf基准测试、python和ubuntu世界还不熟悉:) 我无法运行这个命令在Ubuntu操作系统上做一些性能基准测试。我尝试通过导航到克隆perfkit工具的文件夹来运行该命令。根@---:~/perfkitbanchmarker/perfkitbanchmarker#/包B.py--救命啊。当我这么做的时候

./pkb.py: line 58: import: command not found
./pkb.py: line 59: import: command not found
./pkb.py: line 60: import: command not found
./pkb.py: line 61: import: command not found
./pkb.py: line 62: import: command not found
./pkb.py: line 63: import: command not found
./pkb.py: line 64: import: command not found
./pkb.py: line 65: import: command not found
./pkb.py: line 66: import: command not found
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker
from: can't read /var/mail/perfkitbenchmarker.configs
from: can't read /var/mail/perfkitbenchmarker.linux_benchmarks
from: can't read /var/mail/perfkitbenchmarker.publisher
./pkb.py: line 96: LOG_FILE_NAME: command not found
./pkb.py: line 97: REQUIRED_INFO: command not found
./pkb.py: line 98: syntax error near unexpected token (' ./pkb.py: line 98:REQUIRED_EXECUTABLES = frozenset(['ssh', 'ssh-keygen', 'scp', 'openssl'])'

我也尝试使用命令,但得到相同的导入错误:

Python/包B.py--救命 回溯(最近一次呼叫): 文件”/包B.py“,第68行,in 从perfkitbenchmarker导入存档 ImportError:没有名为perfkitbenchmarker的模块

有人能帮我解决这个问题吗?你知道吗

谢谢你, 古瑟姆


Tags: frompyimport命令readvarlinenot

热门问题