Skip to content

Update installing-using-pip-and-virtual-environments.rst#1542

Open
dharmatech wants to merge 1 commit intopypa:mainfrom
dharmatech:patch-1
Open

Update installing-using-pip-and-virtual-environments.rst#1542
dharmatech wants to merge 1 commit intopypa:mainfrom
dharmatech:patch-1

Conversation

@dharmatech
Copy link
Copy Markdown

@dharmatech dharmatech commented May 7, 2024

Use Get-Command if on PowerShell

where in PowerShell is an alias for Where-Object.

If you use where in Powershell, no output is returned. Use Get-Command instead:

image


📚 Documentation preview 📚: https://python-packaging-user-guide--1542.org.readthedocs.build/en/1542/

@chrysle
Copy link
Copy Markdown
Contributor

chrysle commented May 8, 2024

Thanks! Let's put the command into another code block with PowerShell code lexer?

@webknjaz webknjaz added type: enhancement A self-contained enhancement or new feature state: awaiting response labels Aug 11, 2025
@webknjaz
Copy link
Copy Markdown
Member

Hey @dharmatech, would you address the review comment?

Comment on lines +106 to +107
Get-Command python # If using PowerShell
where python # If using Command Prompt
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Get-Command python # If using PowerShell
where python # If using Command Prompt
where python
..tab:: Windows (PowerShell)
.. code-block:: bat
Get-Command python

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and edit line 102 to be .. tab:: Windows (Command Prompt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state: awaiting response type: enhancement A self-contained enhancement or new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants