Skip to content

Commit 55dd274

Browse files
authored
Merge pull request #5661 from pcartwright81/pcartwright81-patch-1
Update managing-python-environments-in-visual-studio.md
2 parents 5ab6c93 + 985ee7d commit 55dd274

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/python/managing-python-environments-in-visual-studio.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,15 +256,16 @@ To correct an environment you wish to keep, first try using its installer's **Re
256256
To correct an environment that doesn't have a repair option, or to remove an invalid environment, use the following steps to modify the registry directly. Visual Studio automatically updates the **Python Environments** window when you make changes to the registry.
257257

258258
1. Run *regedit.exe*.
259-
1. Navigate to **HKEY_LOCAL_MACHINE\SOFTWARE\Python**. For IronPython, look for **IronPython** instead.
259+
1. Navigate to **HKEY_LOCAL_MACHINE\SOFTWARE\Python** or **HKEY_CURRENT_USER\SOFTWARE\Python**. For IronPython, look for **IronPython** instead.
260260
1. Expand the node that matches the distribution, such as **Python Core** for CPython or **ContinuumAnalytics** for Anaconda. For IronPython, expand the version number node.
261261
1. Inspect the values under the **InstallPath** node:
262262

263263
![Registry entries for a typical CPython installation](media/environments/environments-registry-entries.png)
264264

265265
- If the environment still exists on your computer, change the value of **ExecutablePath** to the correct location. Also correct the **(Default)** and **WindowedExecutablePath** values as necessary.
266266
- If the environment no longer exists on your computer and you want to remove it from the **Python Environments** window, delete the parent node of **InstallPath**, such as **3.6** in the image above.
267-
267+
- Invalid settings in **HKEY_CURRENT_USER\SOFTWARE\Python** override the settings in **HKEY_LOCAL_MACHINE\SOFTWARE\Python**
268+
268269
## See also
269270

270271
- [Install Python interpreters](installing-python-interpreters.md)

0 commit comments

Comments
 (0)