Unable to install ffcv via pip
See original GitHub issueUnfortunately i am not able to install ffcv via pip in my environment. Following exceptions is raised during installation:
ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bb88nk1n/ffcv/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bb88nk1n/ffcv/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-bb88nk1n/ffcv/pip-egg-info cwd: /tmp/pip-install-bb88nk1n/ffcv/ Complete output (7 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-bb88nk1n/ffcv/setup.py", line 30, in <module> extension_kwargs = pkgconfig('opencv4', extension_kwargs) File "/tmp/pip-install-bb88nk1n/ffcv/setup.py", line 18, in pkgconfig raise Exception() Exception
The error may points to a missing installation of opencv4. But actually i have opencv-python==4.6.0.66 installed. Am i missing anything here?
Issue Analytics
- State:
- Created a year ago
- Comments:9
Top GitHub Comments
In my case a
(before pip/poetry install) fixed it. Note that installing
libopencv-dev
alone did not suffice.Thank you. This is effective. Complete steps: The virtual environment I created with conda is called myconda, python 3.9, cuda11.3, and I installed torch 1.12.1,
You can rent a machine in matpool.com and directly select the Python 1.12.1 environment for the above basic environment. They should also add an ffcv system environment based on this environment later.
The first step to install the system depends on:
Step 2: Install Python dependencies:
Step 3: Add environment variables (to~/. bashrc):
Step 4: