You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will create a new virtual environment in whatever location is returned by a call to `Get-VirtualEnvironmentRoot` which defaults to `C:\PythonVirtualEnvironments\`. This command automatically appends the python version to the name of the virtual environment, so the example above would create a virtual environment named `FirstEnv-3.6.8`.
105
+
This will create a new virtual environment in whatever location is returned by a call to `Get-VirtualEnvironmentRoot` which defaults to `C:\PythonVirtualEnvironments`. This command automatically appends the python short version to the name of the virtual environment, so the example above would create a virtual environment named `FirstEnv-3.6`.
106
106
107
+
Attempting to create two virtual environments with the same name and same version of python will produce an error.
107
108
108
109
### Enter-PythonVirtualEnvironment
109
110
Activates the specified virtual environment.
110
111
```powershell
111
112
Enter-PythonVirtualEnvironment -Name FirstEnv
112
113
```
113
114
To exit the virtual environment, execute `deactivate` in your powershell session.
114
-
The `-Name` parameter only needs to be as much of the first part of the environment name as is necessary to uniquely identify it. For example, if you had two environments, one named `EnvironmentOne` and another named `EnvironmentTwo`, you would only need to type `-Name EnvironmentO` to specify `EnvironmentOne`, or `-Name EnvironmentT` to specify `EnvironmentTwo`.
115
-
116
-
It is not recommended to create two virtual environments with the same name if they use the same version of python.
115
+
The `-Name` parameter only needs to be as much of the first part of the environment name as is necessary to uniquely identify it. For example, if you had two environments, one named `EnvironmentOne` and another named `EnvironmentTwo`, you would only need to type `-Name EnvironmentO` to specify `EnvironmentOne`, or `-Name EnvironmentT` to specify `EnvironmentTwo`. The `-Name` parameter is case sensitive.
117
116
118
117
### Remove-PythonVirtualEnvironment
119
118
Removes the specified virtual environment. For example, assuming that there exists a virtual environment named MyEnvironment
0 commit comments