- Install Microsoft C++ Build Tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/ (WITH DEFAULT SELECTION)
- Restart your PC
Note: This project works with Tensorflow 2.5 and python 3.8
- Install miniconda3 with python 3.8: https://docs.conda.io/en/latest/miniconda.html
Note: Don't check "ADD conda to path" and "register as default python". There might be conflict with installed version of python in the PC
1. Add `C:\Users\<USERNAME>\miniconda3\Scripts` to path environment variable
2. Add `C:\Users\<USERNAME>\miniconda3\Library\bin` to path environment variable
Reminder:
Don't forget to replace with your own username. Find it at C:\Users
If you see the same output, all good!
Note:
You might need run: conda init powershell
<-- if using powershell instead cmd
1. Open a cmd terminal or powershell
2. conda config --set auto_activate_base false
3. conda config --set env_prompt '({name}) '
These properties will remove the (base)
default boot from miniconda3 and set the --prefix path to a name while creating a new insolated environment for python and tensorflow
There are 2 ways to install tensorflow in a conda insolated environment: with conda install
or pip install
.
conda create --prefix=conda-env python=3.8
conda activate ./conda-env/
conda install -c anaconda tensorflow=2.5
conda install -c esri pycocotools=2.0
conda install pyyaml
Note: If there is an issue installing pycocotools, try instead: pip install pycocotools-windows==2.0 <-- within conda-env
conda create --prefix=conda-env python=3.8
conda activate ./conda-env/
pip install -r requirements.txt