CLI error Pynvml module not found

Installing and setting up FaceSwap


Forum rules

Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
zooloo10
Posts: 1
Joined: Sun Dec 12, 2021 1:14 am
Been thanked: 1 time

CLI error Pynvml module not found

Post 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.

Locked