久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='Fokvh'><style id='Fokvh'><dir id='Fokvh'><q id='Fokvh'></q></dir></style></legend>

    1. <i id='Fokvh'><tr id='Fokvh'><dt id='Fokvh'><q id='Fokvh'><span id='Fokvh'><b id='Fokvh'><form id='Fokvh'><ins id='Fokvh'></ins><ul id='Fokvh'></ul><sub id='Fokvh'></sub></form><legend id='Fokvh'></legend><bdo id='Fokvh'><pre id='Fokvh'><center id='Fokvh'></center></pre></bdo></b><th id='Fokvh'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Fokvh'><tfoot id='Fokvh'></tfoot><dl id='Fokvh'><fieldset id='Fokvh'></fieldset></dl></div>

    2. <tfoot id='Fokvh'></tfoot>
      • <bdo id='Fokvh'></bdo><ul id='Fokvh'></ul>

      <small id='Fokvh'></small><noframes id='Fokvh'>

      查看何時使用 pip 安裝/更新軟件包

      See when packages were installed / updated using pip(查看何時使用 pip 安裝/更新軟件包)

          <tbody id='o1639'></tbody>
          • <bdo id='o1639'></bdo><ul id='o1639'></ul>
          • <small id='o1639'></small><noframes id='o1639'>

          • <tfoot id='o1639'></tfoot>
            <i id='o1639'><tr id='o1639'><dt id='o1639'><q id='o1639'><span id='o1639'><b id='o1639'><form id='o1639'><ins id='o1639'></ins><ul id='o1639'></ul><sub id='o1639'></sub></form><legend id='o1639'></legend><bdo id='o1639'><pre id='o1639'><center id='o1639'></center></pre></bdo></b><th id='o1639'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='o1639'><tfoot id='o1639'></tfoot><dl id='o1639'><fieldset id='o1639'></fieldset></dl></div>

                <legend id='o1639'><style id='o1639'><dir id='o1639'><q id='o1639'></q></dir></style></legend>
                本文介紹了查看何時使用 pip 安裝/更新軟件包的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我知道如何使用 pip 查看已安裝的 Python 包,只需使用 pip freeze.但是有什么方法可以查看使用 pip 安裝或更新包的日期和時間?

                I know how to see installed Python packages using pip, just use pip freeze. But is there any way to see the date and time when package is installed or updated with pip?

                推薦答案

                如果不需要區分更新和安裝,可以使用包文件的更改時間.

                If it's not necessary to differ between updated and installed, you can use the change time of the package file.

                就像 Python 2 一樣,帶有 pip <10:

                Like that for Python 2 with pip < 10:

                import pip, os, time
                
                for package in pip.get_installed_distributions():
                     print "%s: %s" % (package, time.ctime(os.path.getctime(package.location)))
                

                或類似的更新版本(使用 Python 3.7 測試并安裝了帶有 pkg_resources 的 setuptools 40.8):

                or like that for newer versions (tested with Python 3.7 and installed setuptools 40.8 which bring pkg_resources):

                import pkg_resources, os, time
                
                for package in pkg_resources.working_set:
                    print("%s: %s" % (package, time.ctime(os.path.getctime(package.location))))
                

                在這兩種情況下,輸出都將類似于 numpy 1.12.1: Tue Feb 12 21:36:37 2019.

                an output will look like numpy 1.12.1: Tue Feb 12 21:36:37 2019 in both cases.

                順便說一句:您可以使用 pip list 而不是使用 pip freeze,它能夠提供更多信息,例如通過 pip list -o.

                Btw: Instead of using pip freeze you can use pip list which is able to provide some more information, like outdated packages via pip list -o.

                這篇關于查看何時使用 pip 安裝/更新軟件包的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                python: Two modules and classes with the same name under different packages(python:不同包下同名的兩個模塊和類)
                Configuring Python to use additional locations for site-packages(配置 Python 以使用站點包的其他位置)
                How to structure python packages without repeating top level name for import(如何在不重復導入頂級名稱的情況下構造python包)
                Install python packages on OpenShift(在 OpenShift 上安裝 python 包)
                How to refresh sys.path?(如何刷新 sys.path?)
                Distribute a Python package with a compiled dynamic shared library(分發帶有已編譯動態共享庫的 Python 包)
                • <bdo id='Eyi8N'></bdo><ul id='Eyi8N'></ul>
                  <legend id='Eyi8N'><style id='Eyi8N'><dir id='Eyi8N'><q id='Eyi8N'></q></dir></style></legend>
                  1. <i id='Eyi8N'><tr id='Eyi8N'><dt id='Eyi8N'><q id='Eyi8N'><span id='Eyi8N'><b id='Eyi8N'><form id='Eyi8N'><ins id='Eyi8N'></ins><ul id='Eyi8N'></ul><sub id='Eyi8N'></sub></form><legend id='Eyi8N'></legend><bdo id='Eyi8N'><pre id='Eyi8N'><center id='Eyi8N'></center></pre></bdo></b><th id='Eyi8N'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Eyi8N'><tfoot id='Eyi8N'></tfoot><dl id='Eyi8N'><fieldset id='Eyi8N'></fieldset></dl></div>
                    <tfoot id='Eyi8N'></tfoot>

                    • <small id='Eyi8N'></small><noframes id='Eyi8N'>

                            <tbody id='Eyi8N'></tbody>

                        1. 主站蜘蛛池模板: 亚洲精品一区二三区不卡 | 国产精品三级在线 | 天天射天天舔 | 国产精品123| 干少妇视频 | 手机在线看片1024 | 日韩久久网 | 亚洲精品乱码久久久久久动漫 | 激情网站在线观看 | 91看片淫黄大片 | 国产欧美一区二区精品性色超碰 | aa久久 | 国产精品久久久久久中文字 | 日韩精品在线一区二区 | 影音先锋在线观看视频 | 艳妇臀荡乳欲伦交换h漫 | 男人在线天堂 | 国产精品第一区 | 黄色免费av | 日韩一区不卡 | 色综合天天综合网国产成人网 | 51调教丨国产调教视频 | 国产毛片一级 | 亚洲不卡 | 亚洲久久视频 | www.色网 | 亚洲久久在线 | 国产欧美精品一区二区三区 | www.国产在线观看 | 综合久久99 | 亚洲丝袜一区 | 国产三级在线观看视频 | 亚洲第一毛片 | 日韩黄色小视频 | 日韩一级大片 | 日韩一区在线播放 | 久久国产精品免费视频 | 97中文字幕 | 日韩在线视频播放 | 欧美成人激情视频 | 国产成人精品一区二区三区四区 |