Python ImportError:没有名为inspect的模块

Python ImportError:没有名为inspect的模块,python,windows-10,conda,inspect,renderdoc,Python,Windows 10,Conda,Inspect,Renderdoc,我正在使用renderdocui interactive python shell导入inspect,但出现以下错误: >> import inspect Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named inspect 我该如何解决这个问题 首先,您在问题中的示例中输入了错误的Anaconda C:\U

我正在使用renderdocui interactive python shell导入inspect,但出现以下错误:

>> import inspect
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named inspect
我该如何解决这个问题


首先,您在问题中的示例中输入了错误的
Anaconda

C:\Users\mona>ananconda search -t conda inspect
应改为:

C:\Users\mona>anaconda search -t conda inspect
您可能需要告诉renderdocui如何找到Python解释器。在Windows上,您的路径可能是:

C:\Users\Jane Smith\anaconda\bin\python
我找不到关于renderdocui的任何文档,但是如果您有任何文档,它应该会将您引导到设置路径的位置。是否有设置面板或文件


为了回答问题的后半部分,您将无法使用conda独立安装inspect,因为inspect是Python内置模块

您的本地目录或搜索路径中是否有名为inspect.py的文件?Python可能发现了这一点,并错误地尝试导入它而不是实际的模块;打印('\n'.join(sys.path)),或者如果该方法不起作用,请尝试以下方法:导入sys;打印'\n'.join(sys.path),然后如何安装它?我在导入操作系统模块时也遇到同样的错误。它说
ImportError:没有名为os的模块
您尝试过这个吗?:import sys;打印('\n'.join(sys.path)),则不应安装它。它是一个内置模块,这意味着,除非某个东西非常不标准,或者已经损坏,否则它应该就在那里。
C:\Users\Jane Smith\anaconda\bin\python