strong text我重新安裝了VS 2015更新3(來自Web安裝)w/Python工具,但Python工具似乎不再有效。從ActivityLog.xml,誤差爲:VS2015.3/PTVS Python工具不再適用?
<record>494</record>
<time>2016/07/04 15:59:16.031</time>
<type>Error</type>
<source>VisualStudio</source>
<description>LegacySitePackage failed for package [Python Tools
Package]Source:
'Microsoft.VisualStudio.Composition'
Description: Expected 1 export(s) with contract name
"Microsoft.PythonTools.Interpreter.IInterpreterOptionsService"
but found 0 after applying applicable constraints.
#x000D;

Microsoft.VisualStudio.Composition.CompositionFailedException:
Expected 1 export(s) with contract name
"Microsoft.PythonTools.Interpreter.IInterpreterOptionsService"
but found 0 after applying applicable constraints.

Microsoft.VisualStudio.Composition.ExportProvider.GetExports
(ImportDefinition importDefinition)
 at
Microsoft.VisualStudio.Composition.ExportProvider.GetExports
[T,TMetadataView](String contractName, ImportCardinality
cardinality)
 at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport
[T,TMetadataView] (String contractName)
 at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T]
(String contractName)
 at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T]
()
 at
Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValue
[T] ()
 at
Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService
[T] ()
 at
Microsoft.PythonTools.PythonToolsService..ctor(IServiceContainer
container)
 at
Microsoft.PythonTools.PythonToolsPackage.Initialize()

at
Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.
Interop.IVs Package.SetSite(IServiceProvider sp)</description>
<guid>{6DBD7C1E-1F1B-496D-AC7C-C55DAE66C783}</guid>
<hr>80131500</hr> <errorinfo></errorinfo>
我去安裝/重新安裝VS 2015 Python支持(直接從PTVS 2.2.4 VS 2015.msi)。同樣的錯誤。
怎麼辦?機器(Win 10)在PATH中有Python 2.7/x64。
對於其他似乎也有一個真正的問題。看到這裏: Visual Studio Python Environments window does not display
有趣的是,我有兩個類似的開發機器(Win10/x64),最近都安裝了,都安裝了VS 2013Pro + VS2015社區。 在一個盒子上,一切正常,另一方面:見上文。
當我試圖爲PTVS安裝June更新時,我也收到了相同的錯誤。它刪除了3月份的安裝,然後開始給出錯誤。我沒有選擇安裝Update 3。 –