小编ens*_*ger的帖子

我可以在Windows上的Git Bash中使用gcloud吗?

所以,我已经安装了Git,Git Bash,Python2.7,并且我刚刚根据官方指南安装了Google Cloud SDK . 使用Windows 10.

在cmd.exe或"Google Cloud SDK Shell"中, gcloud运行正常.

然而,在Git Bash中(我更喜欢使用的终端)gcloud返回以下输出(屏幕截图).

在此输入图像描述

echo $PATH 在Git Bash中确实包含了Google SDK的路径(此处突出显示).

在此输入图像描述

我错过了什么吗?$ PATH中是否有任何可能与gcloud冲突的内容,或者我是否以某种方式错误配置了路径?

我很欣赏任何见解.


UPDATE.这是输出env|grep PATH.我不确定它告诉我的是什么.PATH中的任何其他可执行文件都在工作(vagrant,conda,python等),但gcloud不是.

在此输入图像描述

git-bash gcloud google-cloud-sdk

17
推荐指数
3
解决办法
6207
查看次数

Vagrant Up失败,因为名称已存在

我最近开始在我的本地Wordpress开发环境中使用Virtualbox,Vagrant和VVV.它很光滑.

我遇到的一个问题是,在关闭'流浪汉停止'之后,下次我开始'流浪汉'时我得到了这个错误:

==> default: Setting the name of the VM: vagrant-local 
The name of your virtual machine couldn't be set because VirtualBox
is reporting another VM with that name already exists. Most of the
time, this is because of an error with VirtualBox not cleaning up
properly. To fix this, verify that no VMs with that name do exist
(by opening the VirtualBox GUI). If they don't, then look at the
folder in the error message from VirtualBox below and …
Run Code Online (Sandbox Code Playgroud)

wordpress virtual-machine web-development-server vagrant

9
推荐指数
2
解决办法
9410
查看次数

导入错误:没有名为“pydub”的模块

我正在创建一个简单的脚本,该脚本将用于pydub根据文件名从目录中获取文件,然后将其中一些文件拼接在一起并导出结果。

我的脚本在 Windows 环境(Win 7、python 3.4)中运行良好,但现在我尝试在 OSX 上运行。

我已经安装了所有必要的组件 - ffmpeg, libav。我刚刚安装pydubpip直接从github拉取。

我的文件以输入语句开头from pydub import AudioSegment,这就是我得到的:

Traceback (most recent call last):
  File "functions.py", line 2, in <module>
    from pydub import AudioSegment
ImportError: No module named 'pydub'
Run Code Online (Sandbox Code Playgroud)

想法?我缺少什么?任何帮助是极大的赞赏!

python ffmpeg pydub

5
推荐指数
1
解决办法
4万
查看次数

Jekyll 在构建时输出 Gemfile、Gemfile.lock。我怎样才能/应该防止这种情况发生?

jekyll build正在我的目录中创建 Gemfile 和 Gemfile.lock _site

两个问题:

  1. 我应该担心将这些文件包含在生产中吗?
  2. 如果是,我怎样才能防止它们生成?

对任何答案持开放态度,包括对我来说尚不明显的答案。

谢谢你!

这是我的环境的屏幕截图。您可以看到 Gemfile 和 Gemfile.lock 是在 中 _site创建的。

在此输入图像描述

ruby jekyll

3
推荐指数
1
解决办法
680
查看次数