Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup file isn't running correctly? #115

Open
maxiedaniels opened this issue Dec 6, 2022 · 4 comments
Open

Setup file isn't running correctly? #115

maxiedaniels opened this issue Dec 6, 2022 · 4 comments

Comments

@maxiedaniels
Copy link

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
Copy link
Owner

chychkan commented Dec 9, 2022

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
Copy link
Author

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
Copy link
Owner

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
Copy link

DevanTurtle7 commented Dec 21, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants