|
4 | 4 | How to install the DDS CLI on Windows |
5 | 5 | ====================================== |
6 | 6 |
|
7 | | -*Instructions for windows are coming* |
| 7 | +1. Download and install Python > 3.7 |
| 8 | +====================================== |
| 9 | + |
| 10 | +a. Go to https://www.python.org/downloads/windows/ |
| 11 | + |
| 12 | +.. image:: _static/windows/python_install.png |
| 13 | + :align: center |
| 14 | + |
| 15 | +b. In the left column, locate the **Windows installer** of a suitable version e.g. the **Python 3.9.10 - Jan. 14, 2022** release and download the associated .exe file. |
| 16 | + |
| 17 | +.. image:: _static/windows/python_exe.png |
| 18 | + :align: center |
| 19 | + |
| 20 | +.. note:: |
| 21 | + |
| 22 | + For most systems, the `Windows installer (64-bit) <https://www.python.org/ftp/python/3.9.10/python-3.9.10-amd64.exe>`_ will be the correct version. If your computer is older than a decade, chances are that you might need to select *32-bit binary* or a slightly older version of Python. |
| 23 | + |
| 24 | +c. Click the downloaded **python-3.9.10-amd64.exe**. This will open the Python Installer. |
| 25 | + |
| 26 | +.. image:: _static/windows/python_install-0.png |
| 27 | + :align: center |
| 28 | + |
| 29 | +d. Make sure the **Add Python 3.9 to PATH** box is checked and proceed with the installation. |
| 30 | + |
| 31 | +.. image:: _static/windows/python_install-1.png |
| 32 | + :align: center |
| 33 | + |
| 34 | +.. image:: _static/windows/python_install-2.png |
| 35 | + :align: center |
| 36 | + |
| 37 | +.. note:: |
| 38 | + |
| 39 | + For most users, the default installation options will work. On a shared or office computer, you might need to uncheck the Install launcher for all users, if you lack administrative privileges on the system. To do so, select the Customize installation option. |
| 40 | + |
| 41 | +e. Click **Install Now** and follow the installer steps. You should be able to click next/continue on all steps. Python will be installed. |
| 42 | + |
| 43 | +.. image:: _static/windows/python_install-3.png |
| 44 | + :align: center |
| 45 | + |
| 46 | +.. image:: _static/windows/python_install-5.png |
| 47 | + :align: center |
| 48 | + |
| 49 | +2. Proceed with a command line application / terminal |
| 50 | +======================================================= |
| 51 | + |
| 52 | +a. From the start menu, launch the default command line application cmd or any other like the PowerShell. |
| 53 | + |
| 54 | +.. image:: _static/windows/powershell_top-0.png |
| 55 | + :align: center |
| 56 | + |
| 57 | +b. Verify that Python was installed successfully: |
| 58 | + |
| 59 | +.. image:: _static/windows/powershell_top-1.png |
| 60 | + :align: center |
| 61 | + |
| 62 | +.. note:: |
| 63 | + |
| 64 | + Upon entering ``python --version`` the version of the previously installed Python distribution should be shown. If a version number < 3.7 is shown or Python is not found, please consult the :ref:`Troubleshooting<troubleshooting>` section below. |
| 65 | + |
| 66 | +c. Python ships with a helper program called **pip** to install additional packages. In the next step, this software should be upgraded to its current version. |
| 67 | + |
| 68 | +.. image:: _static/windows/powershell-4.png |
| 69 | + :align: center |
| 70 | + |
| 71 | +To upgrade pip, enter the command **python -m pip install --upgrade pip** to the terminal. |
| 72 | + |
| 73 | +d. After pip was successfully upgraded, the Data Delivery System Command Line Interface can be installed: |
| 74 | + |
| 75 | +.. image:: _static/windows/powershell_top-7.png |
| 76 | + :align: center |
| 77 | + |
| 78 | +Enter **python -m pip install dds_cli** to start the install. Because several requirements will be automatically installed with the command line interface, several packages will be automatically downloaded: |
| 79 | + |
| 80 | +.. image:: _static/windows/powershell-9.png |
| 81 | + :align: center |
| 82 | + |
| 83 | +e. After the installation procedure has completed, the Data Delivery System Command Line Interface can be launched from the command line by entering **dds**. Please consult the general manual, how to interact with the CLI. |
| 84 | + |
| 85 | +.. image:: _static/windows/powershell_top-10.png |
| 86 | + :align: center |
| 87 | + |
| 88 | +.. _troubleshooting: |
| 89 | + |
| 90 | +3. Troubleshooting |
| 91 | +==================== |
| 92 | + |
| 93 | +a. **Python not found or only in a wrong version.** |
| 94 | + |
| 95 | +The most likely reason for this is an issue with the PATH variable, e.g. when the box Add Python 3.9 to Path was not checked during installation. |
| 96 | + |
| 97 | +This can be manually checked and corrected via the Environment Variables. |
| 98 | + |
| 99 | +.. image:: _static/windows/path-0.png |
| 100 | + :align: center |
| 101 | + |
| 102 | +.. image:: _static/windows/path-1.png |
| 103 | + :align: center |
| 104 | + |
| 105 | +Open the Environment Variables dialogue via the **Advanced** Tab in the **System Properties**. |
| 106 | + |
| 107 | +.. image:: _static/windows/path-2.png |
| 108 | + :align: center |
| 109 | + |
| 110 | +Select **Path** from the list of variables and click edit. Mind that there is a set of variables specific to the user on the top and a system-wide set of variables at the bottom. Both contain a **Path** and depending on the mode of installation, Python might be added to both or just one of them. |
| 111 | + |
| 112 | +.. image:: _static/windows/path-4.png |
| 113 | + :align: center |
| 114 | + |
| 115 | +Verify that the directories associated with the installation are present in the Path. If not, add the respective directories manually. |
| 116 | + |
| 117 | +Use the search function first to verify where the Python installation has been added. Typically, all installation paths will contain your username and thus need to be customized. Change the paths shown in the example to: `C:\User\username\AppData ….` |
| 118 | + |
| 119 | +b. **Security privileges required.** |
| 120 | + |
| 121 | +It may be possible, that you will need to approve changes to your system explicitly during the install: |
| 122 | + |
| 123 | +.. image:: _static/windows/windows_security.png |
| 124 | + :align: center |
| 125 | + |
| 126 | +.. image:: _static/windows/python_install-4.png |
| 127 | + :align: center |
| 128 | + |
| 129 | +In the latter case - depending on the installation directory - the combined length of all directories in PATH may exceed the length limit. Extending the allowed length should not negatively impact your system. |
0 commit comments