Install the repository in github as a Python package

The first step is to install git

Installation tutorial: https://zhuanlan.zhihu.com/p/114068278

The second step is to copy the link to the library on github
Insert image description here

Step 3: Use the command line to download and install the package with one click

pip install "git+https://github.com/openai/CLIP.git"

If pip install cannot install the package
1. Use the git command or download it directly to the local

git clone https://github.com/xx.git

2. Enter the download file and run

python setup.py install

3. At this time, the .egg file will be generated in the Lib\site-packages file of python, and the package can be used. To see the source code, you can directly unzip the egg file.

Guess you like

Origin blog.csdn.net/Bluebro/article/details/131951222