-
Notifications
You must be signed in to change notification settings - Fork 68
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
ModuleNotFoundError: No module named 'numpy' #84
Comments
I am also having this exact issue. |
Also the exact same issue. |
Bumping this issue. |
For those running on Apple Silicon Macs, I may have found the solution. You need to download a Mac OS version of Tensorflow. See the following: https://developer.apple.com/metal/tensorflow-plugin/ However, it appears there is still no option for GPU support with Tensorflow in Mac OS, even though Metal is specified in these installations. Can anyone help? |
I have the same issue. Installing tensorflow did not solve it |
well I need help too running python 3.10 M1 Apple silicon |
I'm having the same issue - installed macos and metal tensorflow - still isn't working. |
try to remove all code from nn.py file and paste there this: |
And how it's possible to install the packages on the good environment ? |
pip install -r file.txt |
Thanks ! Error with numpy again note: This error originates from a subprocess, and is likely not a problem with pip. × pip subprocess to install build dependencies did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip.` That's right on my cache folder I didn't have the folder '/Users/jbarbaud/Library/Caches/pip/wheels/8c' Many thanks for your help |
try :
or
and a question are you admin or user? |
Thanks that's working and I tried with sudo But now new issue : × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. But about : metadata-generation-failed on google I found some stckoverflow talked about that but nothing work. |
what did you installed? there's no useful information about anything |
Ok I'm going to explain my steps :
× Preparing metadata (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. |
each run did you own a M1 or intel Mac? |
I'm on M1 So I tried to : Result : × Preparing metadata (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. |
try this repository it work except training |
Much better many thanks ! I tried to uninstall ffmpeg and install ffmpeg-python but nothing fix it |
I've got the same error |
2x times fix it for me (env) Smiril@seti DeepFaceLab_MacOS % bash scripts/2_extract_images_from_video_data_src.sh systemMemory: 64.00 GB [0] Enter FPS ( ?:help ) : 0 |
oh ! Same it's working ! GG |
It seems that virtualenv uses the latest version of python when creating a new environment (in this case, Python 3.11). The setup file then looks for requirements_3.11.txt or requirements_3.11_arm64.txt, which does not exist. To fix this, first ensure that you have a version of python that is supported by this repo. The current supported version are 3.6, 3.9, and 3.10 for non-M1 macs, and 3.9 for M1 macs. Ensure your version is correct by using Next, locate your python directory using Navigate to the scripts folder and open the 0_setup.sh script. Finally, change the line where the virtualenv is created to specify the path of the python version you want to use. Example
to:
Hope this helps :) |
This is happening to me too. I can see it will take some time to work through this thread. Anyone who's done this already care to post the final solution at the bottom? Clearly the code needs some updates to solve this, which hasn't happened yet. |
I've read about this numpy issue almost all over the internet. I changed my Python version to 3.9.6 to 3.7.0, 3.7.1 and so on. I tried all of these versions. I removed numpy and python each time by pip3 uninstall numpy, brew doctor and brew cleanup. However, I'm still getting same error when I run the scripts.
What I tried is:
I installed all the necessary modules: git, FFmpeg, Python3, Virtualenv, hdf5
I cloned the repository by the code git clone https://github.com/chychkan/DeepFaceLab_MacOS.git
I ran the scripts by sh ./scripts/0_setup.sh
Then I ran 2_extract_images_from_video_data_src.sh
I got this error.
The error:
Traceback (most recent call last):
File "/Users/myusername/DeepFaceLab_MacOS/.dfl/DeepFaceLab/main.py", line 6, in
from core.leras import nn
File "/Users/myusername/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/leras/init.py", line 1, in
from .nn import nn
File "/Users/myusername/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/leras/nn.py", line 25, in
import numpy as np
ModuleNotFoundError: No module named 'numpy'
I tried it with various python versions from 3.7 to 3.9.6
When I try to install numpy by pip3 install numpy, I'm getting this:
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (1.21.5)
I need a help about this problem.
The text was updated successfully, but these errors were encountered: