ERROR: (localhost:2003) failed to connect: [Errno 111] Connection refused
2. 解决办法:1. 确保使用的python为python3.5及以上
2. 命令为:
./CarlaUE4.sh -carla-server -windowed -carla-world-port=2003 python run_CIL.py --port=2003
其中,i) 检查python命令输出为3.5及以上;
ii) 不要添加“-carla-no-networking”, 因为他的功能为“The -carla-no-networking argument is to ensure that the server-mode is not enabled.” 所以这是笔者花了一周时间服务器和客户端都连接不上的最主要原因;
iii) 同时,记得添加“-carla-server” ;
iv) 最后,若还出现以上错误,可以把端口都改换为2000/2001/2002。
2. 所用到的包:Package Version
-------------------- ---------
absl-py 0.15.0
astor 0.8.1
bleach 1.5.0
cached-property 1.5.2
cycler 0.10.0
dataclasses 0.8
decorator 4.4.2
future 0.17.0
gast 0.2.2
google-pasta 0.2.0
grpcio 1.41.0
h5py 3.1.0
html5lib 0.9999999
imageio 2.9.0
imgaug 0.4.0
importlib-metadata 4.8.1
Keras 2.3.0
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.2
kiwisolver 1.3.1
Markdown 3.3.4
matplotlib 2.2.3
networkx 2.5.1
nmap 0.0.1
numpy 1.19.3
olefile 0.46
opencv-python 4.5.4.58
opt-einsum 3.3.0
Pillow 8.4.0
pip 20.3.4
protobuf 3.18.1
pygame 1.9.5
pyparsing 2.4.7
python-dateutil 2.8.2
pytz 2021.3
PyWavelets 1.1.1
PyYAML 6.0
scikit-image 0.17.2
scipy 0.18.1
setuptools 58.2.0
Shapely 1.7.1
six 1.16.0
tensorboard 1.15.0
tensorflow 1.15.0
tensorflow-estimator 1.15.1
tensorflow-gpu 1.15.0
termcolor 1.1.0
tifffile 2020.9.3
torch 1.5.1
typing-extensions 3.10.0.2
Werkzeug 2.0.2
wheel 0.37.0
wrapt 1.13.2
zipp 3.6.0



