faceswap icon indicating copy to clipboard operation
faceswap copied to clipboard

No CMAKE_C_COMPILER could be found (EDITED).

Open ZeroCool22 opened this issue 8 years ago • 16 comments

screenshot_4

screenshot_5

ZeroCool22 avatar Feb 07 '18 09:02 ZeroCool22

It literally says "ERROR: virtualenv "faceswap" already exists.

You haven't properly removed your old virtualenv before trying to create it again in the proper location.

I don't want to be rude but both your problems so far have been caused by not taking the time to properly read instructions / error messages.

BeatHarness avatar Feb 07 '18 09:02 BeatHarness

Thx for your help, i got the others errors solved, but now i get:

Failed building wheel for dlib and more errors....

After ejecute pip install -r requirements-gpu.txt

https://pastebin.com/3wvEZQXP

ZeroCool22 avatar Feb 07 '18 10:02 ZeroCool22

Can you type lsvirtualenv and paste the output? I'm still not convinced your virtualenv is setup correctly.

Have you actually done

rmvirtualenv faceswap cd \faceswap-master mkvirtualenv faceswap setprojectdir .

?

BeatHarness avatar Feb 07 '18 10:02 BeatHarness

Yes, ofc. i did that steps, i'm in the part of pip install -r requirements-gpu.txt but get a lot of errors (red text).

I make a video to show you that i'm doing the things like you told me, (and the guide installation): https://www.youtube.com/watch?v=kEaS2eXDhLc

I think i will give up, it will be impossible to install without the help of some of you guys...

What you ask me for:

screenshot_2

ZeroCool22 avatar Feb 07 '18 10:02 ZeroCool22

The steps I posted aren't in the install manual, they're to correct your previously wrong configured virtualenv... Anyway, if you've really done done "setprojectdir ." in c:\faceswap-master it should be fine now.

Which exact version of Python are you using?
Can you try

pip install dlib

to see what happens?

BeatHarness avatar Feb 07 '18 11:02 BeatHarness

What happened is, a lot of errors... :/

https://pastebin.com/EPA2NjRQ

ZeroCool22 avatar Feb 07 '18 11:02 ZeroCool22

The error is No CMAKE_C_COMPILER could be found.

try pip install cmake

BeatHarness avatar Feb 07 '18 11:02 BeatHarness

I already have CMAKE installed since 2017, i do the PIP you told me anyways?

screenshot_3 CMake (cmake-gui)

ZeroCool22 avatar Feb 07 '18 11:02 ZeroCool22

Sigh, I'm sorry, I'm out of ideas :(

BeatHarness avatar Feb 07 '18 11:02 BeatHarness

OK, thx anyway for try to help me.

ZeroCool22 avatar Feb 07 '18 12:02 ZeroCool22

I was having similar issues too. I can't recally if it was the same issue, but try installing http://landinghub.visualstudio.com/visual-cpp-build-tools 2015 version. This fixed everything for me.

Dri0m avatar Feb 07 '18 12:02 Dri0m

@IUsedToBeAPygmy After i ejecuted the command you told me "pip install dlib", now nothing related with Python works, not even the FAKEAPP, neither virtualenv, what could happened?

Damn how i regret to try to use this repo, now nothing works...

ZeroCool22 avatar Feb 07 '18 12:02 ZeroCool22

@Dri0m Already have it.

screenshot_4

ZeroCool22 avatar Feb 07 '18 12:02 ZeroCool22

@ZeroCool22 sorry you have trouble installing, but anyway the install process is still very rough, especially on windows.

What i can tell you from my windows experience is:

  • dlib is hard to setup with pip on python 3.5 because it lacks a precompiled version. With python 3.6, there is a precompiled version of dlib that is the 19.7.0
  • The problem if you go for the 3.6 version is that tensorflow 1.4.0 does not work with it
  • BUT tensorflow 1.5.0 has been released and should work with python 3.6

Otherwise, instead of pip, there is conda that can help you setup things because it has more precompiled libs, but I never tried conda

Clorr avatar Feb 07 '18 12:02 Clorr

FWIW, I'm running Python 3.6, Tensorflow 1.5, Cuda 9 and cuDNN 7 without any problems.

Are you using Python 3.6?

BeatHarness avatar Feb 07 '18 12:02 BeatHarness

The only Python's i have are the Intel One from this guide (https://www.reddit.com/r/deepfakes/comments/7nq173/v2_tutorial_intelbased_python_easy_to_follow/) and Python 3.6.3 (Anaconda3 5.0.1 64bit).

I just finished to reinstall everything to get working again the Original Code and the APP 1.1.

I still wanna try your REPO guys, but i don't want to fuck everything again, so if someone of you want to help me to install it trough TEAMVIEWER tell me.

PC SPECS: 7700k, 32gb ram, MSI 1080TI, 2 SSD's, HDD, Windows 10 creators.

ZeroCool22 avatar Feb 07 '18 15:02 ZeroCool22