|
1. Prepare Python environment
|
|
1. Prepare Python environment
|
|
|
|
|
|
Download Anaconda, Python 3.7 version from https://www.anaconda.com/download and follow the installer instructions. Anaconda includes most of the required python libraries, however some packages need to be installed manually. To do that, start an Anaconda prompt from the Start Menu (Windows) or open a terminal (Linux, MacOS) and type the following:
|
|
Download Anaconda from https://www.anaconda.com/download. Choose the Python 3.7 version and follow the installer instructions. For help regarding installation, please refer to the Anaconda installation guide. Anaconda includes most of the required python libraries, however some packages need to be installed manually. To do that, start an Anaconda prompt from the Start Menu (Windows) or re-open a terminal (Linux, MacOS) and type the following:
|
|
|
|
|
|
```
|
|
```
|
|
pip install opencv-python
|
|
pip install opencv-python
|
... | @@ -22,10 +22,21 @@ The following step requires a C compiler. In the Anaconda prompt (Windows) or th |
... | @@ -22,10 +22,21 @@ The following step requires a C compiler. In the Anaconda prompt (Windows) or th |
|
```
|
|
```
|
|
python setuptsp.py
|
|
python setuptsp.py
|
|
```
|
|
```
|
|
|
|
If a compiler is not available in your system, the above command will produce an error. The exact wording depends on your operating system.
|
|
|
|
|
|
4. Start Gepard
|
|
4. Start Gepard
|
|
|
|
|
|
In the Anaconda prompt (Windows) or terminal (Linux, MacOS) navigate to the location containing the folder `gepard`. You can now start using Gepard in Simulated Raman Mode by typing:
|
|
In the Anaconda prompt (Windows) or terminal (Linux, MacOS) navigate to the location containing the folder `gepard`. You can now start using Gepard in Simulated Raman Mode by typing:
|
|
```
|
|
```
|
|
python -m gepard
|
|
python -m gepard
|
|
``` |
|
```
|
|
\ No newline at end of file |
|
|
|
|
|
|
|
|
|
Possible errors and solutions
|
|
|
|
=============================
|
|
|
|
|
|
|
|
## Errors related to the compiling process
|
|
|
|
|
|
|
|
`Import error: cannot import name 'tsp' from 'gepard.external'`: Compiling the tsp module has failed. Try compiling again or use a pre-compiled module.
|
|
|
|
|
|
|
|
`error: command 'gcc' failed with exit status 1` (Linux): Your system's C-compiler, `gcc`, is not installed or not up to date. Install the corresponding packages or update your system and try again. |
|
|
|
\ No newline at end of file |