last edited 11 Feb., 2022
- Download the Miniconda installer aka miniconda from Continuum. Except in unusual circumstances you’ll want the latest 64bit Python 3.x installer. You can also use the full Anaconda environment, which will let you avoid many of the steps below, though the download is much larger and installs many packages not needed for pyExamScan. I recommend you stick with miniconda unless you already use Anaconda. If you use the full Anaconda installer, you can jump down to step 4 below.
- NOTE: you can also create a conda env and install in there. If you don't know what that means, don't worry about it.
- To install Miniconda, open a Terminal window. On a mac, hit
cmd-space
, type in "terminal", and hit enter.- In the terminal window, change directory into your downloads folder:
cd ~/Downloads
NB: if you don't know,cd
stands for "change directories", and is like navigating folders. The~
on a Mac is a shortcut for your home directory – the folder named as your user name that contains your Documents, Downloads, and Desktop folders, and where you'll be installing miniconda. So~/Downloads
is just a handy shortcut forVolumes/Macintosh HD/Users/<your user name>/Downloads
- Then install (you might need to change the text to match the name of the file you just downloaded).
bash Miniconda3-latest-MacOSX-x86_64.sh
- Agree to all of the default options.
- Close that terminal window, and open a new one.
- In the terminal window, change directory into your downloads folder:
- In that window enter the following commands to install the required packages:
conda update --all
(this updates all the installed Anaconda packages)conda config --add channels conda-forge
(adds the conda-forge package source as the first place to look)conda install opencv matplotlib pandas scipy Pillow imageio
(this installs Python packages required by pyExamScan. Agree to install all and their dependencies - it will be a long list and may take a few minutes)pip install fpdf
(This installs one package not available directly from Anaconda)
- Opencv is a finicky package, so before we get too much further, check the installation of opencv. In the terminal:
python3
import cv2
- If you don’t get an error, congrats, opencv is installed. Quit python with
quit()
, and go to step 5. - If you get an error that ends with something like
libopencv_core…dylib, Reason: image not found
:- Quit python with
quit()
conda install openblas=0.2.19
python3
import cv2
- if you don’t get an error, congrats, opencv is installed. Quit python with
quit()
.
- Quit python with
- Now that you have a Python environment with opencv and other packages installed, it's time to install the pyExamScan software:
- Go to the github repo. Click on the green
Code
button, and selectDownload zip
. Uncompress the zip in your downloads folder. Make sure the uncompressed folder is named exactlypyexamscan_v2
, and move it to your Desktop.
- Go to the github repo. Click on the green
- Open that folder and open the Usage Instructions