python 窗体调取不显示_Visual Studio Python环境窗口不显示

I have installed Win10, Visual Studio 2015, Python 2.7, Python 3.5 and PTVS 2.2.3.

Unfortunately PTVS does not work at all. I can not load any Python projects that were loading previously in Visual Studio. It worked before I installed Python 3.5. I tried to uninstall Python 2.7 and get an error saying that the uninstall didn't success. After several tries, the problem appears to be around pip which is somehow blocking both install and uninstall of Python 2.7.

When trying to open Python Tools from Tools menu, nothing happens. Neither window opens nor any error message is displayed. Python Environments window does not open even with the shortcut.

In Tools > Options > Python Tools, the only text shown is: "An error occurred loading this property page".

When I try to load/reload the Python project, the message is: "error : Expected 1 export(s) with contract name "Microsoft.PythonTools.Interpreter.IInterpreterOptionsService" but found 0 after applying applicable constraints." This has already been posted for 11 days ago, but no one has answered.

To solve this, I would like to know how to make the Python Environment window appearing in Visual Studio.

Thanks for any help.

解决方案VS keeps a cache of loaded assemblies that doesn't always get

invalidated when it should.

If you delete

C:\Users\You\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache

and restart you should be fine.

src: https://github.com/Microsoft/PTVS/issues/1388

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值