Where are Pip installation logs?

前端 未结 1 515
忘掉有多难
忘掉有多难 2021-02-19 02:16

Why doesn\'t pip make logs of which version of which lib was installed when? If you update a library to a broken version then what? How do you know which version is not broken?<

1条回答
  •  名媛妹妹
    2021-02-19 02:36

    When you run the pip, you can specify the logfile. This way you can track the installation logs in future.

    pip install pylint --log LOG_FILE
    

    Or you can set it in your pip.conf to be enabled by default:

    [global]
    log = 
    

    Hope this helps.However this is not exactly what you asked. This is just to help achieve that. For windows: Quoting from https://pip.pypa.io/en/stable/user_guide/#config-file

    On Windows the configuration file is %APPDATA%\pip\pip.ini.
    

    0 讨论(0)
提交回复
热议问题