I get several errors when I try to run the 0_setup.sh on my machine.
M1 Pro with 16GB
Python version: 3.9.7
ERROR: Failed building wheel for numpy Failed to build lumpy ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects ERROR: Could not find a version that satisfies the requirement opencv-contrib-python-headless==4.4.0.46 (from versions: 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.15.55, 3.4.16.57, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.3.56, 4.5.4.58) ERROR: No matching distribution found for opencv-contrib-python-headless==4.4.0.46
I get several errors when I try to run the 0_setup.sh on my machine.
M1 Pro with 16GB
Python version: 3.9.7
`ERROR: Failed building wheel for numpy
Failed to build lumpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects`
`ERROR: Could not find a version that satisfies the requirement opencv-contrib-python-headless==4.4.0.46 (from versions: 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.15.55, 3.4.16.57, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.3.56, 4.5.4.58)
ERROR: No matching distribution found for opencv-contrib-python-headless==4.4.0.46`
Just playing around with this on an M1 Mac, I still get the following error (looks like somewhere on the chain Python 3.10 is being used, even though my python3 version is 3.9.7):
Using requirements.txt for Python 3.10.0
Collecting numpy==1.19.5
Using cached numpy-1.19.5.zip (7.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
ERROR: Could not find a version that satisfies the requirement opencv-contrib-python-headless==4.1.2.30 (from versions: 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.15.55, 3.4.16.57, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.3.56, 4.5.4.58)
ERROR: No matching distribution found for opencv-contrib-python-headless==4.1.2.30
Just playing around with this on an M1 Mac, I still get the following error (looks like somewhere on the chain Python 3.10 is being used, even though my python3 version is `3.9.7`):
```
Using requirements.txt for Python 3.10.0
Collecting numpy==1.19.5
Using cached numpy-1.19.5.zip (7.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
ERROR: Could not find a version that satisfies the requirement opencv-contrib-python-headless==4.1.2.30 (from versions: 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.15.55, 3.4.16.57, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.3.56, 4.5.4.58)
ERROR: No matching distribution found for opencv-contrib-python-headless==4.1.2.30
```
@rdlauer I would suggest to try deleting the temp directory .dfl that is created by the scripts as it contains the virtual env. If you attempted to run this on Python 3.10 before, then the virtual env may still contain Python 3.10.
@rdlauer I would suggest to try deleting the temp directory `.dfl` that is created by the scripts as it contains the virtual env. If you attempted to run this on Python 3.10 before, then the virtual env may still contain Python 3.10.
I'm a little confused as it looks like .dfl is created as part of the setup script? This error is on the initial run of that script (so there is no .dfl directory to delete). Not sure if this will tell you anything:
./scripts/0_setup.sh
Cloning DeepFaceLab
Cloning into '.dfl/DeepFaceLab'...
remote: Enumerating objects: 247, done.
remote: Counting objects: 100% (247/247), done.
remote: Compressing objects: 100% (222/222), done.
remote: Total 247 (delta 24), reused 142 (delta 16), pack-reused 0
Receiving objects: 100% (247/247), 253.22 MiB | 25.20 MiB/s, done.
Resolving deltas: 100% (24/24), done.
Updating files: 100% (211/211), done.
created virtual environment CPython3.10.0.final.0-64 in 153ms
creator CPython3Posix(dest=/Users/me/Documents/DeepFaceLab_MacOS/.dfl/env, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/me/Library/Application Support/virtualenv)
added seed packages: pip==21.3.1, setuptools==58.3.0, wheel==0.37.0
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Using requirements.txt for Python 3.10.0
Collecting numpy==1.19.5
Using cached numpy-1.19.5.zip (7.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
ERROR: Could not find a version that satisfies the requirement opencv-contrib-python-headless==4.1.2.30 (from versions: 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.15.55, 3.4.16.57, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.3.56, 4.5.4.58)
ERROR: No matching distribution found for opencv-contrib-python-headless==4.1.2.30
I guess it's this line that stands out to me: created virtual environment CPython3.10.0.final.0-64
I'm a little confused as it looks like `.dfl` is created as part of the setup script? This error is on the initial run of that script (so there is no `.dfl` directory to delete). Not sure if this will tell you anything:
```
./scripts/0_setup.sh
Cloning DeepFaceLab
Cloning into '.dfl/DeepFaceLab'...
remote: Enumerating objects: 247, done.
remote: Counting objects: 100% (247/247), done.
remote: Compressing objects: 100% (222/222), done.
remote: Total 247 (delta 24), reused 142 (delta 16), pack-reused 0
Receiving objects: 100% (247/247), 253.22 MiB | 25.20 MiB/s, done.
Resolving deltas: 100% (24/24), done.
Updating files: 100% (211/211), done.
created virtual environment CPython3.10.0.final.0-64 in 153ms
creator CPython3Posix(dest=/Users/me/Documents/DeepFaceLab_MacOS/.dfl/env, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/me/Library/Application Support/virtualenv)
added seed packages: pip==21.3.1, setuptools==58.3.0, wheel==0.37.0
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Using requirements.txt for Python 3.10.0
Collecting numpy==1.19.5
Using cached numpy-1.19.5.zip (7.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
ERROR: Could not find a version that satisfies the requirement opencv-contrib-python-headless==4.1.2.30 (from versions: 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.15.55, 3.4.16.57, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.3.56, 4.5.4.58)
ERROR: No matching distribution found for opencv-contrib-python-headless==4.1.2.30
```
I guess it's this line that stands out to me: `created virtual environment CPython3.10.0.final.0-64`
@rdlauer Yes, indeed, the issue is that Python 3.10 in your env is still picked up as the active one.
I would recommend using https://github.com/pyenv/pyenv. It helps with managing multiple Python versions.
Once you have it installed, you can install Python 3.9.7 with command:
$ pyenv install 3.9.7
and then make it active with command:
$ pyenv global 3.9.7
Basically, for these scripts to work you need to make sure that in your shell command python3 -V gives Python 3.9.7.
Hopefully, this is helpful.
@rdlauer Yes, indeed, the issue is that Python 3.10 in your env is still picked up as the active one.
I would recommend using https://github.com/pyenv/pyenv. It helps with managing multiple Python versions.
Once you have it installed, you can install Python 3.9.7 with command:
```
$ pyenv install 3.9.7
```
and then make it active with command:
```sh
$ pyenv global 3.9.7
```
Basically, for these scripts to work you need to make sure that in your shell command `python3 -V` gives `Python 3.9.7`.
Hopefully, this is helpful.
Hey @rdlauer!
Recently, I upgraded my Mac to OS X 12 and installed Python 3.10 and I started having the same issue. And I was able to fix it by adding this line to the end of my ~/.zshrc (add it to your .bash_profile if you're using Bash):
exportPATH="$HOME/.pyenv/shims:$PATH"
And make sure you restart your shell.
After that on my Mac everything works as expected:
~ pyenv global 3.8.6
~ python -V
Python 3.8.6
~ virtualenv --version
virtualenv 20.4.2 from /Users/alex/.pyenv/versions/3.8.6/lib/python3.8/site-packages/virtualenv/__init__.py
~ pyenv global 3.10.0
~ python -V
Python 3.10.0
~ virtualenv --version
virtualenv 20.10.0 from /Users/alex/.pyenv/versions/3.10.0/lib/python3.10/site-packages/virtualenv/__init__.py
Hey @rdlauer!
Recently, I upgraded my Mac to OS X 12 and installed Python 3.10 and I started having the same issue. And I was able to fix it by adding this line to the end of my `~/.zshrc` (add it to your `.bash_profile` if you're using Bash):
```sh
export PATH="$HOME/.pyenv/shims:$PATH"
```
And make sure you restart your shell.
After that on my Mac everything works as expected:
```sh
~ pyenv global 3.8.6
~ python -V
Python 3.8.6
~ virtualenv --version
virtualenv 20.4.2 from /Users/alex/.pyenv/versions/3.8.6/lib/python3.8/site-packages/virtualenv/__init__.py
~ pyenv global 3.10.0
~ python -V
Python 3.10.0
~ virtualenv --version
virtualenv 20.10.0 from /Users/alex/.pyenv/versions/3.10.0/lib/python3.10/site-packages/virtualenv/__init__.py
```
Thanks - but this is where my lack of Python knowledge is killing me :)
~ pyenv global 3.9.7
~ python -V
Python 3.9.7
~ virtualenv --version
virtualenv 20.10.0 from /opt/homebrew/Cellar/virtualenv/20.10.0/libexec/lib/python3.10/site-packages/virtualenv/__init__.py
I wonder if it's because homebrew is managing my virtualenv installation?
Thanks - but this is where my lack of Python knowledge is killing me :)
```
~ pyenv global 3.9.7
~ python -V
Python 3.9.7
~ virtualenv --version
virtualenv 20.10.0 from /opt/homebrew/Cellar/virtualenv/20.10.0/libexec/lib/python3.10/site-packages/virtualenv/__init__.py
```
I wonder if it's because homebrew is managing my virtualenv installation?
@rdlauer I don't think it is because of homebrew. You need to make sure the $HOME/.pyenv/shims is at the beginning of your PATH. Could you please try this sequence of commands and share the output:
pyenv global 3.9.7
echo"$PATH"exportPATH="$HOME/.pyenv/shims:$PATH"echo"$PATH"
python -V
virtualenv --version
@rdlauer I don't think it is because of homebrew. You need to make sure the `$HOME/.pyenv/shims` is at the beginning of your `PATH`. Could you please try this sequence of commands and share the output:
```sh
pyenv global 3.9.7
echo "$PATH"
export PATH="$HOME/.pyenv/shims:$PATH"
echo "$PATH"
python -V
virtualenv --version
```
virtualenv 20.10.0 from /opt/homebrew/Cellar/virtualenv/20.10.0/libexec/lib/python3.10/site-packages/virtualenv/__init__.py
Should I be targeting virtualenv 20.4.2 when I install it? Something like: pyenv exec pip install virtualenv==20.4.2?
Same virtualenv version is returned:
```
virtualenv 20.10.0 from /opt/homebrew/Cellar/virtualenv/20.10.0/libexec/lib/python3.10/site-packages/virtualenv/__init__.py
```
Should I be targeting virtualenv 20.4.2 when I install it? Something like: `pyenv exec pip install virtualenv==20.4.2`?
I don't think it is related to a specific version of virtualenv, but rather which python version it belongs to.
In either case, I would suggest you to report this issue and ask for advice in https://github.com/pyenv/pyenv (or maybe it has already been discussed and solved there). The issue is not caused by scripts in this repo.
I don't think it is related to a specific version of `virtualenv`, but rather which python version it belongs to.
In either case, I would suggest you to report this issue and ask for advice in https://github.com/pyenv/pyenv (or maybe it has already been discussed and solved there). The issue is not caused by scripts in this repo.
I tried all the hints from above and downgraded my python version from 3.10 to 3.9.7 with pyenv.
python3 --version
Python 3.9.7
virtualenv --version
virtualenv 20.13.0 from /opt/homebrew/Cellar/virtualenv/20.13.0/libexec/lib/python3.10/site-packages/virtualenv/__init__.py
But while installing I get this error:
Collecting numpy==1.21.4
Using cached numpy-1.21.4-cp310-cp310-macosx_11_0_arm64.whl (12.4 MB)
ERROR: Could not find a version that satisfies the requirement opencv-contrib-python-headless==4.1.2.30 (from versions: 3.4.0.14, 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.15.55, 3.4.16.57, 3.4.16.59, 3.4.17.61, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.3.56, 4.5.4.58, 4.5.4.60, 4.5.5.62)
ERROR: No matching distribution found for opencv-contrib-python-headless==4.1.2.30
Scripts seems to use requirements_3.6.txt instead of requirements_3.9.txt, while it is recognizing Python 3.10.1 instead of the 3.9.7 version that was set with pyenv. Weird.
Using requirements.txt for Python 3.10.1
Any hints?
I tried all the hints from above and downgraded my python version from 3.10 to 3.9.7 with pyenv.
```
python3 --version
Python 3.9.7
```
```
virtualenv --version
virtualenv 20.13.0 from /opt/homebrew/Cellar/virtualenv/20.13.0/libexec/lib/python3.10/site-packages/virtualenv/__init__.py
```
But while installing I get this error:
```
Collecting numpy==1.21.4
Using cached numpy-1.21.4-cp310-cp310-macosx_11_0_arm64.whl (12.4 MB)
ERROR: Could not find a version that satisfies the requirement opencv-contrib-python-headless==4.1.2.30 (from versions: 3.4.0.14, 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.15.55, 3.4.16.57, 3.4.16.59, 3.4.17.61, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.3.56, 4.5.4.58, 4.5.4.60, 4.5.5.62)
ERROR: No matching distribution found for opencv-contrib-python-headless==4.1.2.30
```
Scripts seems to use requirements_3.6.txt instead of requirements_3.9.txt, while it is recognizing Python 3.10.1 instead of the 3.9.7 version that was set with pyenv. Weird.
```
Using requirements.txt for Python 3.10.1
```
Any hints?
I corrected the version numbers (used "yolk -V appname" to get versions, install with "pip install yolk3k") in requirements.txt but failed with tensorflow. yolk shows version 2.7.0 but "pip install tensorflow" and "pip3 install tensorflow" both fail.
ERROR: Could not find a version that satisfies the requirement tensorflow==2.7.0 (from versions: none)
ERROR: No matching distribution found for tensorflow==2.7.0
I corrected the version numbers (used "yolk -V appname" to get versions, install with "pip install yolk3k") in requirements.txt but failed with tensorflow. yolk shows version 2.7.0 but "pip install tensorflow" and "pip3 install tensorflow" both fail.
```
ERROR: Could not find a version that satisfies the requirement tensorflow==2.7.0 (from versions: none)
ERROR: No matching distribution found for tensorflow==2.7.0
```
Hi @gimmel! Yeah, we don't have a requirements.txt file for Python 3.10 yet. But also, the M1 chip creates additional issues because it is ARM64 and some of the python packages are not compatible with it. Working on it.
Hi @gimmel! Yeah, we don't have a `requirements.txt` file for Python 3.10 yet. But also, the M1 chip creates additional issues because it is ARM64 and some of the python packages are not compatible with it. Working on it.
The only remaining issue is with XSeg editor and for that we've opened https://github.com/chychkan/DeepFaceLab_MacOS/issues/77. So, closing this one now.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I get several errors when I try to run the 0_setup.sh on my machine.
M1 Pro with 16GB
Python version: 3.9.7
ERROR: Failed building wheel for numpy Failed to build lumpy ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projectsERROR: Could not find a version that satisfies the requirement opencv-contrib-python-headless==4.4.0.46 (from versions: 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.15.55, 3.4.16.57, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.3.56, 4.5.4.58) ERROR: No matching distribution found for opencv-contrib-python-headless==4.4.0.46@bufo24 thanks a lot for reporting! Looking into it.
Hey @bufo24! I pushed a fix just now. Could you please confirm if it works for you now?
Just playing around with this on an M1 Mac, I still get the following error (looks like somewhere on the chain Python 3.10 is being used, even though my python3 version is
3.9.7):@rdlauer I would suggest to try deleting the temp directory
.dflthat is created by the scripts as it contains the virtual env. If you attempted to run this on Python 3.10 before, then the virtual env may still contain Python 3.10.I'm a little confused as it looks like
.dflis created as part of the setup script? This error is on the initial run of that script (so there is no.dfldirectory to delete). Not sure if this will tell you anything:I guess it's this line that stands out to me:
created virtual environment CPython3.10.0.final.0-64@rdlauer Yes, indeed, the issue is that Python 3.10 in your env is still picked up as the active one.
I would recommend using https://github.com/pyenv/pyenv. It helps with managing multiple Python versions.
Once you have it installed, you can install Python 3.9.7 with command:
and then make it active with command:
Basically, for these scripts to work you need to make sure that in your shell command
python3 -VgivesPython 3.9.7.Hopefully, this is helpful.
I'll try that, but right now I only have 3.9.7 installed:
@rdlauer Could you please also share what
virtualenv --versionreturns?Interesting:
Ok, looks like that's the problem. The
pyenvshould help with that.I appreciate the tips! Yeah this is strange, even after trying
pyenvI see output from the setup scriptUsing requirements.txt for Python 3.10.0.Hey @rdlauer!
Recently, I upgraded my Mac to OS X 12 and installed Python 3.10 and I started having the same issue. And I was able to fix it by adding this line to the end of my
~/.zshrc(add it to your.bash_profileif you're using Bash):And make sure you restart your shell.
After that on my Mac everything works as expected:
Thanks - but this is where my lack of Python knowledge is killing me :)
I wonder if it's because homebrew is managing my virtualenv installation?
@rdlauer I don't think it is because of homebrew. You need to make sure the
$HOME/.pyenv/shimsis at the beginning of yourPATH. Could you please try this sequence of commands and share the output:Happy to:
@rdlauer Ok, one more thing. Try this:
Same virtualenv version is returned:
Should I be targeting virtualenv 20.4.2 when I install it? Something like:
pyenv exec pip install virtualenv==20.4.2?I don't think it is related to a specific version of
virtualenv, but rather which python version it belongs to.In either case, I would suggest you to report this issue and ask for advice in https://github.com/pyenv/pyenv (or maybe it has already been discussed and solved there). The issue is not caused by scripts in this repo.
The issue is tagged as "stale issue" due to no activity in 30 days. If there is no activity for 15 more days, the issue will be closed.
I tried all the hints from above and downgraded my python version from 3.10 to 3.9.7 with pyenv.
But while installing I get this error:
Scripts seems to use requirements_3.6.txt instead of requirements_3.9.txt, while it is recognizing Python 3.10.1 instead of the 3.9.7 version that was set with pyenv. Weird.
Any hints?
I corrected the version numbers (used "yolk -V appname" to get versions, install with "pip install yolk3k") in requirements.txt but failed with tensorflow. yolk shows version 2.7.0 but "pip install tensorflow" and "pip3 install tensorflow" both fail.
Hi @gimmel! Yeah, we don't have a
requirements.txtfile for Python 3.10 yet. But also, the M1 chip creates additional issues because it is ARM64 and some of the python packages are not compatible with it. Working on it.With https://github.com/chychkan/DeepFaceLab_MacOS/pull/71 we've added partial support for Apple M1 laptops.
The only remaining issue is with XSeg editor and for that we've opened https://github.com/chychkan/DeepFaceLab_MacOS/issues/77. So, closing this one now.