[英]Install ROS Kinetic on MacOS under a separate Anaconda environment
我正在 MacOS Sierra 10.12.6 上的 Python Anaconda 發行版下的單獨環境下安裝 ROS Kinetic。
這是我的 python 版本(我在 Anaconda 中的單獨 python 環境稱為“ros-kinetic”):
(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”有什么問題,我該如何解決這個問題?
嘗試使用 --skip-keys python-wxtools --skip-keys google-mock 進行安裝。 它對我有用。
這個問題有一張票。 基本上解決方法是手動安裝googletest 。 不確定python-wxtools
有什么問題。
編輯:如果您使用的是ros-install-osx ,您可以rosdeps.yaml
添加到您的rosdeps.yaml
文件中:
google-mock:
osx:
homebrew:
packages: []
我從 Google 搜索中發現了這個問題,僅供參考,在 2021 年在 macOS 上的 conda 中安裝 ROS 應該非常簡單,請參閱以下鏈接:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.