VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > Python基础教程 >
  • python第三方包安装路径site-packages下.libs作用详解

这篇文章主要为大家介绍了python 第三方包安装路径 site-packages 下面的以 .libs 结尾的路径作用详解,有需要的朋友可以借鉴参考下,希望能够有所帮助,祝大家多多进步,早日升职加薪

linux 环境下,动态链接库是放在 libs 下面的
python 第三方包安装路径 site-packages 下面的以 .libs 结尾的路径是干嘛的?

(svddb_sdk) ╭─pon@amd5700g ~/.local/share/virtualenvs/svddb_sdk-oJGZEtXx/lib/python3.10/site-packages 
╰─➤  ll | grep libs      
17056431 drwxrwxr-x      2    -      - pon  pon   12 2月  23:56 av.libs
17060238 drwxrwxr-x      2    -      - pon  pon   12 2月  23:56 numpy.libs
17073792 drwxrwxr-x      2    -      - pon  pon   12 2月  23:56 opencv_python.libs
17060002 drwxrwxr-x      2    -      - pon  pon   12 2月  23:56 Pillow.libs
17182651 drwxrwxr-x      2    -      - pon  pon   12 2月  23:56 torchvision.libs

以 pyav 举例,在 linux 下面,pyav 依赖的第三方动态链接(ffmpeg 那些 libav库),是和 av 同级别的

(svddb_sdk) ╭─pon@amd5700g ~/.local/share/virtualenvs/svddb_sdk-oJGZEtXx/lib/python3.10/site-packages 
╰─➤  ll | grep av  
17056294 drwxrwxr-x     11    -      - pon  pon   12 2月  23:56 av
17056478 drwxrwxr-x      3    -      - pon  pon   12 2月  23:56 av-10.0.0.dist-info
17056431 drwxrwxr-x      2    -      - pon  pon   12 2月  23:56 av.libs

这些第三方包(指的是 pyav)的第三方依赖(指的是 pyav 依赖的 ffmpeg 那些 libav库),是和第三方包(指的是 pyav)同级目录,并且以 .libs 结尾。如上

mac 环境下,动态链接库是放在 libs 下面的
和 linux 是一样的,这些第三方包(指的是 pyav)的第三方依赖(指的是 pyav 依赖的 ffmpeg 那些 libav库),是放到第三方包(指的是 pyav)目录下面的

(svddb_sdk) ╭─ponponon@MBP13ARM ~/.local/share/virtualenvs/svddb_sdk-oLLehlNY/lib/python3.10/site-packages 
╰─➤  ll | grep av 
23073697 drwxr-xr-x     47    -      - ponponon staff  5 Dec  2022  av
23073688 drwxr-xr-x     13    -      - ponponon staff  5 Dec  2022  av-10.0.0.dist-info

我们可以看到,mac 下面没有 av.libs 文件夹

让我们进入 av 文件夹

cd av
看看 av 目录下面有什么

╰─➤  ll          
   inode Permissions Links Size Blocks User     Group Date Modified Name
