1

perf 基准测试、python 和 ubuntu 世界的新手 :) 我无法运行此命令来在 Ubuntu OS 上进行一些性能基准测试。我尝试通过导航到克隆 perfkit 工具的文件夹来运行该命令。root@---:~/PerfKitBenchmarker/perfkitbenchmarker# ./pkb.py --help。当我这样做时

./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 ./pkb.py --help Traceback(最近一次调用最后一次):文件“./pkb.py”,第 68 行,来自 perfkitbenchmarker 导入存档 ImportError:没有名为 perfkitbenchmarker 的模块

有人可以帮我解决这个问题吗?

谢谢, 古瑟姆

4

0 回答 0