D:\Anaconda\python.exe E:/python代码/pythonPaChong/wodeshijie.py Traceback (most recent call last): File "E:/python代码/pythonPaChong/wodeshijie.py", line 5, in <module> mc = Minecraft.create() File "D:\Anaconda\lib\site-packages\mcpi\minecraft.py", line 376, in create return Minecraft(Connection(address, port)) File "D:\Anaconda\lib\site-packages\mcpi\connection.py", line 17, in __init__ self.socket.connect((address, port)) ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。D:\Anaconda\python.exe E:/python代码/pythonPaChong/wodeshijie.py Traceback (most recent call last): File "E:/python代码/pythonPaChong/wodeshijie.py", line 5, in <module> mc = Minecraft.create() File "D:\Anaconda\lib\site-packages\mcpi\minecraft.py", line 376, in create return Minecraft(Connection(address, port)) File "D:\Anaconda\lib\site-packages\mcpi\connection.py", line 17, in __init__ self.socket.connect((address, port)) ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
时间: 2023-09-11 20:12:32 浏览: 202
这个错误提示是无法连接到Minecraft服务器,可能是以下原因之一:
1. Minecraft服务器未启动或未在运行时,尝试运行代码
2. Minecraft服务器与代码运行的计算机不在同一台机器上
3. Minecraft服务器的IP地址或端口号与代码中的设置不匹配
你需要检查这些问题并进行相应的更改。
阅读全文