Step 2 - Finding all of your dependencies

In the last lesson you were provided with an example workshop. To prepare this workshop to run on the cloud, we first need to find out what is needed to run it on someone else’s computer, i.e. we need to create the list of dependencies of this workshop.

As this is a Python 3 workshop, the first dependency is a good Python 3 environment.

The next dependency is qcode itself. We can install that using the command;

$ pip install qrcode[pil]

Run the above command and you should see output…

Collecting qrcode[pil]
Requirement already satisfied: six in /home/workshops/Cownie/miniconda3/envs/idp/lib/python3.6/site-packages (from qrcode[pil])
Collecting pillow; extra == "pil" (from qrcode[pil])
  Downloading (2.0MB)
    100% |████████████████████████████████| 2.0MB 838kB/s 
Installing collected packages: pillow, qrcode
Successfully installed pillow-5.2.0 qrcode-6.0
You are using pip version 9.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Now you can test the workshop. Move through all of lesson01.ipynb. Does it all now work?


Work through the rest of the workshop and see if there are any more dependencies. If there are, then find the commands to install the dependencies, install them, and then make sure that you can work through the entire workshop witout error.

If you get stuck, the full list of dependencies is given in the next lesson

Previous Up Next