mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #324] Not able to install following instructions on main page. #282
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openai/CLIP#282
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
3702849800Preparing 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:
Current channels:
To search for alternate channels that may provide the conda package you're
looking for, navigate to
and use the search bar at the top of the page.
@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
570a54198bfrom promisor remotewarning: 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.