-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
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
YOLOv5 installed failed on Macbook M1 #2075
Comments
👋 Hello @whenyougone, thank you for your interest in 🚀 YOLOv5! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution. If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available. For business inquiries or professional support requests please visit https://www.ultralytics.com or email Glenn Jocher at [email protected]. RequirementsPython 3.8 or later with all requirements.txt dependencies installed, including $ pip install -r requirements.txt EnvironmentsYOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit. |
@whenyougone YOLOv5 installs correctly on M1 Macbooks, we have it running currently on a 13" M1 Macbook Pro with no issues and no extra steps required for installation. I recommend you follow the above instructions. |
@glenn-jocher thanks for info. I am using MacBook not MacBook Pro, the SoC HW platform should be similar. I will try again and follow your suggestion. Thanks! |
@whenyougone for PyTorch M1 exploitation/compatibility you might want to make your voice heard on the main thread here: pytorch/pytorch#47702 |
There are also some discussions here pytorch/pytorch#48145 (comment) |
Thanks the hints @zhiqwang @glenn-jocher |
hello all,
I tried installing Yolo5 on Macbook M1, always failed on installing python libraries.
My python version:
python 3.8.2 (default, Dec 21 2020, 15:06:03)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
[makele@madeMacBook-Air]yolov5 % sudo pip3 install -r requirements.txt
ARNING: The directory '/Users/makele/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting Cython
Downloading http://mirrors.aliyun.com/pypi/packages/ad/4b/9e53bcce3c959fd0db143626e573210bba07be810fe8d7296373948c4183/Cython-0.29.21-py2.py3-none-any.whl (974 kB)
|████████████████████████████████| 974 kB 15.9 MB/s
Collecting matplotlib>=3.2.2
Downloading http://mirrors.aliyun.com/pypi/packages/7b/b3/7c48f648bf83f39d4385e0169d1b68218b838e185047f7f613b1cfc57947/matplotlib-3.3.3.tar.gz (37.9 MB)
|████████████████████████████████| 37.9 MB 22.0 MB/s
ERROR: Command errored out with exit status 1:
command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-ukrzi9b0/matplotlib_a48d3719e7794858b7ccf441c9706c79/setup.py'"'"'; file='"'"'/private/tmp/pip-install-ukrzi9b0/matplotlib_a48d3719e7794858b7ccf441c9706c79/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/tmp/pip-pip-egg-info-idb8b9zq
cwd: /private/tmp/pip-install-ukrzi9b0/matplotlib_a48d3719e7794858b7ccf441c9706c79/
Complete output (109 lines):
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/_philox.pyx
Traceback (most recent call last):
File "/tmp/easy_install-0aqxli8a/numpy-1.20.0rc2/tools/cythonize.py", line 59, in process_pyx
from Cython.Compiler.Version import version as cython_version
ModuleNotFoundError: No module named 'Cython'
The text was updated successfully, but these errors were encountered: