在MacOS上安装ROS-motional,在单独的Python环境下

2024-09-27 19:19:24 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在MacosSierra10.12.6上安装ROS-motional,在一个单独的环境下,Python-Anaconda发行版。在

这是我的python版本(我在Anaconda中单独的python环境称为“ros-motional”):

(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”命令时,出现以下错误:

^{pr2}$

显然,包“pythonwxtools”和“googlemock”有问题。在

我已经通过“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

那么,“googlemock”和“pythonwxtools”包出了什么问题,我该如何解决这个问题?在


Tags: modules环境libpackageslibrarywxpythonsiteros
2条回答

尝试使用skip keys安装python wxtools skip keys google mock。它对我有用。在

本期有a ticket。基本上解决方法是手动安装googletest。不确定python-wxtools出了什么问题。在

编辑:如果您使用的是ros-install-osx,可以将以下行添加到rosdeps.yaml文件中:

google-mock:
  osx:
    homebrew:
      packages: []

相关问题 更多 >

    热门问题