ImportError:没有名为os的模块

时间:2016-12-19 10:04:19

标签: python linux unix system-administration

当我执行任何具有“import os”的命令时,显示错误:

没有名为os的模块

例如:

$ sudo -iCould not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/opt/tss/bin/scbtools.py", line 30, in <module>
    import sys, os, re
ImportError: No module named os`

0 个答案:

没有答案