23073755 drwxr-xr-x     37    -      - ponponon staff  5 Dec  2022  .dylibs
23073708 .rw-r--r--      1    0      0 ponponon staff  5 Dec  2022  __init__.pxd
23073714 .rw-r--r--      1 1.5k      8 ponponon staff  5 Dec  2022  __init__.py
23073730 .rw-r--r--      1 1.2k      8 ponponon staff  5 Dec  2022  __main__.py
23073861 drwxr-xr-x      7    -      - ponponon staff  5 Dec  2022  __pycache__
23073732 .rwxr-xr-x      1  95k    192 ponponon staff  5 Dec  2022  _core.cpython-310-darwin.so
23073717 .rw-r--r--      1   23      8 ponponon staff  5 Dec  2022  about.py
23073806 drwxr-xr-x     21    -      - ponponon staff  5 Dec  2022  audio
23073725 .rwxr-xr-x      1 116k    232 ponponon staff  5 Dec  2022  buffer.cpython-310-darwin.so
23073712 .rw-r--r--      1  134      8 ponponon staff  5 Dec  2022  buffer.pxd
23073703 .rwxr-xr-x      1  95k    192 ponponon staff  5 Dec  2022  bytesource.cpython-310-darwin.so
23073716 .rw-r--r--      1  249      8 ponponon staff  5 Dec  2022  bytesource.pxd
23073748 drwxr-xr-x      9    -      - ponponon staff  5 Dec  2022  codec
23073793 drwxr-xr-x     15    -      - ponponon staff  5 Dec  2022  container
23073854 drwxr-xr-x      7    -      - ponponon staff  5 Dec  2022  data
23073711 .rw-r--r--      1 3.0k      8 ponponon staff  5 Dec  2022  datasets.py
23073706 .rw-r--r--      1 2.3k      8 ponponon staff  5 Dec  2022  deprecation.py
23073709 .rwxr-xr-x      1  97k    192 ponponon staff  5 Dec  2022  descriptor.cpython-310-darwin.so
23073701 .rw-r--r--      1  527      8 ponponon staff  5 Dec  2022  descriptor.pxd
23073707 .rwxr-xr-x      1 121k    240 ponponon staff  5 Dec  2022  dictionary.cpython-310-darwin.so
23073729 .rw-r--r--      1  182      8 ponponon staff  5 Dec  2022  dictionary.pxd
23073721 .rwxr-xr-x      1 228k    448 ponponon staff  5 Dec  2022  enum.cpython-310-darwin.so
23073720 .rw-r--r--      1   66      8 ponponon staff  5 Dec  2022  enum.pxd
23073718 .rwxr-xr-x      1 217k    424 ponponon staff  5 Dec  2022  error.cpython-310-darwin.so
23073710 .rw-r--r--      1  135      8 ponponon staff  5 Dec  2022  error.pxd
23073834 drwxr-xr-x     15    -      - ponponon staff  5 Dec  2022  filter
23073723 .rwxr-xr-x      1 137k    272 ponponon staff  5 Dec  2022  format.cpython-310-darwin.so
23073705 .rw-r--r--      1  242      8 ponponon staff  5 Dec  2022  format.pxd
23073728 .rwxr-xr-x      1  99k    200 ponponon staff  5 Dec  2022  frame.cpython-310-darwin.so
23073699 .rw-r--r--      1  453      8 ponponon staff  5 Dec  2022  frame.pxd
23073700 .rwxr-xr-x      1 140k    280 ponponon staff  5 Dec  2022  logging.cpython-310-darwin.so
23073704 .rw-r--r--      1   24      8 ponponon staff  5 Dec  2022  logging.pxd
23073719 .rwxr-xr-x      1 122k    240 ponponon staff  5 Dec  2022  option.cpython-310-darwin.so
23073722 .rw-r--r--      1  374      8 ponponon staff  5 Dec  2022  option.pxd
23073724 .rwxr-xr-x      1 118k    232 ponponon staff  5 Dec  2022  packet.cpython-310-darwin.so
23073713 .rw-r--r--      1  447      8 ponponon staff  5 Dec  2022  packet.pxd
23073715 .rwxr-xr-x      1  96k    192 ponponon staff  5 Dec  2022  plane.cpython-310-darwin.so
23073731 .rw-r--r--      1  196      8 ponponon staff  5 Dec  2022  plane.pxd
23073847 drwxr-xr-x      9    -      - ponponon staff  5 Dec  2022  sidedata
23073702 .rwxr-xr-x      1 121k    240 ponponon staff  5 Dec  2022  stream.cpython-310-darwin.so
23073726 .rw-r--r--      1  676      8 ponponon staff  5 Dec  2022  stream.pxd
23073825 drwxr-xr-x     11    -      - ponponon staff  5 Dec  2022  subtitles
23073727 .rwxr-xr-x      1 113k    224 ponponon staff  5 Dec  2022  utils.cpython-310-darwin.so
23073698 .rw-r--r--      1  523      8 ponponon staff  5 Dec  2022  utils.pxd
23073733 drwxr-xr-x     17    -      - ponponon staff  5 Dec  2022  video

