我正在尝试安装基于 Ruby 的工具调用Warvox,当我尝试执行“make”时,出现以下错误
user@localhost:/home/warvox$ sudo make database
Could not find lumberjack-1.0.9 in any of the sources
Run `bundle install` to install missing gems.
make: *** [database] Error 7
Run Code Online (Sandbox Code Playgroud)
所以我安装了伐木工人
user@localhost:/home/warvox$ gem install lumberjack
Successfully installed lumberjack-1.0.9
Parsing documentation for lumberjack-1.0.9
Done installing documentation for lumberjack after 0 seconds
1 gem installed
Run Code Online (Sandbox Code Playgroud)
然而,在安装了丢失的 gem 之后,错误仍然是一样的。任何建议/建议。
我试图逃避反斜杠,但试图了解正确的做法
foo = r'C:\Users\test.doc'
Run Code Online (Sandbox Code Playgroud)
以上工作正常
但是,当我想转义存储在变量中的路径时
例如 :
parser.add_argument('-s', '--source', type = str, help = 'Source file path')
Run Code Online (Sandbox Code Playgroud)
现在,如何转义值 - args.source