Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在单独的蟒蛇环境下,在MacOS上安装ROS Kinetic_Python_Macos_Macos Sierra_Ros - Fatal编程技术网

Python 在单独的蟒蛇环境下,在MacOS上安装ROS Kinetic

Python 在单独的蟒蛇环境下,在MacOS上安装ROS Kinetic,python,macos,macos-sierra,ros,Python,Macos,Macos Sierra,Ros,我将在MacOS Sierra 10.12.6上的Python Anaconda发行版下的单独环境下安装ROS Kinetic 这是我的python版本(我在Anaconda中的单独python环境称为“ros Dynamic”): 我跟着导游走了 当我执行“rosdep install”命令时,出现以下错误: (ros-kinetic) jizhe@jizhedeMacBook-Pro ~/ros_catkin_ws  rosdep install --from-paths src --i

我将在MacOS Sierra 10.12.6上的Python Anaconda发行版下的单独环境下安装ROS Kinetic

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

我跟着导游走了

当我执行“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]
显然,“pythonwxtools”和“googlemock”包有问题

我已经通过“brew安装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”软件包有什么问题吗?我该如何解决这个问题呢?

这个问题没有答案。基本上,解决方法是手动安装。不确定python wxtools有什么问题

编辑:如果正在使用,可以将以下行添加到
rosdeps.yaml
文件中:

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

尝试使用--skip keys python wxtools--skip keys google mock安装。这对我来说很有效。

我在谷歌搜索中发现了这个问题,仅供您参考,2021年在macOS上的conda中安装ROS应该非常简单,请参阅以下链接:


rjstar1996的答案对我很有用,但还是要谢谢你。
google-mock:
  osx:
    homebrew:
      packages: []