Skip to content

Commit 2edd424

Browse files
authored
use_isolated_environments.rst --user
1 parent 3c8ea7b commit 2edd424

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

docs/day2/use_isolated_environments.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,15 @@ What happens at activation?
104104
- If very troublesome, try with ``conda``
105105

106106
- To use self-installed Python packages in a batch script, you also need to load the above mentioned modules and activate the environment. An example of this will follow later in the course.
107-
- To see which Python packages you, yourself, have installed, you can use ``pip list --user`` while the environment you have installed the packages in is active. To see all packages, use ``pip list``.
107+
- To see which Python packages you, yourself, have installed, you can use ``pip list --local`` while the environment you have installed the packages in is active. To see all packages, use ``pip list``.
108+
- Note that ``--user`` must be omitted: else the package will be installed in the global user folder.
109+
110+
.. admonition:: ``pip list`` documentation
111+
112+
- ``--local``: If in a virtualenv that has global access, do not list globally-installed packages.
113+
- ``--user``: Only output packages installed in user-site.
114+
115+
https://pip.pypa.io/en/stable/cli/pip_list/
108116

109117
.. admonition:: Other tools perhaps covered in the future
110118
:class: dropdown

0 commit comments

Comments
 (0)