libffcv / ffcv

FFCV: Fast Forward Computer Vision (and other ML workloads!)

Home Page:https://ffcv.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installing ffcv fails

DepenM opened this issue · comments

I am trying to install ffcv by following the instructions as given on the GitHub page. However, the command fails with the following error:

Building` wheels for collected packages: ffcv, assertpy, fastargs, pytorch_pfn_extras
  Building wheel for ffcv (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [2 lines of output]
      x86_64-conda-linux-gnu-cc: error: unrecognized command-line option '-march'

I did not face this issue while installing ffcv last time. Is this a recent change? any suggestions on how to fix it?

This is my linux version in case it helps:

LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Rocky
Description:    Rocky Linux release 8.7 (Green Obsidian)
Release:        8.7
Codename:       GreenObsidian

I was able to fix it by cloning the git repo of ffcv, and running the setup.py locally. I am still unsure why it fixes the issue, but it works.