antoinelame / GazeTracking

👀 Eye Tracking library easily implementable to your projects
MIT License
1.98k stars 528 forks source link

Adding instructions for installing dependencies in anaconda #61

Closed vinesmsuic closed 3 years ago

vinesmsuic commented 3 years ago

Should work across all systems.

antoinelame commented 3 years ago

Not an expert of conda, but can't we do conda install --file requirements.txt ?

vinesmsuic commented 3 years ago

Not sure if this will work, but I know we can do conda env create -f environment.yml to create the environment from a environment.yml file.

Not an expert of conda, but can't we do conda install --file requirements.txt ?

I just tested conda install --file requirements.txt in my conda environment (Windows 10), here is the error log:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - dlib==19.16.0
  - opencv_python==3.4.5.20

Current channels:

  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
antoinelame commented 3 years ago

Got it, could you provide an environment.yml then, with versions for each library, to avoid future breaking changes?

antoinelame commented 3 years ago

Thanks for your contribution @vinesmsuic