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

How the project is deployed in windows environment #32

Open
404-xianjin opened this issue Dec 14, 2024 · 4 comments
Open

How the project is deployed in windows environment #32

404-xianjin opened this issue Dec 14, 2024 · 4 comments

Comments

@404-xianjin
Copy link

Hi, I'm getting tons of errors preparing virtual environments in a windows environment, is windows not supported? Please help me, thanks!

@404-xianjin
Copy link
Author

(base) PS D:\StableAnimator> conda create --name StableAnimator python=3.10
Channels:
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: D:\MiniConda\envs\StableAnimator

  added / updated specs:
    - python=3.10


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    python-3.10.16             |       h4607a30_1        16.3 MB
    ------------------------------------------------------------
                                           Total:        16.3 MB

The following NEW packages will be INSTALLED:

  bzip2              pkgs/main/win-64::bzip2-1.0.8-h2bbff1b_6
  ca-certificates    pkgs/main/win-64::ca-certificates-2024.11.26-haa95532_0
  libffi             pkgs/main/win-64::libffi-3.4.4-hd77b12b_1
  openssl            pkgs/main/win-64::openssl-3.0.15-h827c3e9_0
  pip                pkgs/main/win-64::pip-24.2-py310haa95532_0
  python             pkgs/main/win-64::python-3.10.16-h4607a30_1
  setuptools         pkgs/main/win-64::setuptools-75.1.0-py310haa95532_0
  sqlite             pkgs/main/win-64::sqlite-3.45.3-h2bbff1b_0
  tk                 pkgs/main/win-64::tk-8.6.14-h0416ee5_0
  tzdata             pkgs/main/noarch::tzdata-2024b-h04d1e81_0
  vc                 pkgs/main/win-64::vc-14.40-haa95532_2
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.42.34433-h9531ae6_2
  wheel              pkgs/main/win-64::wheel-0.44.0-py310haa95532_0
  xz                 pkgs/main/win-64::xz-5.4.6-h8cc25b3_1
  zlib               pkgs/main/win-64::zlib-1.2.13-h8cc25b3_1


Proceed ([y]/n)? y


Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate StableAnimator
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(base) PS D:\StableAnimator> conda activate StableAnimator
(StableAnimator) PS D:\StableAnimator> pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu124
Looking in indexes: https://download.pytorch.org/whl/cu124, https://pypi.ngc.nvidia.com
Requirement already satisfied: torch==2.5.1 in c:\users\sinobio\appdata\roaming\python\python310\site-packages (2.5.1+cu124)
Requirement already satisfied: torchvision==0.20.1 in c:\users\sinobio\appdata\roaming\python\python310\site-packages (0.20.1+cu124)
Requirement already satisfied: torchaudio==2.5.1 in c:\users\sinobio\appdata\roaming\python\python310\site-packages (2.5.1+cu124)
Collecting filelock (from torch==2.5.1)
  Downloading https://download.pytorch.org/whl/filelock-3.13.1-py3-none-any.whl (11 kB)
Collecting typing-extensions>=4.8.0 (from torch==2.5.1)
  Downloading https://download.pytorch.org/whl/typing_extensions-4.9.0-py3-none-any.whl (32 kB)
Collecting networkx (from torch==2.5.1)
  Downloading https://download.pytorch.org/whl/networkx-3.2.1-py3-none-any.whl (1.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 682.2 kB/s eta 0:00:00
Collecting jinja2 (from torch==2.5.1)
  Downloading https://download.pytorch.org/whl/Jinja2-3.1.3-py3-none-any.whl (133 kB)
Collecting fsspec (from torch==2.5.1)
  Downloading https://download.pytorch.org/whl/fsspec-2024.2.0-py3-none-any.whl (170 kB)
Requirement already satisfied: sympy==1.13.1 in c:\users\sinobio\appdata\roaming\python\python310\site-packages (from torch==2.5.1) (1.13.1)
Collecting numpy (from torchvision==0.20.1)
  Downloading https://download.pytorch.org/whl/numpy-1.26.3-cp310-cp310-win_amd64.whl (15.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.8/15.8 MB 186.6 kB/s eta 0:00:00
Collecting pillow!=8.3.*,>=5.3.0 (from torchvision==0.20.1)
  Downloading https://download.pytorch.org/whl/pillow-10.2.0-cp310-cp310-win_amd64.whl (2.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 182.4 kB/s eta 0:00:00
Collecting mpmath<1.4,>=1.1.0 (from sympy==1.13.1->torch==2.5.1)
  Downloading https://download.pytorch.org/whl/mpmath-1.3.0-py3-none-any.whl (536 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 536.2/536.2 kB 197.0 kB/s eta 0:00:00
Collecting MarkupSafe>=2.0 (from jinja2->torch==2.5.1)
  Downloading https://download.pytorch.org/whl/MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl (17 kB)
WARNING: Error parsing dependencies of torchsde: .* suffix can only be used with `==` or `!=` operators
    numpy (>=1.19.*) ; python_version >= "3.7"
           ~~~~~~~^