有一个 .dylibs 的隐藏文件夹

╰─➤  ll .dylibs         
   inode Permissions Links Size Blocks User     Group Date Modified Name
23073759 .rwxr-xr-x      1 5.6M  11008 ponponon staff  5 Dec  2022  libaom.3.2.0.dylib
23073780 .rwxr-xr-x      1 297k    584 ponponon staff  5 Dec  2022  libass.9.dylib
23073771 .rwxr-xr-x      1  13M  24728 ponponon staff  5 Dec  2022  libavcodec.59.37.100.dylib
23073791 .rwxr-xr-x      1 118k    232 ponponon staff  5 Dec  2022  libavdevice.59.7.100.dylib
23073784 .rwxr-xr-x      1 3.7M   7136 ponponon staff  5 Dec  2022  libavfilter.8.44.100.dylib
23073758 .rwxr-xr-x      1 2.4M   4616 ponponon staff  5 Dec  2022  libavformat.59.27.100.dylib
23073788 .rwxr-xr-x      1 592k   1160 ponponon staff  5 Dec  2022  libavutil.57.28.100.dylib
23073786 .rwxr-xr-x      1 359k    704 ponponon staff  5 Dec  2022  libbluray.2.dylib
23073763 .rwxr-xr-x      1 928k   1816 ponponon staff  5 Dec  2022  libdav1d.5.dylib
23073778 .rwxr-xr-x      1 376k    736 ponponon staff  5 Dec  2022  libfontconfig.1.dylib
23073770 .rwxr-xr-x      1 954k   1864 ponponon staff  5 Dec  2022  libfreetype.6.dylib
23073777 .rwxr-xr-x      1 189k    376 ponponon staff  5 Dec  2022  libfribidi.0.dylib
23073787 .rwxr-xr-x      1 670k   1312 ponponon staff  5 Dec  2022  libgmp.10.dylib
23073774 .rwxr-xr-x      1 3.6M   7040 ponponon staff  5 Dec  2022  libharfbuzz.0.dylib
23073782 .rwxr-xr-x      1 270k    528 ponponon staff  5 Dec  2022  liblzma.5.dylib
23073769 .rwxr-xr-x      1 386k    760 ponponon staff  5 Dec  2022  libmp3lame.0.dylib
23073789 .rwxr-xr-x      1  89k    176 ponponon staff  5 Dec  2022  libogg.0.dylib
23073775 .rwxr-xr-x      1 282k    552 ponponon staff  5 Dec  2022  libopencore-amrnb.0.dylib
23073785 .rwxr-xr-x      1 158k    312 ponponon staff  5 Dec  2022  libopencore-amrwb.0.dylib
23073776 .rwxr-xr-x      1 582k   1144 ponponon staff  5 Dec  2022  libopenjp2.2.4.0.dylib
23073792 .rwxr-xr-x      1 578k   1136 ponponon staff  5 Dec  2022  libopus.0.dylib
23073768 .rwxr-xr-x      1 328k    648 ponponon staff  5 Dec  2022  libpng16.16.dylib
23073790 .rwxr-xr-x      1  86k    168 ponponon staff  5 Dec  2022  libpostproc.56.6.100.dylib
23073783 .rwxr-xr-x      1 177k    352 ponponon staff  5 Dec  2022  libspeex.1.dylib
23073772 .rwxr-xr-x      1 139k    272 ponponon staff  5 Dec  2022  libswresample.4.7.100.dylib
23073779 .rwxr-xr-x      1 669k   1312 ponponon staff  5 Dec  2022  libswscale.6.7.100.dylib
23073766 .rwxr-xr-x      1 124k    248 ponponon staff  5 Dec  2022  libtheoradec.1.dylib
23073756 .rwxr-xr-x      1 243k    480 ponponon staff  5 Dec  2022  libtheoraenc.1.dylib
23073767 .rwxr-xr-x      1 195k    384 ponponon staff  5 Dec  2022  libtwolame.0.dylib
23073781 .rwxr-xr-x      1 244k    480 ponponon staff  5 Dec  2022  libvorbis.0.dylib
23073762 .rwxr-xr-x      1 731k   1432 ponponon staff  5 Dec  2022  libvorbisenc.2.dylib
23073757 .rwxr-xr-x      1 1.6M   3112 ponponon staff  5 Dec  2022  libvpx.7.dylib
23073765 .rwxr-xr-x      1 1.7M   3280 ponponon staff  5 Dec  2022  libx264.164.dylib
23073773 .rwxr-xr-x      1 5.1M   9920 ponponon staff  5 Dec  2022  libx265.199.dylib
23073761 .rwxr-xr-x      1 1.8M   3424 ponponon staff  5 Dec  2022  libxml2.2.dylib

查看 .dylibs 的内容,结果如上,可以看到,linux 中的在 av.libs 中的内容,在 mac 上,是在 av/.dylibs 路径中的

除了 pyav ,其他包也是这样的吗?
是的!

numpy 也是这样

mac 下面

(svddb_sdk) ╭─ponponon@MBP13ARM ~/.local/share/virtualenvs/svddb_sdk-oLLehlNY/lib/python3.10/site-packages/numpy 
╰─➤  ll .dylibs                                                                                                           
   inode Permissions Links Size Blocks User     Group Date Modified Name
23078253 .rw-r--r--      1 129k    256 ponponon staff  5 Dec  2022  libgcc_s.2.dylib
23078252 .rwxr-xr-x      1 3.3M   6400 ponponon staff  5 Dec  2022  libgfortran.5.dylib
23078254 .rwxr-xr-x      1  23M  44072 ponponon staff  5 Dec  2022  libopenblas64_.0.dylib

linux 下面

(svddb_sdk) ╭─pon@amd5700g ~/.local/share/virtualenvs/svddb_sdk-oJGZEtXx/lib/python3.10/site-packages 
╰─➤  ll | grep numpy
17060266 drwxrwxr-x     21    -      - pon  pon   12 2月  23:56 numpy
17060258 drwxrwxr-x      2    -      - pon  pon   12 2月  23:56 numpy-1.24.2.dist-info
17060238 drwxrwxr-x      2    -      - pon  pon   12 2月  23:56 numpy.libs

opencv-python

mac 下面

╰─➤  ll | grep -e "opencv" -e "cv"                                                                                          
23091673 drwxr-xr-x     18    -      - ponponon staff  5 Dec  2022  cv2
23091767 drwxr-xr-x     10    -      - ponponon staff  5 Dec  2022  opencv_python-4.6.0.66.dist-info
─➤  ll cv2/.dylibs 
   inode Permissions Links Size Blocks User     Group Date Modified Name
