How can I make a list of installed packages in a certain virtualenv?

后端 未结 9 1363

You can cd to YOUR_ENV/lib/pythonxx/site-packages/ and have a look, but is there any convenient ways?

pip freeze list all the

9条回答
  •  甜味超标
    2020-12-02 12:20

    In Python3

    pip list
    

    Empty venv is

    Package    Version
    ---------- ------- 
    pip        19.2.3 
    setuptools 41.2.0
    

    To start a new environment

    python3 -m venv your_foldername_here
    

    Activate

    cd your_foldername_here
    source bin/activate
    

    Deactivate

    deactivate
    

    You can also stand in the folder and give the virtual environment a name/folder (python3 -m venv name_of_venv).

    Venv is a subset of virtualenv that is shipped with Python after 3.3.

提交回复
热议问题