在OS X 10.10下的PyCharm中使用VirtualBox设置Vagrant时出错 [英] Error setting up Vagrant with VirtualBox in PyCharm under OS X 10.10

查看:215
本文介绍了在OS X 10.10下的PyCharm中使用VirtualBox设置Vagrant时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置远程解释器并选择Vagrant时,在PyCharm中出现以下错误:

When setting up the remote interpreter and selecting Vagrant, I get the following error in PyCharm:

Can't Get Vagrant Settings: [0;31mThe provider 'virtualbox' that was requested to back the machine 'default' is reporting that it isn't usable on this system. The reason is shown bellow: Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed. Vagrant uses the `VBoxManage` binary that ships with VirtualBox, and requires this to be available on the PATH. If VirtualBox is installed, please find the `VBoxManage` binary and add it to the PATH environment variable.[0m

现在,从终端上,一切正常.我可以执行向上"操作并ssh到虚拟机中而不会出现问题.端口以及本地文件都会转发.因此,问题仅存在于PyCharm中.我已经安装了Java 1.8

Now, from a terminal, everything works. I can do 'up' and ssh into the VM without issues. Ports are forwarded as well as local files. So the issue is only in PyCharm. I have installed Java 1.8

PATH是:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

PATH is: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

哪个VBoxManage:/usr/local/bin/VBoxManage并在终端中工作.

which VBoxManage: /usr/local/bin/VBoxManage and works in terminal.

请注意,这是今天早晨完成的OS X的全新安装. Vagrant版本是1.7.3,VirtualBox是4.3.30,PyCharm是4.5.3

Note that this is a fresh install of OS X done this morning. Vagrant version is 1.7.3, VirtualBox is 4.3.30 and PyCharm is 4.5.3

推荐答案

事实证明,此问题是PyCharm中的一个已知错误.

Turns out, this problem is a known bug in PyCharm.

在他们修复该问题之前,您可以通过使用charm命令从终端窗口启动PyCharm来解决该问题.

Until they fix it, you can get around the problem by launching PyCharm from a terminal window with the charm command.

Pycharm 4.5下的流浪汉1.7.3和VirtualBox 4.3.30:路径问题

这篇关于在OS X 10.10下的PyCharm中使用VirtualBox设置Vagrant时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