chychkan / DeepFaceLab_MacOS

Run DeepFaceLab on MacOS
GNU General Public License v3.0
246 stars 53 forks source link

Setup file isn't running correctly? #115

Open maxiedaniels opened 1 year ago

maxiedaniels commented 1 year ago

When I run the setup file, the last message I see is "Using requirements.txt for Python 3.11.0". If I then try to run the #2 script, it says I don't have numpy installed. I've tried activating the environment manually and installing numpy, but I get into all sorts of trouble where it says the python version isn't supported by scipy, and a bunch of errors. Any advice? I'm on an M1 Max MBP.

chychkan commented 1 year ago

Hi @maxiedaniels! Thanks for reporting this! At the moment the repo does not support Python 3.11. The default file requirements.txt that is being picked up is intended for 3.7, 3.8 versions. So, most likely, when you run the setup script, it fails with an error.

You can try making a copy of the file [requirements_3.9_arm64.txt](https://github.com/chychkan/DeepFaceLab_MacOS/blob/master/requirements_3.9_arm64.txt) and naming it requirements_3.11_arm64.txt, but I can't guarantee that it will work as is as for 3.11 we may need to update some of the dependency versions. If wanna try it, I would recommend to clone this repo afresh, just to avoid any residuals after previous attempt. Unfortunately, I don't have access to an M1 laptop at the moment, so can't check it myself. But if it works, I would really appreciate a PR.

maxiedaniels commented 1 year ago

Hmm the strange part is that I’m not specifying the python version to install with virtualenv, so something in the code must be specifying that version? My system python is 3.10, not 3.11. I’ve tried starting fresh with a new git clone but it’s still using 3.11. I did try and modify the requirements but it won’t work due to lack of support for certain libraries.

chychkan commented 1 year ago

Hmm, interesting indeed. It might be that the shell picks up the virtualenv from python 3.11. I would suggest to double check it with command: virtualenv --version. Also, just in case, please do python -V and python3 -V.

DevanTurtle7 commented 1 year ago

Hey @maxiedaniels, I found a solution to this problem. I specified the solution here.