[英]How to get Linux command line functions for Windows?
我在本教程中關注 Caffe。 我正在使用 Windows,所以我沒有 Linux 函數。 有沒有一種簡單的方法可以獲得 Linux 函數? 當我運行 shell 腳本時,它會啟動 Bash 並立即關閉。 它似乎沒有下載任何東西。
#!/usr/bin/env sh
# This scripts downloads the mnist data and unzips it.
DIR="$( cd "$(dirname "$0")" ; pwd -P )"
cd "$DIR"
echo "Downloading..."
for fname in train-images-idx3-ubyte train-labels-idx1-ubyte t10k-images-idx3-ubyte t10k-labels-idx1-ubyte
do
if [ ! -e $fname ]; then
echo "done"
wget --no-check-certificate http://yann.lecun.com/exdb/mnist/${fname}.gz
gunzip ${fname}.gz
echo "done"
fi
done
可以考慮安裝這樣的環境,例如從CYGWIN啟動: https://www.cygwin.com/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.