我正在尝试使用 Ubuntu 16.04 和 Python 3.8 启动并运行 Docker 映像,以便可以构建ROS2 狐狸但我对他们的模块有几个问题,特别是qt_gui_cpp
:
--- stderr: qt_gui_cpp
Traceback (most recent call last):
File "/opt/ros/foxy/share/python_qt_binding/cmake/sip_configure.py", line 9, in <module>
import sipconfig
ModuleNotFoundError: No module named 'sipconfig'
make[2]: *** [sip/qt_gui_cpp_sip/Makefile] Error 1
make[1]: *** [src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/all] Error 2
make: *** [all] Error 2
---
Failed <<< qt_gui_cpp [14.7s, exited with code 2]
和:
--- stderr: test2to3
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'egg_info'
---
Failed <<< test2to3 [0.54s, exited with code 1]
在我的各种尝试中,我尝试过从头开始安装这样明显的东西:
ENV NEW_PYTHON_BASE_VERSION=3.8
ENV NEW_PYTHON_VERSION=${NEW_PYTHON_BASE_VERSION}.0
RUN curl -L https://www.python.org/ftp/python/${NEW_PYTHON_VERSION}/Python-${NEW_PYTHON_VERSION}.tgz | \
tar xz && \
cd Python-${NEW_PYTHON_VERSION} && \
./configure --enable-optimizations && \
make altinstall && \
rm -rf Python-${NEW_PYTHON_VERSION}
RUN pip3 install -U setuptools sip ez_setup
但似乎没有什么效果。这个类似的问题对我来说也不起作用。有什么建议我应该去哪里找吗?