Posts

Showing posts with the label macOS

在 Mac 上安裝 pipenv(套件管理工具)

安裝教學 Configure a Pipenv environment Pipenv & Virtual Environments 確認 pip 已安裝: pip --version 結果:pip 21.1.3 from /.../.pyenv/versions/3.9.6/... pip3 --version 結果:pip 21.1.3 from /.../.pyenv/versions/3.9.6/... 安裝 pipenv: pip install --user pipenv 安裝後的訊息: WARNING: The script virtualenv-clone is installed in '/Users/flora/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script virtualenv is installed in '/Users/flora/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts pipenv and pipenv-resolver are installed in '/Users/flora/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully instal...

在 Mac 上安裝 pyenv(python 版本管理工具)

安裝教學: Managing Multiple Python Versions With pyenv 執行完 curl https://pyenv.run | bash 後得到的指示: WARNING: seems you still have not added 'pyenv' to the load path. # (The below instructions are intended for common # shell setups. See the README for more guidance # if they don't apply and/or don't work for you.) # Add pyenv executable to PATH and # enable shims by adding the following # to ~/.profile: export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" # If your ~/.profile sources ~/.bashrc, # the lines need to be inserted before the part # that does that. See the README for another option. # If you have ~/.bash_profile, make sure that it # also executes the above lines -- e.g. by # copying them there or by sourcing ~/.profile # Load pyenv into the shell by adding # the following to ~/.bashrc: eval "$(pyenv init -)" # Make sure to restart your entir...

安裝完 MySQL Workbench 卻打不開的解決方式

我的作業系統:macOS Big Sur v11.2.1 MySQL Workbench 版本:macOS (x86, 64-bit), DMG Archive 8.0.23 參考資料: MySQL Workbench cannot open on Mac - stackoverflow 依照回答者 Phil Nguyen 的建議,我在終端機輸入 /Applications/MySQLWorkbench.app/Contents/MacOS/MySQLWorkbench --verbose 得到跟回答者 EdM 一樣的結果 Fatal Python error: initfsencoding: unable to load the file system codec, sys.path = ['/Applications/MySQLWorkbench.app/Contents/Resources/libraries', '/Library/Frameworks/Python.framework/Versions/3.7/lib/python37.zip', '/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7', '/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload'] ModuleNotFoundError: No module named 'encodings' 所以問題大概是出在我沒有安裝 python 然後按照回答者 yakob abada 建議的第一步,在終端機執行 brew install python@3.7 得到 Error: python@3.7: the bottle needs the Apple Command Line Tools to be installed.   You can install them, if desired, with:     xcode-select --install (遵命,電腦叫我安裝什麼,我就安裝什麼)所以我先執行了 xcode-select -...