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

MAC上安装依赖出问题,支持MAC环境嘛? #228

Open
taozhiyuai opened this issue Apr 1, 2024 · 0 comments
Open

MAC上安装依赖出问题,支持MAC环境嘛? #228

taozhiyuai opened this issue Apr 1, 2024 · 0 comments

Comments

@taozhiyuai
Copy link

taozhiyuai commented Apr 1, 2024

安装requirements.txt时出问题.

我是MAC笔记本M3 MAX芯片

` Using cached https://mirrors.aliyun.com/pypi/packages/85/52/9834eb88dd8a8be13b5399a32f23a79f0a307d9708f92e2b4778afaae0d4/flash_attn-2.5.6.tar.gz (2.5 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
fatal: not a git repository (or any of the parent directories): .git
/private/var/folders/rd/0_kt6h0545g1v749gjmryqqr0000gn/T/pip-install-01jy7adn/flash-attn_d84bb2cca74740488cef6d2616a99d78/setup.py:78: UserWarning: flash_attn was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.
warnings.warn(
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/private/var/folders/rd/0_kt6h0545g1v749gjmryqqr0000gn/T/pip-install-01jy7adn/flash-attn_d84bb2cca74740488cef6d2616a99d78/setup.py", line 133, in
CUDAExtension(
File "/Users/taozhiyu/miniconda3/envs/firefly/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1077, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "/Users/taozhiyu/miniconda3/envs/firefly/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1204, in library_paths
if (not os.path.exists(_join_cuda_home(lib_dir)) and
File "/Users/taozhiyu/miniconda3/envs/firefly/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2418, in _join_cuda_home
raise OSError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.

  torch.__version__  = 2.4.0.dev20240331
  
  
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
`

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

1 participant