發表文章

目前顯示的是有「linux」標籤的文章

[Debug] 使用 Python argparse 遇到 error: unrecognized arguments

圖片
情境說明 我在  main.py  裡面定義了許多 argument 參數例如長這樣 然後我的  cmd.sh  長這樣 python main.py --model GaussianCopula \ --input_path data/train_raw.csv \ --output_dir data/ \ --num_rows 1000 \ --save_output \ --gen_dim 23 45 24 99

[筆記] 拿到新 Macbook 第一件事 - 終端機美化設定 iTerms 2 + zsh command line

圖片
相關的教學網路文章其實頗多,本篇是針對 2022 年拿到的新筆電環境來更新一下相關做法 OS 版本:macOS Monterey version 12.3 install Homebrew 首先,你需要 mac 的套件管理工具! Homebrew 根據官網的指示,Install Brew /bin/bash -c " $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh) " 接著做這個設定後,就能在終端機使用順利 brew 指令! echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/yuntao/.zprofile eval " $(/opt/homebrew/bin/brew shellenv) "

[筆記] iTerms 2 終端機設置 - 讓 vim 模式裡可以捲動 (scroll)

圖片
 首先 Preference -> Advanced -> 然後搜尋關鍵字 Mouse 可以看到目前 Scroll wheel sends arrow keys when in alternate screen mode 是關起來的狀態

[筆記] tar 的使用情境整理

tar Tips 參考資料 https://www.computerhope.com/unix/utar.htm 壓縮 tar -cvf xxx.tar xxx/ 解壓縮 tar -xvf xxx.tar 檢視 tar 裡面的資料

設定 python 指令連結對應的版本解決 bash: python: command not found

設定 python 指令連結對應的版本 之前沒有設定 python 指令是哪個版本 所以要用 2.7 版的話要直接打 python2.7 太不方便了 # python bash: python: command not found # python2.7 Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 決定設定一下連結