这个库是用来查询当前项目使用的库都有哪些,在项目文件夹里进入cmd,输入
pipreqs ./
以下是安装日志
–
C:\Users\rkey\Desktop\测试\video>pip install pipreqs
Collecting pipreqs
Downloading pipreqs-0.4.13-py2.py3-none-any.whl.metadata (7.4 kB)
Collecting docopt (from pipreqs)
Downloading docopt-0.6.2.tar.gz (25 kB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing metadata (pyproject.toml) … done
Collecting yarg (from pipreqs)
Downloading yarg-0.1.10-py2.py3-none-any.whl.metadata (4.5 kB)
Requirement already satisfied: requests in c:\application\python\python313\lib\site-packages (from yarg->pipreqs) (2.32.3)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\application\python\python313\lib\site-packages (from requests->yarg->pipreqs) (3.4.0)
Requirement already satisfied: idna<4,>=2.5 in c:\application\python\python313\lib\site-packages (from requests->yarg->pipreqs) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\application\python\python313\lib\site-packages (from requests->yarg->pipreqs) (2.2.3)
Requirement already satisfied: certifi>=2017.4.17 in c:\application\python\python313\lib\site-packages (from requests->yarg->pipreqs) (2024.8.30)
Downloading pipreqs-0.4.13-py2.py3-none-any.whl (33 kB)
Downloading yarg-0.1.10-py2.py3-none-any.whl (13 kB)
Building wheels for collected packages: docopt
Building wheel for docopt (pyproject.toml) … done
Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13775 sha256=2fcda2e9e4af051ca230ea2873eafc9c42dde535ff98d238a8c604a79104d44d
Stored in directory: c:\users\rkey\appdata\local\pip\cache\wheels\0b\1d\03\175286677fb5a1341cc3e4755bf8ec0ed08f3329afd67446b0
Successfully built docopt
Installing collected packages: docopt, yarg, pipreqs
Successfully installed docopt-0.6.2 pipreqs-0.4.13 yarg-0.1.10
[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: python.exe -m pip install –upgrade pip
–