Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
a80f9850
Unverified
Commit
a80f9850
authored
May 20, 2022
by
MinchinWeb
Committed by
GitHub
May 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: refer to PowerShell on Windows
parent
dea91b7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docs/basic-usage.md
+3
-3
No files found.
docs/basic-usage.md
View file @
a80f9850
...
@@ -131,15 +131,15 @@ in order for the subsequent commands to run from within the virtual environment.
...
@@ -131,15 +131,15 @@ in order for the subsequent commands to run from within the virtual environment.
Alternatively, to avoid creating a new shell, you can manually activate the
Alternatively, to avoid creating a new shell, you can manually activate the
virtual environment by running
`source {path_to_venv}/bin/activate`
(
`{path_to_venv}\Scripts\activate.
bat`
on Windows
).
virtual environment by running
`source {path_to_venv}/bin/activate`
(
`{path_to_venv}\Scripts\activate.
ps1`
on Windows PowerShell
).
To get the path to your virtual environment run
`poetry env info --path`
.
To get the path to your virtual environment run
`poetry env info --path`
.
You can also combine these into a nice one-liner,
`source $(poetry env info --path)/bin/activate`
You can also combine these into a nice one-liner,
`source $(poetry env info --path)/bin/activate`
To deactivate this virtual environment simply use
`deactivate`
.
To deactivate this virtual environment simply use
`deactivate`
.
| | POSIX Shell | Windows
| Exit/Deactivate |
| | POSIX Shell | Windows
(PowerShell)
| Exit/Deactivate |
| ----------------- | ----------------------------------------------- | ------------------------------------- | --------------- |
| ----------------- | ----------------------------------------------- | ------------------------------------- | --------------- |
| New Shell |
`poetry shell`
|
`poetry shell`
|
`exit`
|
| New Shell |
`poetry shell`
|
`poetry shell`
|
`exit`
|
| Manual Activation |
`source {path_to_venv}/bin/activate`
|
`{path_to_venv}\Scripts\activate.
bat
`
|
`deactivate`
|
| Manual Activation |
`source {path_to_venv}/bin/activate`
|
`{path_to_venv}\Scripts\activate.
ps1
`
|
`deactivate`
|
| One-liner |
`source $(poetry env info --path)/bin/activate`
| |
`deactivate`
|
| One-liner |
`source $(poetry env info --path)/bin/activate`
| |
`deactivate`
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment