/Installing Python, Atom editor and Virtualenv

Installing Python, Atom editor and Virtualenv

  • Install Python from here. I recommend the 3.5.3 version. Tick add python to path on the first screen of installation
  • Install Atom editor from here
  • Open atom and press Ctrl+,
  • Go to Install and install sync-settings
  • Make a Github account if you don’t have one and follow all the instructions mentioned here
  • After you have setup your access token and gist ID, put that info in settings of sync-settings
  • Press Ctrl+shift+P
  • Write sync-settings:fork
  • Paste this gist ID – 6a7e8e3b074a06b43ebfc70d3e41c593
  • This will sync all shortcuts and packages to my current state. Due to this, you will end up saving a lot of time in finding the best packages to install. Note: I keep Ctrl + enter as shortcut for my code execution. Default is Ctrl + Shift + enter
  • Later go to settings and check out all the packages and their functionalities
  • Run these lines to install pep8 and Hydrogen dependencies. pep8 does auto-formatting of Python code and Hydrogen allows running code line by line and also print results inline similar to jupyter notebook
  • pip install autopep8 pycodestyle isort ipykernel
  • python -m ipykernel install –user
  • pip install numpy pandas scipy matplotlib scikit-learn jupyter notebook
  • Write a python script and press Ctrl+Enter to run a line and Ctrl+Shift+Enter to run the whole script
  • If you are facing problem in installing packages, you can download .whl from here

Virtual environment setup

Download and install python 3.5

py -3.5 -m pip install –upgrade pip
Then cd into the repo and run these
py -3.5 -m pip install virtualenv
py -3.5 -m virtualenv env-name
env-name\Scripts\activate #To activate env
pip install -r requirements.txt

deactivate #To deactivate env

An AI evangelist and a multi-disciplinary engineer. Loves to read business and psychology during leisure time. Connect with him any time on LinkedIn for a quick chat on AI!