Python crashing on MacOS 10.15 Beta (19A582a) with “/usr/lib/libcrypto.dylib”

I just came across the same problem and felt a bit uncomfortable to manually link things around. I was able to solve the problem by simply Installing openssl via homebrew: brew install openssl Pointing towards the dynamic libraries from openssl via DYLD_LIBRARY_PATH: export DYLD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$DYLD_LIBRARY_PATH I’ve just added that line to my .zshrc. Edit: According to … Read more

How to automatically activate virtualenvs when cd’ing into a directory

Add following in your .bashrc or .zshrc function cd() { builtin cd “$@” if [[ -z “$VIRTUAL_ENV” ]] ; then ## If env folder is found then activate the vitualenv if [[ -d ./.env ]] ; then source ./.env/bin/activate fi else ## check the current folder belong to earlier VIRTUAL_ENV folder # if yes then … Read more

oh my zsh showing weird character ‘?’ on terminal

Installing a powerline patched font will solve this. This official documentation provides description about installing poweline fonts. There are two ways to enable powerline patched font in iTerm2. Set a powerline patched font as default. Set a powerline patched font for only Non-ASCII characters and use another font for code. Bonus: Collection of powerline patched … Read more

How to run “nvm” in “oh my zsh”?

You can use zsh-nvm or enable it yourself by adding following lines to your ~/.zshrc export NVM_DIR=~/.nvm [ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” Extra: For faster shell initialization, I use lazynvm which only loads node when needed lazynvm() { unset -f nvm node npm export NVM_DIR=~/.nvm [ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” # … Read more

zsh command cannot found pip

Maybe you have installed both python2 and python3. python3 may have been installed later. You may try to use pip3 instead of pip. First, input the command: pip3 -V If you see the version, the pip3 can be used. Then you can input command line to install nltk: pip3 install nltk I got a way … Read more

Homebrew installs nvm but nvm can’t be found afterwards?

Did you follow the instructions listed in the caveats? [~] brew info nvm nvm: stable 0.20.0, HEAD https://github.com/creationix/nvm Not installed From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/nvm.rb ==> Caveats Add the following to $HOME/.bashrc, $HOME/.zshrc, or your shell’s equivalent configuration file: source $(brew –prefix nvm)/nvm.sh Node installs will be lost upon upgrading nvm. Add the following above the source line … Read more

Git tab completion not working in zsh on mac

TL;DR one-liner echo ‘autoload -Uz compinit && compinit’ >> ~/.zshrc && . ~/.zshrc this will enable completion in .zshrc and apply the setting to your current terminal session. Explanation: Actually, ZSH does know how to do git completion out of the box, but you need to turn on the completion feature itself (which from the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)