Installing collected packages: mpmath, typing-extensions, pillow, numpy, networkx, MarkupSafe, fsspec, filelock, jinja2
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
altair 5.3.0 requires packaging, which is not installed.
altair 5.3.0 requires pandas>=0.25, which is not installed.
deepfloyd-if 1.0.2rc0 requires accelerate~=0.15.0, which is not installed.
deepfloyd-if 1.0.2rc0 requires beautifulsoup4~=4.11.1, which is not installed.
deepfloyd-if 1.0.2rc0 requires diffusers~=0.16.0, which is not installed.
deepfloyd-if 1.0.2rc0 requires huggingface-hub>=0.13.2, which is not installed.
deepfloyd-if 1.0.2rc0 requires matplotlib, which is not installed.
deepfloyd-if 1.0.2rc0 requires omegaconf, which is not installed.
deepfloyd-if 1.0.2rc0 requires tokenizers~=0.13.2, which is not installed.
deepfloyd-if 1.0.2rc0 requires tqdm, which is not installed.
deepfloyd-if 1.0.2rc0 requires transformers~=4.25.1, which is not installed.
descript-audio-codec 1.0.0 requires einops, which is not installed.
descript-audio-codec 1.0.0 requires tqdm, which is not installed.
descript-audiotools 0.7.2 requires ffmpy, which is not installed.
descript-audiotools 0.7.2 requires matplotlib, which is not installed.
descript-audiotools 0.7.2 requires protobuf<3.20,>=3.9.2, which is not installed.
descript-audiotools 0.7.2 requires rich, which is not installed.
descript-audiotools 0.7.2 requires scipy, which is not installed.
descript-audiotools 0.7.2 requires tqdm, which is not installed.
ipython 8.23.0 requires exceptiongroup; python_version < "3.11", which is not installed.
ipython 8.23.0 requires pygments>=2.4.0, which is not installed.
librosa 0.10.1 requires joblib>=0.14, which is not installed.
librosa 0.10.1 requires numba>=0.51.0, which is not installed.
librosa 0.10.1 requires scikit-learn>=0.20.0, which is not installed.
librosa 0.10.1 requires scipy>=1.2.0, which is not installed.
lightning-utilities 0.11.0 requires packaging>=17.1, which is not installed.
llama-index-core 0.10.33 requires httpx, which is not installed.
llama-index-core 0.10.33 requires pandas, which is not installed.
llama-index-core 0.10.33 requires PyYAML>=6.0.1, which is not installed.
llama-index-core 0.10.33 requires requests>=2.31.0, which is not installed.
llama-index-core 0.10.33 requires tqdm<5.0.0,>=4.66.1, which is not installed.
llama-index-legacy 0.9.48 requires httpx, which is not installed.
llama-index-legacy 0.9.48 requires pandas, which is not installed.
llama-index-legacy 0.9.48 requires requests>=2.31.0, which is not installed.
llama-index-readers-file 0.1.19 requires beautifulsoup4<5.0.0,>=4.12.3, which is not installed.
onnxruntime 1.16.3 requires packaging, which is not installed.
onnxruntime 1.16.3 requires protobuf, which is not installed.
openai 1.23.6 requires anyio<5,>=3.5.0, which is not installed.
openai 1.23.6 requires httpx<1,>=0.23.0, which is not installed.
openai 1.23.6 requires pydantic<3,>=1.9.0, which is not installed.
openai 1.23.6 requires tqdm>4, which is not installed.
peft 0.11.1 requires accelerate>=0.21.0, which is not installed.
peft 0.11.1 requires huggingface-hub>=0.17.0, which is not installed.
peft 0.11.1 requires packaging>=20.0, which is not installed.
peft 0.11.1 requires psutil, which is not installed.
peft 0.11.1 requires pyyaml, which is not installed.
peft 0.11.1 requires safetensors, which is not installed.
peft 0.11.1 requires tqdm, which is not installed.
peft 0.11.1 requires transformers, which is not installed.
pyloudnorm 0.1.1 requires scipy>=1.0.1, which is not installed.
pystoi 0.4.1 requires scipy, which is not installed.
pytorch-lightning 1.9.4 requires packaging>=17.1, which is not installed.
pytorch-lightning 1.9.4 requires PyYAML>=5.4, which is not installed.
pytorch-lightning 1.9.4 requires tqdm>=4.57.0, which is not installed.
tensorboard 2.16.2 requires protobuf!=4.24.0,>=3.19.6, which is not installed.
tensorboardx 2.6.2.2 requires packaging, which is not installed.
tensorboardx 2.6.2.2 requires protobuf>=3.20, which is not installed.
torchmetrics 1.3.2 requires packaging>17.1, which is not installed.
deepfloyd-if 1.0.2rc0 requires torch<2.0.0, but you have torch 2.5.1+cu124 which is incompatible.
Successfully installed MarkupSafe-2.1.5 filelock-3.13.1 fsspec-2024.2.0 jinja2-3.1.3 mpmath-1.3.0 networkx-3.2.1 numpy-1.26.3 pillow-10.2.0 typing-extensions-4.9.0
(StableAnimator) PS D:\StableAnimator> pip install torch==2.5.1+cu124 xformers --index-url https://download.pytorch.org/whl/cu124

How do I fix this error?

@nitinmukesh
Copy link

@404-xianjin

See if this helps
https://youtu.be/36ji6iuUG64

@Francis-Rings
Copy link
Owner

@404-xianjin

See if this helps https://youtu.be/36ji6iuUG64

Hi, thank you for your contribution!

@404-xianjin
Copy link
Author

thank you @nitinmukesh

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

3 participants