PC Installer Script ================= Installation steps 1. :ref:`Setup Github Account` 2. :ref:`Download and Install Git` 3. :ref:`Download and Install Anaconda3` 4. :ref:`Download and Install Microsoft Visual C++ Redistributable for Visual Studio` 5. :ref:`Download and Run installer` 6. :ref:`Setup Environment` 7. :ref:`Setup Plugins` 8. :ref:`Setup Preferences` Setup Github Account ---------------------- 1. Go to github.com and create an account 2. Setup a `Personal Access Token `_ a. Sign in to your account b. Go to your Settings ``github.com/settings/profile`` c. Go to "Developer settings" ``github.com/settings/apps`` d. Go to "Personal access tokens" ``github.com/settings/tokens`` e. Generate new token, make sure "repo" is selected in "Select scopes" f. Copy the token for use when `Setup Preferences`_ Download and Install Git ----------------------------- https://git-scm.com/downloads Download and Install Anaconda3 ---------------------------------- https://www.anaconda.com/distribution/ Download and Install Microsoft Build Tools 2015 Update 3 ------------------------------------------------------------------------------ https://visualstudio.microsoft.com/vs/older-downloads/ Download and Run installer ---------------------------- use ``Powershell.exe`` or equivalent .. code-block:: powershell $ Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/NMGRL/pychron/develop/app_utils/install.py' -OutFile install.py .. code-block:: powershell $ cd /path/to/install.py $ python install.py .. note:: Currently on a PC not all the dependencies are automatically installed. You will need to do the following before proceeding. 1. Open Anaconda Bash and activate the pychron environment .. code-block:: powershell $ conda activate pychron3 2. Install the PIP dependencies .. code-block:: powershell $ pip install uncertainties peakutils qimage2ndarray chaco Setup Environment --------------------- Launch Pychron and select your Pychron environment directory, typically ``/Users//Pychron`` or ``/Users//Pychron3`` Setup Plugins --------------- The following plugins are the minimum requirements for data reduction. Additional plugins may be necessary or desired for enhanced functionality. Enabled/Disable Plugins by manually editing the ``initialization.xml`` file or ``MenuBar/Help/Edit Initialization`` - DVC - GitHub - Pipeline - ArArConstants Setup Preferences ------------------- Launch Pychron and go to ``Pychron/Preferences`` 1. Go to ``Preferences/GitHub`` and enter in the Personal access token generated in :ref:`Setup Github Account` 2. Go to ``Preferences/DVC`` and setup a database connection