- Python 3
- MSVC
- A CUDA capable GPU from NVIDIA with compute capability greater or equal to 3.0
- CUDA Toolkit
Tested on
| Software | Version |
|---|---|
| Windows | 10 |
| Python | 3.7 3.8 |
| CUDA | 10.1 |
| MSVC | 19.24 |
- Install Python and pip (recommended: conda environment), MSVC and CUDA
- run
pip install pytigre --user - or download from repo and run
python setup.py install --user.
A succesfull installation should be able to execute the script at TIGRE/Python/example.py
-
Install MS Visual Studio Build Tools with Windows SDK.
-
Install Python 3 + pip. Recommended: use a virtual conda environment.
-
Install CUDA. Make sure the
CUDA_PATHandPATHenvironment variable are set accordingly. -
Get TIGRE
pip install pytigre --useror inside a conda environment (recommended)pip install pytigre -
Try demo 3. If it runs succesfully then you are good to go.
Note: It is known that the package cannot be imported using a pure Python 3.8 installation, i.e. not using a conda environment. Please try a pure installation of Python 3.7 or consider using a conda environment.
- Python 2.7
- gcc
- A CUDA capable GPU from NVIDIA with compute capability greater or equal to 3.0
- CUDA Toolkit
Tested on
| Software | Version |
|---|---|
| Ubuntu | 16.04 17.10 |
| Python | 2.7 |
| CUDA | 8.0 9.2 |
| gcc | 7.6.0 |
- Install python, gcc, pip and CUDA
- run
pip install pytigre --user - or download from repo and run
python setup.py install --user.
A succesfull installation should be able to execute the script at TIGRE/Python/example.py
For Ubuntu
-
Install python 2.7 and pip
sudo apt update sudo apt upgrade sudo apt install python2.7 python-pip -
Install CUDA
Installing CUDA in linux (specially one with a GUI) can be a challenge. Please follow NVIDIAs instructions carefully.
CUDA download link -
Install gcc
gcc shoudl already be installed in your linux, as it is part of the linux distribution.
If you need to install an older version of gcc, read here. -
Get TIGRE
pip install pytigre --user -
Try demo 3. If it runs succesfully then you are good to go.
Instead, if you rather compile from source, download/clone the repository and then run
cd TIGRE/Python/
python setup.py install --user
Install in this case will make a copy of pytigre to your python distribution. Therefore the develop command is more useful when modifying the source files and developing the software.
python setup.py develop --user
if this fails, then try:
export CUDAHOME=yourcudahome, e.g. default is export CUDAHOME=/usr/local/cuda
python setup.py install --user