久久久久久久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. 主站蜘蛛池模板: 亚洲精品在线视频 | 在线观看国产精品一区二区 | 在线免费av电影 | 成人免费在线观看视频 | 欧美日韩精品免费 | 精品在线一区 | 日韩视频精品 | 亚洲精品视频在线 | 免费观看一级毛片 | 精品国产乱码久久久久久牛牛 | 黄色大片免费网站 | 久久精品国产亚洲 | 欧美一区2区三区3区公司 | 久久精品免费观看 | 99pao成人国产永久免费视频 | 一区二区三区久久 | 国内精品久久久久久影视8 最新黄色在线观看 | 成人不卡 | 欧产日产国产精品视频 | 美国十次成人欧美色导视频 | 中国三级黄色录像 | 久久亚 | 在线日韩欧美 | 欧美精品一二三区 | av在线播放网站 | 狠狠爱一区二区三区 | 高清一区二区视频 | 国产伊人久久久 | 一级黄色大片 | 成人精品一区二区三区 | 国产成人福利在线观看 | 电影午夜精品一区二区三区 | 欧美日韩在线成人 | 日韩成人免费 | 国产日韩欧美激情 | 欧美一区二区三区在线观看 | 日韩乱码av | 免费爱爱视频 | 在线国产一区二区三区 | 久久极品 | 欧美国产一区二区三区 |