[英]creating a conda environment fails on MacOS: ResolvePackageNotFound
I want to set up stable-diffusion on my machine (M1 MacOS), based on these instructions , I'm running:我想根据这些说明在我的机器(M1 MacOS)上设置稳定扩散,我正在运行:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
bash Miniconda3-latest-MacOSX-arm64.sh
I accept the license and confirm the installation location, everything looks good.我接受许可证并确认安装位置,一切看起来都很好。
Then, when I want to create an environment with conda env create -f environment.yaml
, I run into this error:然后,当我想用
conda env create -f environment.yaml
时,我遇到了这个错误:
ResolvePackageNotFound:
- python=3.8.5
- cudatoolkit=11.3
- pip=20.3
- torchvision=0.12.0
The environment.yaml file contains this: environment.yaml 文件包含以下内容:
name: ldm
channels:
- pytorch
- defaults
dependencies:
- python=3.8.5
- pip=20.3
- cudatoolkit=11.3
- pytorch=1.11.0
- torchvision=0.12.0
- numpy=1.19.2
- pip:
- albumentations==0.4.3
- diffusers
- opencv-python==4.1.2.30
- pudb==2019.2
- invisible-watermark
- imageio==2.9.0
- imageio-ffmpeg==0.4.2
- pytorch-lightning==1.4.2
- omegaconf==2.1.1
- test-tube>=0.7.5
- streamlit>=0.73.1
- einops==0.3.0
- torch-fidelity==0.3.0
- transformers==4.19.2
- torchmetrics==0.6.0
- kornia==0.6
- -e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers
- -e git+https://github.com/openai/CLIP.git@main#egg=clip
- -e .
Where do go from here? go 从这里到哪里? I was under the impression that conda would install the required dependencies, but I guess not?
我的印象是 conda 会安装所需的依赖项,但我猜不是?
The central issue is trying to create a native osx-arm64 environment.中心问题是试图创建一个原生的osx-arm64环境。
First, use conda-forge
channel instead of defaults
.首先,使用
conda-forge
通道而不是defaults
。 1 Second, native PyTorch packages are only available for pytorch >=1.12
and torchvision >=0.13
. 1第二,原生 PyTorch 包仅适用于
pytorch >=1.12
和torchvision >=0.13
。 Third, no Apple Silicon systems come with nVidia cards, so cudatoolkit
is inappropriate - remove it.第三,没有 Apple Silicon 系统带有 nVidia 卡,所以
cudatoolkit
是不合适的 - 删除它。
There are probably more issues, but that's a start.可能还有更多问题,但这是一个开始。 Also, you should probably read this thread closely.
此外,您可能应该仔细阅读此线程。
[1] : You would have been better off installing a Miniforge variant like Mambaforge, not Miniconda. [1] : 你最好安装像 Mambaforge 这样的 Miniforge 变体,而不是 Miniconda。 Conda Forge has been supporting osx-arm64 for nearly two years, so has a much deeper catalog of available packages that
defaults
channel, which only added support in May. Conda Forge 已经支持osx-arm64近两年了,因此有更深入的可用软件包目录,
defaults
通道,仅在 5 月增加了支持。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.