我将在MacOS Sierra 10.12.6上,在Python Anaconda分发下的单独环境中安装ROS Kinetic。以下是我的Python版本(我在Anaconda中的单独Python环境名为“ros-kinetic”):
我按照指导文档:http://wiki.ros.org/kinetic/Installation/OSX/Homebrew/Source进行操作。当我执行“rosdep install”命令时,出现了以下错误:
(ros-kinetic) jizhe@jizhedeMacBook-Pro ~/ros_catkin_ws python --version
Python 3.6.4 :: Anaconda, Inc.
我按照指导文档:http://wiki.ros.org/kinetic/Installation/OSX/Homebrew/Source进行操作。当我执行“rosdep install”命令时,出现了以下错误:
(ros-kinetic) jizhe@jizhedeMacBook-Pro ~/ros_catkin_ws rosdep install --from-paths src --ignore-src --rosdistro kinetic -y
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
actionlib: No definition of [python-wxtools] for OS [osx]
catkin: No definition of [google-mock] for OS [osx]
roslisp: No definition of [google-mock] for OS [osx]
显然,软件包 "python-wxtools" 和 "google-mock" 存在问题。
我已经通过 "brew install wxpython" 安装了 wxPython,并提供以下 wxPython 信息:
(ros-kinetic) jizhe@jizhedeMacBook-Pro ~/ros_catkin_ws brew info wxpython
wxpython: stable 3.0.2.0 (bottled)
Python bindings for wxWidgets
https://www.wxwidgets.org/
/usr/local/Cellar/wxpython/3.0.2.0_1 (1,108 files, 37.9MB) *
Poured from bottle on 2018-02-24 at 03:56:21
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/wxpython.rb
==> Dependencies
Required: wxmac ✔
==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
mkdir -p /Users/jizhe/Library/Python/2.7/lib/python/site-packages
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/jizhe/Library/Python/2.7/lib/python/site-packages/homebrew.pth
我已经运行了该命令:
$ mkdir -p ~/Library/Python/2.7/lib/python/site-packages
$ echo "$(brew --prefix)/lib/python2.7/site-packages" >> ~/Library/Python/2.7/lib/python/site-packages/homebrew.pth
那么,“google-mock”和“python-wxtools”包有什么问题,我该如何解决这个问题呢?