Wiki source code of Anaconda + Abhägigkeiten der virtuellen Umgebung
Last modified by René Schmidt on 2025/03/26 15:34
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
![]() |
1.1 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}} |
| 2 | {{toc/}} | ||
| 3 | {{/box}} | ||
| 4 | |||
| 5 | = Anaconda = | ||
| 6 | |||
| 7 | [[https:~~/~~/www.anaconda.com/docs/main#quick-command-line-install>>https://www.anaconda.com/docs/main#quick-command-line-install]] | ||
| 8 | |||
![]() |
7.1 | 9 | python -m pip install pip==24.0. (benutzen wenn fairseq sich nicht installieren lässt) |
![]() |
4.1 | 10 | |
| 11 | |||
![]() |
8.1 | 12 | sudo add-apt-repository ppa:graphics-drivers/ppa |
| 13 | sudo apt update | ||
| 14 | sudo apt install nvidia-driver-570 | ||
| 15 | |||
| 16 | |||
| 17 | |||
![]() |
1.1 | 18 | == Commands: == |
| 19 | |||
| 20 | conda create -n wan python=3.11 -y && conda activate wan | ||
| 21 | |||
| 22 | conda install gcc_linux-64 gxx_linux-64 -y | ||
| 23 | |||
| 24 | conda install cuda -c nvidia -y | ||
| 25 | |||
![]() |
5.1 | 26 | pip3 install torch torchvision torchaudio ~-~-index-url [[https:~~/~~/download.pytorch.org/whl/cu126>>https://download.pytorch.org/whl/cu126]] |
![]() |
1.1 | 27 | |
![]() |
5.1 | 28 | pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 - index-url https:~/~/download.pytorch.org/whl/cu121 |
![]() |
4.1 | 29 | |
![]() |
5.1 | 30 | |
| 31 | |||
| 32 | |||
![]() |
1.1 | 33 | = [[deleting conda environment safely>>url:https://stackoverflow.com/questions/61031852/deleting-conda-environment-safely]] = |
| 34 | |||
| 35 | {{{conda env remove --name myenv}}} | ||
| 36 | |||
| 37 | **conda env list** | ||
| 38 | |||
![]() |
3.1 | 39 | conda install cudnn=9.1 |
| 40 | |||
| 41 | |||
![]() |
6.1 | 42 | === Fehler === |
![]() |
1.1 | 43 | |
![]() |
6.1 | 44 | _pickle.UnpicklingError: Weights only load failed. This file can still be loaded, to do so you have two options, do those steps only if you trust the source of the checkpoint. |
| 45 | (1) In PyTorch 2.6, we changed the default value of the weights_only argument in torch.load from False to True. Re-running torch.load with weights_only set to False will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source. | ||
| 46 | (2) Alternatively, to load with weights_only=True please check the recommended steps in the following error message. | ||
| 47 | WeightsUnpickler error: Unsupported global: GLOBAL pathlib.PosixPath was not an allowed global by default. Please use torch.serialization.add_safe_globals([PosixPath]) or the torch.serialization.safe_globals([PosixPath]) context manager to allowlist this global if you trust this class/function. | ||
![]() |
1.1 | 48 | |
| 49 | |||
![]() |
6.1 | 50 | |
| 51 | just use a version off pytorche lower than 2.6 | ||
| 52 | im using this version on my 4050 and it worked : # CUDA 11.8 | ||
| 53 | pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 ~-~-index-url [[https:~~/~~/download.pytorch.org/whl/cu118>>url:https://download.pytorch.org/whl/cu118]] | ||
| 54 | |||
![]() |
7.1 | 55 | pip install . |
![]() |
6.1 | 56 | |
![]() |
7.1 | 57 | |
| 58 | |||
![]() |
1.1 | 59 | = Paragraph 2 = |
| 60 | |||
| 61 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
| 62 | |||
| 63 | == Sub-paragraph == | ||
| 64 | |||
| 65 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
| 66 | |||
| 67 | == Sub-paragraph == | ||
| 68 | |||
| 69 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
