#!/usr/bin/env python # coding: utf-8 # ## 0x01 # # Linux Migration Windows command tools: # # - [cygwin](http://www.cygwin.com/) subsystem # - [gnuwin32](http://gnuwin32.sourceforge.net/), [minGW](http://www.mingw.org/) maintain the native environment, providing similar solutions where possible # # Python environment issues: # # - pyenv+pipx+poetry # - pyenv allows flexible installation and switching of python versions, paired with poetry for quick environment setup with the corresponding version. # - pipx is a useful tool for upgrading dependencies, without worrying about global compatibility issues. # - Compiled programs usually depend on various packages, which need to be installed as per the developer's instructions. # - Miniconda, Anaconda and similar Python distributions provide complete dependencies. # # Jupyter footnote issues: [jupyter/notebook#1287 (comment)](https://github.com/jupyter/notebook/issues/1287#issuecomment-451080550), also note that such methods require downloading files locally to function properly. # # ## 0x02 # # Install brew # In[ ]: bin/bash(-c, "$(curl, -fsSL, https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)") # Install ruby # In[ ]: brew install ruby echo 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrc # Chrome driver compatibility issues: # # Python manages automatic upgrades with a manager # In[ ]: from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager driver = webdriver.Chrome(ChromeDriverManager().install()) # Install chromedriver with brew # In[ ]: which chromedriver brew install chromedriver brew upgrade chromedriver chromedriver --version