我想使用WSL2 Ubuntu在我的PC(Phenix软件包)上运行一些科学程序。它以前曾在wsl上运行,但最近更新到wsl2后,用Python编写的程序之一存在一些问题:
Traceback (most recent call last):
File "/mnt/f/cryoEM/phenix-1.18rc4-3812/build/../modules/phenix/wxGUI2/command_line/main.py", line 23, in <module>
run(sys.argv[1:])
File "/mnt/f/cryoEM/phenix-1.18rc4-3812/build/../modules/phenix/wxGUI2/command_line/main.py", line 16, in run
from wxGUI2 import App
File "/mnt/f/cryoEM/phenix-1.18rc4-3812/modules/phenix/wxGUI2/App.py", line 7, in <module>
from SimpleXMLRPCServer import SimpleXMLRPCServer
File "/mnt/f/cryoEM/phenix-1.18rc4-3812/conda_base/lib/python2.7/SimpleXMLRPCServer.py", line 105, in <module>
import BaseHTTPServer
File "/mnt/f/cryoEM/phenix-1.18rc4-3812/conda_base/lib/python2.7/BaseHTTPServer.py", line 102, in <module>
class HTTPServer(SocketServer.TCPServer):
AttributeError: 'module' object has no attribute 'TCPServer'
我已经检查了所有软件包(BaseHTTPServer,SocketServer),一切似乎都很好。单独使用软件包随附的python和导入模块也可以正常工作。我以前也装有WSL2的计算机正在运行此软件包,没有任何问题。我相信wsl2 Ubuntu级别上缺少某些内容,但无法猜测它是什么。您对我有什么建议吗?谢谢!