ptvs

Azure Flask Deployment - WSGI Interface

我怕爱的太早我们不能终老 提交于 2019-12-18 07:04:09
问题 I'm currently working through the book Flask Web Development, Developing Web Applications with Python and am currently having some issues determining where I should place the WSGI interface so that I can deploy it to an Azure Web Service. For reference I'm currently at Chapter 7 and a copy of this code that I'm currently working through can be found at https://github.com/miguelgrinberg/flasky/tree/7a To try and work out where the problem is I've created a test Azure Cloud Service with Flask

Add CNTK virtualenv to Visual Studio Python project

心已入冬 提交于 2019-12-14 03:19:48
问题 I followed Setup CNTK on Windows, and confirmed that I can run CTNK from my local command prompt. C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py34>.\Scripts\activate.bat (root) C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py34>set PATH=C:\local\CNTK-2-0-beta3-0-Windows-64bit-CPU-Only\cntk\cntk;%PATH% (root) C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py34>python -i Python 3.4.4 |Continuum Analytics, Inc.| (default, Jun 15 2016, 15:25:08) [MSC v.1600 64 bit (AMD64)] on win32

python tools visual studio - step into not working

和自甴很熟 提交于 2019-12-14 02:11:57
问题 I am trying to debug a scrapy project , built in Python 2.7.1 in visual studio 2013. I am able to reach breakpoints, but when I do step into/ step over the debugger seems to continue the exceution as if I did resume (F5). I am working with standard python launcher. Any idea how to make the step into/over functionality work? 回答1: You need to enable Tools -> Options -> Python Tools -> Debugging -> Enable debugging of the Python standard library. https://github.com/Microsoft/PTVS/issues/106 回答2:

Unable to debug on Raspberry Pi using python tools for visual studio

谁说胖子不能爱 提交于 2019-12-13 13:46:20
问题 I've been trying to debug a python code on my RPi from VS2013 using python tools for visual studio, but failed all the time to connect to the python console running in Pi, this is my code frag.in Pi: import ptvsd ptvsd.enable_attach('secret',address = ('0.0.0.0',5678)) ptvsd.wait_for_attach() for i in range(10): print (i) print ('hello visual studio') Im using Python3 in both the machines and using the latest version of ptvsd i belive (PTVS 2.1 RC2 VS 2013) When i try to connect, I'm getting

Intellisense not recognising type hinting for python 3

情到浓时终转凉″ 提交于 2019-12-12 10:44:14
问题 I would like to use Visual Studio and see intellisense using type hints, for example in the function argument list, to workout the type of a variable. This can be achieved through isinstance(param,type) statements, but I wonder if we can get it to work without these additional statements: Note: I have tried Visual Studio with Python Tools for Visual Studio and also the early 2017 Visual Studio Preview, that has python support built in, but neither seem to appreciate type hints. 回答1: After

PTVS2.1 for VS2012 IntelliSense not work

醉酒当歌 提交于 2019-12-12 02:54:16
问题 I already refresh DB! The example can be work. My problem is IntelliSense is work on line 5, 6 But at the line 7, tree(parameter) can't not find the method xpath() IntelliSense is not work on line 7, why? I try to find the answer, someone say need to Removing project __init__.py can fix the problem. Where is the __init__.py ? And there exists other good method to solve problem? like: update VS2013? 回答1: This is actually just a limitation of PTVS. To figure out the type of tree , it needs to

Python Tools for Visual Studio can't download `setuptools` on IronPython

落爺英雄遲暮 提交于 2019-12-11 11:50:36
问题 I'm using PTVS 2.1 with IronPython 2.7.4 in Visual Studio Express 2013 for Windows Desktop with Update 3 on a Windows 8.1 Pro x64 host with .NET 4.5 installed. I have an empty Python project with default env set to IronPython 2.7 . When I want to a virtual environment to the project PTVS tries to download setuptools and pip and fails miserably. The full log of the operation is here. In a gist it fails with: System.IO.IOException "Authentication failed because the remote party has closed the

Console Window Appears while debugging Python code using PTVS in Visual Studio

微笑、不失礼 提交于 2019-12-10 20:01:04
问题 I have integrated PTVS into Visual studio so that i can have intellisense support and debugging capability. I set Breakpoints at Function definitions, but when i debug the control goes directly out of function. And in some points the Console window pops up and it never iterates to the next line of code. I liked PTVS but this thing has stuck me up. In options->Python tools-> Interpreter options i have set it as Python 2.7 Can Anyone tell me whats wrong with the options and why that console

How can I add an existing folder structure to my visual studio project (python tools)?

青春壹個敷衍的年華 提交于 2019-12-10 00:42:56
问题 This question is essentially the same as these: How do I add an existing directory tree to a project in Visual Studio? How to "Add Existing Item" an entire directory structure in Visual Studio? Except the solutions don't work for me. It looks like another user had the exact same problem http://pytools.codeplex.com/discussions/249455 But http://xkcd.com/979/ has struck again. I am using Visual Studio 2010 with Python Tools for Visual Studio. In this project users create new folders and code

VS 2015 Python Environments Greyed Out

血红的双手。 提交于 2019-12-06 09:43:35
问题 I'm just getting started with Python and I want to use Visual Studio 2015 Community Edition (VS) for writing my code. However, after diligently following the instructions on GitHub (1) Install PTVS 2.2.2 (2) Install Windows Python 3.4.4, VS cannot find the Python interpreter and run the code. When I attempt to do so for VS manually via Options > Python Tools > Environment Option, all the buttons are greyed out (I cannot enter information) as well as the Python Environment Window I've tried