To run the code, you need the packages numpy
, scipy
, scikit-learn
, matplotlib
, scikit-image
, mahotas
and opencv-python
.
The easiest way to set up an environment is by installing Anaconda.
So you can use it in any directory on your PC
-------> User Variables <-------
Installation_Path\Anaconda\python.exe
Installation_Path\Anaconda\Scripts
Installation_Path\Anaconda\Library\bin
Installation_Path\Anaconda\Library\usr\bin
Installation_Path\Anaconda\Library\mingw-w64\bin
-------> System Variables <-------
Installation_Path\Anaconda
Installation_Path\Anaconda\Scripts
Installation_Path\Anaconda\lib\bin
Installation_Path\Anaconda\lib\usr\bin
Installation_Path\Anaconda\python.exe
If you already have a Python environment set up, and you are using the conda
package manager,
you can get all packages by running
-
If you wish to install this in the base environment without creating any new environments, then you use:
conda env update -n base --file environment.yml
-
If you want to create a specific environment for the course then use:
# change "YOUR_ENV_NAME" with the name you want "DON'T use empty spaces in the environment name" conda env create -n YOUR_ENV_NAME -file environment.yml
-
If face any problem run the command bleow to install all the package I use on my PC (It will take some time).
conda env update -n base --file all.yml
If you don't want to use Anaconda and already have a Python environment and are using pip to install packages, you need to run
pip install -r requirements.txt