Install FAST on Windows
Requirements
Make sure you have all the necessary requirements before installing FAST:
- OpenCL and OpenGL: These are usually installed along with your graphics driver.
- Download and install Microsoft Visual C++ Redistributable 2015-2019 (64bit/x64).
Some optional requirements are needed for video streaming and GPU neural network inference, these can be installed later.
Choose your installation method
Python
To install FAST for python (3.6 or newer), you may simply install FAST using pip, preferably using a clean python environment without conda/anaconda/similar:
pip install pyfast
To test that your installation works you can do the following from your terminal (powershell):
# Start python
python
Then run the following python code, which should display the FAST logo on your screen. If you can get an error, please see troubleshoot section below.
import fast importer = fast.ImageFileImporter\ .create(fast.Config.getDocumentationPath() + '/images/FAST_logo_square.png') renderer = fast.ImageRenderer.create()\ .connect(importer) fast.SimpleWindow2D.create()\ .connect(renderer)\ .run()
To start using FAST for python, you might want to look at the Python tutorials and the Python examples page.
C++
To install FAST for C++ development, download and run a Windows installer (fast_windows_X.X.X.exe) from the FAST release page. Windows might prompt you with a security warning, to proceed you must press "More info" followed by "Run anyway". The installer will install FAST on your computer and the default location is C:/Program Files/FAST/. The installer will also add start menu shortcuts.
To test if your FAST installation works, you can the following from your terminal:
cd 'C:/Program Files/FAST/fast/bin/' ./systemCheck.exe
Or go the Start menu -> FAST -> System Check
If you can get an error, please see troubleshoot section below.
You should now see the FAST logo on your screen along with some technical information on OpenCL. To start using FAST, you might want to look at the C++ introduction tutorial and the C++ examples page.
Troubleshoot
- If you get an error that says something like The application can't start because OpenCL.dll is missing from your computer. You have to install OpenCL. OpenCL should be included with your graphics driver (Intel/NVIDIA/AMD). You can try and search your harddrive for OpenCL.dll; if it is found, make sure its path is included in the PATH environment variable.
- If you get an error that says something like The application can't start because VCRUNTIME140_1.dll is missing from your computer. You have to install the Microsoft Visual C++ Redistributable 2015-2019 (64bit/x64).
- Python
- If you get an error saying something like ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' or ImportError: numpy.core.multiarray failed to import. Try to completely remove numpy and reinstall:
Run the following command multiple times, until it says "Cannot uninstall numpy..":pip uninstall numpy
Then reinstall numpy:pip install numpy
- If you get an error saying something like ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' or ImportError: numpy.core.multiarray failed to import. Try to completely remove numpy and reinstall:
- C++
- Windows might prompt you with a security warning when running the installer, to proceed you must press "More info" followed by "Run anyway".
- If the installer fails you can download zip file instead, and just extract it to anywhere on your drive.