[GH-ISSUE #324] Not able to install following instructions on main page. #282

Open
opened 2026-10-31 21:13:24 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @teslashark on GitHub (Feb 19, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/324

Windows 11.

I have Pytorch 1.7.1, Anaconda and CUDA installed, though I really don't know how to install CLIP as a python package.

(base) C:\Users\ggsha>pip install --yes -c pytorch pytorch=1.7.1 torchvision cudatoolkit=11.7

Usage:
pip install [options] [package-index-options] ...
pip install [options] -r [package-index-options] ...
pip install [options] [-e] ...
pip install [options] [-e] ...
pip install [options] <archive url/path> ...

no such option: --yes

(base) C:\Users\ggsha>pip install ftfy regex tqdm
Collecting ftfy
Using cached ftfy-6.1.1-py3-none-any.whl (53 kB)
Requirement already satisfied: regex in e:\anaconda\lib\site-packages (2022.7.9)
Requirement already satisfied: tqdm in e:\anaconda\lib\site-packages (4.64.1)
Requirement already satisfied: wcwidth>=0.2.5 in e:\anaconda\lib\site-packages (from ftfy) (0.2.5)
Requirement already satisfied: colorama in e:\anaconda\lib\site-packages (from tqdm) (0.4.5)
Installing collected packages: ftfy
Successfully installed ftfy-6.1.1

(base) C:\Users\ggsha>pip install git+https://github.com/openai/CLIP.git
Collecting git+https://github.com/openai/CLIP.git
Cloning https://github.com/openai/CLIP.git to c:\users\ggsha\appdata\local\temp\pip-req-build-4bjqtr30
Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-4bjqtr30'
Resolved https://github.com/openai/CLIP.git to commit 3702849800
Preparing metadata (setup.py) ... done
Requirement already satisfied: ftfy in e:\anaconda\lib\site-packages (from clip==1.0) (6.1.1)
Requirement already satisfied: regex in e:\anaconda\lib\site-packages (from clip==1.0) (2022.7.9)
Requirement already satisfied: tqdm in e:\anaconda\lib\site-packages (from clip==1.0) (4.64.1)
Requirement already satisfied: torch in e:\anaconda\lib\site-packages (from clip==1.0) (1.13.1)
Requirement already satisfied: torchvision in e:\anaconda\lib\site-packages (from clip==1.0) (0.14.1)
Requirement already satisfied: wcwidth>=0.2.5 in e:\anaconda\lib\site-packages (from ftfy->clip==1.0) (0.2.5)
Requirement already satisfied: typing_extensions in e:\anaconda\lib\site-packages (from torch->clip==1.0) (4.3.0)
Requirement already satisfied: numpy in e:\anaconda\lib\site-packages (from torchvision->clip==1.0) (1.21.5)
Requirement already satisfied: requests in e:\anaconda\lib\site-packages (from torchvision->clip==1.0) (2.28.1)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in e:\anaconda\lib\site-packages (from torchvision->clip==1.0) (9.2.0)
Requirement already satisfied: colorama in e:\anaconda\lib\site-packages (from tqdm->clip==1.0) (0.4.5)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\anaconda\lib\site-packages (from requests->torchvision->clip==1.0) (1.26.11)
Requirement already satisfied: certifi>=2017.4.17 in e:\anaconda\lib\site-packages (from requests->torchvision->clip==1.0) (2022.9.14)
Requirement already satisfied: idna<4,>=2.5 in e:\anaconda\lib\site-packages (from requests->torchvision->clip==1.0) (3.3)
Requirement already satisfied: charset-normalizer<3,>=2 in e:\anaconda\lib\site-packages (from requests->torchvision->clip==1.0) (2.0.4)
Building wheels for collected packages: clip
Building wheel for clip (setup.py) ... done
Created wheel for clip: filename=clip-1.0-py3-none-any.whl size=1369447 sha256=d01983a329d393f7f8d3867450ce58c0335d1ad7781a183a2b8c57f0967673c4
Stored in directory: C:\Users\ggsha\AppData\Local\Temp\pip-ephem-wheel-cache-pg0lit9o\wheels\c8\e4\e1\11374c111387672fc2068dfbe0d4b424cb9cdd1b2e184a71b5
Successfully built clip
Installing collected packages: clip
Successfully installed clip-1.0

(base) C:\Users\ggsha>conda install --yes -c pytorch pytorch=1.7.1 torchvision cudatoolkit=11.7
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  • cudatoolkit=11.7

Current channels:

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

Originally created by @teslashark on GitHub (Feb 19, 2023). Original GitHub issue: https://github.com/openai/CLIP/issues/324 Windows 11. I have Pytorch 1.7.1, Anaconda and CUDA installed, though I really don't know how to install CLIP as a python package. (base) C:\Users\ggsha>pip install --yes -c pytorch pytorch=1.7.1 torchvision cudatoolkit=11.7 Usage: pip install [options] <requirement specifier> [package-index-options] ... pip install [options] -r <requirements file> [package-index-options] ... pip install [options] [-e] <vcs project url> ... pip install [options] [-e] <local project path> ... pip install [options] <archive url/path> ... no such option: --yes (base) C:\Users\ggsha>pip install ftfy regex tqdm Collecting ftfy Using cached ftfy-6.1.1-py3-none-any.whl (53 kB) Requirement already satisfied: regex in e:\anaconda\lib\site-packages (2022.7.9) Requirement already satisfied: tqdm in e:\anaconda\lib\site-packages (4.64.1) Requirement already satisfied: wcwidth>=0.2.5 in e:\anaconda\lib\site-packages (from ftfy) (0.2.5) Requirement already satisfied: colorama in e:\anaconda\lib\site-packages (from tqdm) (0.4.5) Installing collected packages: ftfy Successfully installed ftfy-6.1.1 (base) C:\Users\ggsha>pip install git+https://github.com/openai/CLIP.git Collecting git+https://github.com/openai/CLIP.git Cloning https://github.com/openai/CLIP.git to c:\users\ggsha\appdata\local\temp\pip-req-build-4bjqtr30 Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-4bjqtr30' Resolved https://github.com/openai/CLIP.git to commit 3702849800aa56e2223035bccd1c6ef91c704ca8 Preparing metadata (setup.py) ... done Requirement already satisfied: ftfy in e:\anaconda\lib\site-packages (from clip==1.0) (6.1.1) Requirement already satisfied: regex in e:\anaconda\lib\site-packages (from clip==1.0) (2022.7.9) Requirement already satisfied: tqdm in e:\anaconda\lib\site-packages (from clip==1.0) (4.64.1) Requirement already satisfied: torch in e:\anaconda\lib\site-packages (from clip==1.0) (1.13.1) Requirement already satisfied: torchvision in e:\anaconda\lib\site-packages (from clip==1.0) (0.14.1) Requirement already satisfied: wcwidth>=0.2.5 in e:\anaconda\lib\site-packages (from ftfy->clip==1.0) (0.2.5) Requirement already satisfied: typing_extensions in e:\anaconda\lib\site-packages (from torch->clip==1.0) (4.3.0) Requirement already satisfied: numpy in e:\anaconda\lib\site-packages (from torchvision->clip==1.0) (1.21.5) Requirement already satisfied: requests in e:\anaconda\lib\site-packages (from torchvision->clip==1.0) (2.28.1) Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in e:\anaconda\lib\site-packages (from torchvision->clip==1.0) (9.2.0) Requirement already satisfied: colorama in e:\anaconda\lib\site-packages (from tqdm->clip==1.0) (0.4.5) Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\anaconda\lib\site-packages (from requests->torchvision->clip==1.0) (1.26.11) Requirement already satisfied: certifi>=2017.4.17 in e:\anaconda\lib\site-packages (from requests->torchvision->clip==1.0) (2022.9.14) Requirement already satisfied: idna<4,>=2.5 in e:\anaconda\lib\site-packages (from requests->torchvision->clip==1.0) (3.3) Requirement already satisfied: charset-normalizer<3,>=2 in e:\anaconda\lib\site-packages (from requests->torchvision->clip==1.0) (2.0.4) Building wheels for collected packages: clip Building wheel for clip (setup.py) ... done Created wheel for clip: filename=clip-1.0-py3-none-any.whl size=1369447 sha256=d01983a329d393f7f8d3867450ce58c0335d1ad7781a183a2b8c57f0967673c4 Stored in directory: C:\Users\ggsha\AppData\Local\Temp\pip-ephem-wheel-cache-pg0lit9o\wheels\c8\e4\e1\11374c111387672fc2068dfbe0d4b424cb9cdd1b2e184a71b5 Successfully built clip Installing collected packages: clip Successfully installed clip-1.0 (base) C:\Users\ggsha>conda install --yes -c pytorch pytorch=1.7.1 torchvision cudatoolkit=11.7 Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. PackagesNotFoundError: The following packages are not available from current channels: - cudatoolkit=11.7 Current channels: - https://conda.anaconda.org/pytorch/win-64 - https://conda.anaconda.org/pytorch/noarch - https://repo.anaconda.com/pkgs/main/win-64 - https://repo.anaconda.com/pkgs/main/noarch - https://repo.anaconda.com/pkgs/r/win-64 - https://repo.anaconda.com/pkgs/r/noarch - https://repo.anaconda.com/pkgs/msys2/win-64 - https://repo.anaconda.com/pkgs/msys2/noarch To search for alternate channels that may provide the conda package you're looking for, navigate to https://anaconda.org and use the search bar at the top of the page.
Author
Owner

@teslashark commented on GitHub (Feb 19, 2023):

Git Bash says:

$ pip install git+https://github.com/openai/CLIP.git
Collecting git+https://github.com/openai/CLIP.git
Cloning https://github.com/openai/CLIP.git to c:\users\ggsha\appdata\local\temp\pip-req-build-s_nuq695
Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-s_nuq695'
fatal: unable to access 'https://github.com/openai/CLIP.git/': Recv failure: Connection was reset
fatal: could not fetch 570a54198b from promisor remote
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

error: subprocess-exited-with-error

git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-s_nuq695' did not run successfully.
exit code: 128

See above for output.

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

git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-s_nuq695' did not run successfully.
exit code: 128

See above for output.

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

<!-- gh-comment-id:1435907477 --> @teslashark commented on GitHub (Feb 19, 2023): Git Bash says: $ pip install git+https://github.com/openai/CLIP.git Collecting git+https://github.com/openai/CLIP.git Cloning https://github.com/openai/CLIP.git to c:\users\ggsha\appdata\local\temp\pip-req-build-s_nuq695 Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-s_nuq695' fatal: unable to access 'https://github.com/openai/CLIP.git/': Recv failure: Connection was reset fatal: could not fetch 570a54198bb0d012a585c3999d5281c07cd339e9 from promisor remote warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry with 'git restore --source=HEAD :/' error: subprocess-exited-with-error git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-s_nuq695' did not run successfully. exit code: 128 See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\ggsha\AppData\Local\Temp\pip-req-build-s_nuq695' did not run successfully. exit code: 128 See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openai/CLIP#282
No description provided.