Page 1 of 1

CLI error Pynvml module not found

Posted: Wed Dec 15, 2021 10:47 pm
by zooloo10

I recently had this error ( ModuleNotFoundError: No module named 'pynvml' ) while trying to run some of the tools from the command line, after successfully using the gui for every operation.

Turned out somehow i had the wrong version of python installed. 3.9.7 and the version of pynvml required was 3.7 or 3.8.

So

Code: Select all

conda activate "faceswap"
conda install python=3.8

cd $faceswapDirectory
python update_deps.py

Just running

Code: Select all

python update_deps.py

like viewtopic.php?p=118#p118 suggested didn't actually solve anything on its own and didn't flag that pynvml was missing. It was just incompatible with the version of python I was running.

Figured i would just post this to add to the knowledge base of possible things that can go wrong with installation.