DeepFaceLab_MacOS icon indicating copy to clipboard operation
DeepFaceLab_MacOS copied to clipboard

Setup file isn't running correctly?

Open maxiedaniels opened this issue 3 years ago • 4 comments

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.

maxiedaniels avatar Dec 06 '22 23:12 maxiedaniels

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.

chychkan avatar Dec 09 '22 18:12 chychkan

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.

maxiedaniels avatar Dec 11 '22 06:12 maxiedaniels

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.

chychkan avatar Dec 15 '22 01:12 chychkan

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

devkav avatar Dec 21 '22 08:12 devkav