23091705 .rw-r--r--      1 3.2M   6200 ponponon staff  5 Dec  2022  libaom.3.3.0.dylib
23091734 .rw-r--r--      1 9.8M  19160 ponponon staff  5 Dec  2022  libavcodec.58.134.100.dylib
23091714 .rw-r--r--      1 2.2M   4240 ponponon staff  5 Dec  2022  libavformat.58.76.100.dylib
23091735 .rw-r--r--      1 124k    248 ponponon staff  5 Dec  2022  libavresample.4.0.0.dylib
23091700 .rw-r--r--      1 453k    888 ponponon staff  5 Dec  2022  libavutil.56.70.100.dylib
23091743 .rw-r--r--      1 346k    680 ponponon staff  5 Dec  2022  libbluray.2.dylib
23091739 .rw-r--r--      1 184k    368 ponponon staff  5 Dec  2022  libbrotlicommon.1.0.9.dylib
23091736 .rw-r--r--      1 104k    208 ponponon staff  5 Dec  2022  libbrotlidec.1.0.9.dylib
23091718 .rw-r--r--      1 605k   1184 ponponon staff  5 Dec  2022  libbrotlienc.1.0.9.dylib
23091709 .rw-r--r--      1  90k    184 ponponon staff  5 Dec  2022  libcjson.1.7.15.dylib
23091740 .rw-r--r--      1 2.2M   4304 ponponon staff  5 Dec  2022  libcrypto.1.1.dylib
23091702 .rw-r--r--      1 911k   1784 ponponon staff  5 Dec  2022  libdav1d.5.dylib
23091698 .rw-r--r--      1 138k    272 ponponon staff  5 Dec  2022  libffi.8.dylib
23091729 .rw-r--r--      1 306k    600 ponponon staff  5 Dec  2022  libfontconfig.1.dylib
23091717 .rw-r--r--      1 656k   1288 ponponon staff  5 Dec  2022  libfreetype.6.dylib
23091744 .rw-r--r--      1 464k    912 ponponon staff  5 Dec  2022  libgmp.10.dylib
23091701 .rw-r--r--      1 1.8M   3608 ponponon staff  5 Dec  2022  libgnutls.30.dylib
23091713 .rw-r--r--      1 317k    624 ponponon staff  5 Dec  2022  libhogweed.6.4.dylib
23091706 .rw-r--r--      1 191k    376 ponponon staff  5 Dec  2022  libidn2.0.dylib
23091725 .rw-r--r--      1 111k    224 ponponon staff  5 Dec  2022  libintl.8.dylib
23091746 .rw-r--r--      1 1.6M   3088 ponponon staff  5 Dec  2022  libjxl.0.6.1.dylib
23091733 .rw-r--r--      1 182k    360 ponponon staff  5 Dec  2022  liblzma.5.dylib
23091727 .rw-r--r--      1 472k    928 ponponon staff  5 Dec  2022  libmbedcrypto.3.1.0.dylib
23091716 .rw-r--r--      1 323k    632 ponponon staff  5 Dec  2022  libmp3lame.0.dylib
23091708 .rw-r--r--      1 292k    576 ponponon staff  5 Dec  2022  libnettle.8.4.dylib
23091745 .rw-r--r--      1  89k    176 ponponon staff  5 Dec  2022  libogg.0.dylib
23091721 .rw-r--r--      1 195k    384 ponponon staff  5 Dec  2022  libopencore-amrnb.0.dylib
23091742 .rw-r--r--      1 123k    240 ponponon staff  5 Dec  2022  libopencore-amrwb.0.dylib
23091724 .rw-r--r--      1 325k    640 ponponon staff  5 Dec  2022  libopenjp2.2.4.0.dylib
23091747 .rw-r--r--      1 356k    696 ponponon staff  5 Dec  2022  libopus.0.dylib
23091696 .rw-r--r--      1 1.1M   2232 ponponon staff  5 Dec  2022  libp11-kit.0.dylib
23091711 .rw-r--r--      1 226k    448 ponponon staff  5 Dec  2022  libpng16.16.dylib
23091728 .rw-r--r--      1 2.9M   5744 ponponon staff  5 Dec  2022  librav1e.0.5.1.dylib
23091722 .rw-r--r--      1 220k    432 ponponon staff  5 Dec  2022  librist.4.dylib
23091741 .rw-r--r--      1  94k    192 ponponon staff  5 Dec  2022  libsnappy.1.1.9.dylib
23091720 .rw-r--r--      1 253k    496 ponponon staff  5 Dec  2022  libsodium.23.dylib
23091704 .rw-r--r--      1 194k    384 ponponon staff  5 Dec  2022  libsoxr.0.1.2.dylib
23091738 .rw-r--r--      1 143k    280 ponponon staff  5 Dec  2022  libspeex.1.dylib
23091723 .rw-r--r--      1 647k   1272 ponponon staff  5 Dec  2022  libsrt.1.4.4.dylib
23091712 .rw-r--r--      1 508k   1000 ponponon staff  5 Dec  2022  libssl.1.1.dylib
23091715 .rw-r--r--      1 138k    272 ponponon staff  5 Dec  2022  libswresample.3.9.100.dylib
23091695 .rw-r--r--      1 503k    984 ponponon staff  5 Dec  2022  libswscale.5.9.100.dylib
23091703 .rw-r--r--      1 108k    216 ponponon staff  5 Dec  2022  libtasn1.6.dylib
23091710 .rw-r--r--      1 109k    216 ponponon staff  5 Dec  2022  libtheoradec.1.dylib
23091693 .rw-r--r--      1 211k    416 ponponon staff  5 Dec  2022  libtheoraenc.1.dylib
23091732 .rw-r--r--      1 1.7M   3384 ponponon staff  5 Dec  2022  libunistring.2.dylib
23091697 .rw-r--r--      1 781k   1528 ponponon staff  5 Dec  2022  libvmaf.1.dylib
23091731 .rw-r--r--      1 211k    416 ponponon staff  5 Dec  2022  libvorbis.0.dylib
23091699 .rw-r--r--      1 732k   1432 ponponon staff  5 Dec  2022  libvorbisenc.2.dylib
23091694 .rw-r--r--      1 1.5M   2856 ponponon staff  5 Dec  2022  libvpx.7.dylib
23091726 .rw-r--r--      1 353k    696 ponponon staff  5 Dec  2022  libwebp.7.dylib
23091730 .rw-r--r--      1  90k    176 ponponon staff  5 Dec  2022  libwebpmux.3.dylib
23091707 .rw-r--r--      1 1.3M   2568 ponponon staff  5 Dec  2022  libx264.163.dylib
23091719 .rw-r--r--      1 2.7M   5368 ponponon staff  5 Dec  2022  libx265.199.dylib
23091737 .rw-r--r--      1 650k   1272 ponponon staff  5 Dec  2022  libzmq.5.dylib

