I'm officially back on this journey and along the way I want to help others on their journey too. I've been giving people mock interviews on Discord and gained a new perspective. I'm sharing my notes on what I think is most important. It's personalized and based on my studies and feedback. I'm still debating whether or not I should include a Mathematics portion but if you think so, let me know.
There are a few key things I want to emphasize and put down for posterity:
This is not a complete list but these are the award winners (aka what I found to pop up often enough off the top of my head):
From here on, it's just personal (or class) notes.
I wrote this a long time ago: "Do this for all new Mac install: `sudo easy_install pip`"
Don't do this. Instead, for new installs, `brew install python` and `brew install python3.` Speaking of which, use virtual environment!!
Also, to fix your current installation, you need to find out if your pip installed packages were with --user or sudo:
import site site.getsitepackages() site.getusersitepackages()
Run this in py2 and py3 to get their respective pip installation locations. So from now on, either use --user or virtual environment. Never use sudo! Shame on pip developers for not making --user the default! As a matter of fact:
cd ~/myProject/ python3 -m venv env ls env env/bin/pip3 install [desired module]
Or an alternative for the last line:
To test that you are using the "right" python:
The first time you do this, you should see it in /usr/bin/python or something like that. Now:
source env/bin/activate which python
Now this should show up in myProject.
Use diff to compare current and future Python setup:
pip freeze > ~/Desktop/installed.txt pip -r ~/Desktop/installed.txt
Tuple packing and unpacking is magical.
When doing `pod install` and you get "Abort trap 6," do this:
sudo gem uninstall cocoapods sudo gem install cocoapods pod install
For Atom, in case this [site](http://www.marinamele.com/install-and-configure-atom-editor-for-python) goes down, run the following:
apm install linter pip install flake8 --user pip install flake8-docstrings --user apm install linter-flake8
I don't use it anymore since it keeps getting in my way.