Skip to content

Commit 6f953ac

Browse files
authored
How to skip nuget.config
Developers who do not already have nuget and do not need to write a nuget.config file can use this one extra command to let nuget find the python package in the official nuget repository.
1 parent a1d5804 commit 6f953ac

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Doc/using/windows.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,10 @@ using curl or PowerShell. With the tool, the latest version of Python for
11831183
nuget.exe install python -ExcludeVersion -OutputDirectory .
11841184
nuget.exe install pythonx86 -ExcludeVersion -OutputDirectory .
11851185

1186+
Resolve error `Unable to find package 'python'` from a misconfigured `nuget.config` using::
1187+
1188+
nuget.exe sources add -Name "nuget.org" -source "https://api.nuget.org/v3/index.json"
1189+
11861190
To select a particular version, add a ``-Version 3.x.y``. The output directory
11871191
may be changed from ``.``, and the package will be installed into a
11881192
subdirectory. By default, the subdirectory is named the same as the package,

0 commit comments

Comments
 (0)