linux 下面

─➤  ll | grep -e "opencv" -e "cv"                                                                                                                                                        
17073699 drwxrwxr-x      9    -      - pon  pon   12 223:56 cv2
17073785 drwxrwxr-x      2    -      - pon  pon   12 223:56 opencv_python-4.7.0.68.dist-info
17073792 drwxrwxr-x      2    -      - pon  pon   12 223:56 opencv_python.libs
╰─➤  ll opencv_python.libs                          
   inode Permissions Links Size Blocks User Group Date Modified Name
17073810 .rwxrwxr-x      1  13M  26264 pon  pon   12 2  23:56 libavcodec-087c3416.so.59.37.100
17073816 .rwxrwxr-x      1 2.6M   5016 pon  pon   12 2  23:56 libavformat-85e01647.so.59.27.100
17073806 .rwxrwxr-x      1 845k   1656 pon  pon   12 2  23:56 libavutil-82c407cb.so.57.28.100
17073811 .rwxrwxr-x      1 3.5M   6800 pon  pon   12 2  23:56 libcrypto-9cee340d.so.1.1
17073817 .rwxrwxr-x      1 1.3M   2464 pon  pon   12 2  23:56 libgfortran-91cc3cb1.so.3.0.0
17073797 .rwxrwxr-x      1  37M  72904 pon  pon   12 2  23:56 libopenblas-r0-f650aae0.3.3.so
17073799 .rwxrwxr-x      1 1.1M   2144 pon  pon   12 2  23:56 libpng16-186fce2e.so.16.37.0
17073818 .rwxrwxr-x      1 7.3M  14328 pon  pon   12 2  23:56 libQt5Core-b6e66ee2.so.5.15.0
17073821 .rwxrwxr-x      1 8.9M  17304 pon  pon   12 2  23:56 libQt5Gui-dd62182f.so.5.15.0
17073823 .rwxrwxr-x      1 419k    824 pon  pon   12 2  23:56 libQt5Test-c38a5234.so.5.15.0
17073826 .rwxrwxr-x      1 8.9M  17408 pon  pon   12 2  23:56 libQt5Widgets-e69d94fb.so.5.15.0
17073804 .rwxrwxr-x      1 1.8M   3512 pon  pon   12 2  23:56 libQt5XcbQpa-dcb826d0.so.5.15.0
17073801 .rwxrwxr-x      1 248k    488 pon  pon   12 2  23:56 libquadmath-96973f99.so.0.0.0
17073812 .rwxrwxr-x      1 736k   1440 pon  pon   12 2  23:56 libssl-16e42f2f.so.1.1
17073805 .rwxrwxr-x      1 132k    264 pon  pon   12 2  23:56 libswresample-d02fa90a.so.4.7.100
17073798 .rwxrwxr-x      1 620k   1216 pon  pon   12 2  23:56 libswscale-9b504c0d.so.6.7.100
17073808 .rwxrwxr-x      1 3.3M   6432 pon  pon   12 2  23:56 libvpx-5d0a9e1a.so.7.1.0
17073824 .rwxrwxr-x      1 8.9k     24 pon  pon   12 2  23:56 libX11-xcb-69166bdf.so.1.0.0
17073794 .rwxrwxr-x      1  17k     40 pon  pon   12 2  23:56 libXau-00ec42fe.so.6.0.0
17073802 .rwxrwxr-x      1  24k     48 pon  pon   12 2  23:56 libxcb-icccm-413c9f41.so.4.0.0
17073796 .rwxrwxr-x      1  26k     56 pon  pon   12 2  23:56 libxcb-image-e82a276d.so.0.0.0
17073800 .rwxrwxr-x      1  13k     32 pon  pon   12 2  23:56 libxcb-keysyms-21015570.so.1.0.0
17073814 .rwxrwxr-x      1  94k    184 pon  pon   12 2  23:56 libxcb-randr-a96a5a87.so.0.1.0
17073807 .rwxrwxr-x      1  78k    160 pon  pon   12 2  23:56 libxcb-render-637b984a.so.0.0.0
17073820 .rwxrwxr-x      1  22k     48 pon  pon   12 2  23:56 libxcb-render-util-43ce00f5.so.0.0.0
17073813 .rwxrwxr-x      1  22k     48 pon  pon   12 2  23:56 libxcb-shape-25c2b258.so.0.0.0
17073809 .rwxrwxr-x      1  21k     48 pon  pon   12 2  23:56 libxcb-shm-7a199f70.so.0.0.0
17073815 .rwxrwxr-x      1  36k     72 pon  pon   12 2  23:56 libxcb-sync-89374f40.so.1.0.0
17073819 .rwxrwxr-x      1  26k     56 pon  pon   12 2  23:56 libxcb-util-4d666913.so.1.0.0
17073795 .rwxrwxr-x      1  45k     96 pon  pon   12 2  23:56 libxcb-xfixes-9be3ba6f.so.0.0.0
17073803 .rwxrwxr-x      1  18k     40 pon  pon   12 2  23:56 libxcb-xinerama-ae147f87.so.0.0.0
17073822 .rwxrwxr-x      1 158k    312 pon  pon   12 2  23:56 libxcb-xkb-9ba31ab3.so.1.0.0
17073825 .rwxrwxr-x      1 270k    528 pon  pon   12 2  23:56 libxkbcommon-71ae2972.so.0.0.0
17073793 .rwxrwxr-x      1  48k     96 pon  pon   12 2  23:56 libxkbcommon-x11-c65ed502.so.0.0.0

总结
上面的内容回答了一个疑问:「python 哪些依赖第四方动态链接库的时候,这些「第四方动态链接库」存储在哪里?」的问题

为什么叫做「第四方动态链接库」?是什么意思?—— 「第三方包(指的是 pyav)的第三方依赖(指的是 pyav 依赖的 ffmpeg 那些 libav库)」叫做「第四方动态链接库」

更多关于python包site-packages .libs的资料请关注其它相关文章!

原文链接:https://segmentfault.com/a/1190000044200274


相关教程