当我执行任何具有“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`