1 Install the corresponding dependency package
pip install ftfy regex tqdm
2 Use the github installation source provided by openAI to install
pip install git+https://github.com/openai/CLIP.git
If you have not installed git before, you need to install git before this step