does Pyvot require Visual Studio? - python

Possibly a dumb question, but after a lot of searching, I haven't yet found an unambiguous answer. The site states
Pyvot requires CPython 2.6 or 2.7 with the Python for Windows
extensions (pywin32) installed, and Office 2010.
Although there's no mention of Visual Studio, it could well be assumed since the page is titled "Python Tools for Visual Studio." If anyone has run it successfully without VS, I'd love to know (I don't currently have Office 2010, or I'd try it myself)

I managed to get a hold of Office 2010 and can confirm that Pyvot doesn't require Visual Studio or even Python Tools for Visual Studio.
[EDIT: Although I haven't tested extensively, it seems to work just fine with Office 2003!]

Related

Configuring Visual Studio 2022 to develop Python projects in WSL2

I installed WSL2 and use Visual Studio (VS) 2022 on the windows. I want to configure my VS 2022, so I can develop Python projects in WLS2. All tutorials I find online only talks about visual studio code. I don't want to install another IDE. Does anybody know how to do that or point me to some material?
Unfortunately not at this time, no. The VSCode integration with WSL is done through the use of an extension that creates an interop server between Windows VSCode and the Linux side of WSL. There isn't an extension like that for Visual Studio, however.
The only WSL integration that I'm aware of in Visual Studio 2022 is the inclusion of a WSL toolchain that allows you to target WSL/Linux in C++ projects. But nothing that I'm aware of for Python, no.
I believe you'll need to install an additional IDE to get Python/WSL support, sorry.
Not sure if VS is available for Linux or WSL2 yet.
If you look at https://visualstudio.microsoft.com/downloads/, only Windows & Mac seem to be supported.
So you have 2 main options:
Use VS on Windows itself. Then you just need to install the Python Tools for Visual Studio (PTVS) to be able to support Python development
Use VS Code on WSL2 - it's pretty lightweight to install anyway as a code editor, but can be endowed with comparable features to VS
EDIT: It may be that I'm misunderstanding the question as pointed out below by NotTheDr01ds, and instead you want to target WSL2 from the VS IDE, developing Python.

Web Development in python with Visual Studio

I have read that there is version of python in visual studio 2017.
I have read that it contains Django.... since, I think a good debugger, and IDE like visual studio would be great for web development... I wonder if it is possible.. to develop python & Django using Visual Studio 2017?
Pycharm is the best IDE for python development I think. You can try it. hope helpful.

Get the windows 2010 command prompt for python precompiled libraries

While this isn't a direct programming question, it's something that has been bothering me for quite some time. And keeps annoying me to no end, and I expect others also have this problem.
On windows quite a few libraries require you to use a precompiled version (numpy, pyqt, mod_wsgi). Now these precompiled versions require often you to have installed the correct C-compiler, the one used for python 3.4 is VC10. This compiler corresponds with visual studio 2010.
Now some (mod_wsgi as explained here) use further build steps to finalize the library. To do this one should "open the VS 2010 command prompt". Which is included in (free) VS 2010 express.
However googling and further links lead to microsoft' site for visual studio. But there only 2015 (or 2013) is available.
So how to finalize the build process (ie the last steps for mod_wsgi) on windows? Can I use VS 2015 command prompt without breaking things? I doubt I can?
Are we basically stuck until python updates to a newer version of visual studio?

How do programming Python & Django in visual studio 2010?

I work Python and django with linux(ubuntu) also I work C# with visual studio 2010
but I want to work Python & django with visual studio 2010, i do first steps for programming in this but cannot run projects in browser like linux.
please help me about this?
I'm not sure I get your question... But to get python to work in visual studio you need to be able to compile it.
If you want an easy fix use pytools:
http://pytools.codeplex.com/
If you want to do it yourself Read up on python compiling for VS here:
https://wiki.python.org/moin/VS2010

How do I get cx_Oracle to work on 64-bit Itanium Windows?

I'm running Windows Server 2003 on a 64-bit Itanium server which is also running 64-bit Oracle 10.2, and I'd like to install cx_Oracle for Python 2.5. I've used cx_Oracle before many times on both Windows and Linux, and I've also compiled it before on 32 bit versions of those platforms, but I've never tried an IA64 compile.
None of the binary builds of cx_Oracle at http://cx-oracle.sourceforge.net/ are 64 bit, and I get an error after installing any of them when trying to run import cx_Oracle so I figure the thing to do is to compile it from source.
When running python setup.py build then I get the error that Python was built with Visual Studio 2003 and that I need something which can produce compatible binaries. I have Visual Studio 2005, which apparently doesn't fit the bill due to linking against a different version of the C standard library, and probably for other reasons as well. Unfortunately, Visual Studio 2003 is no longer available for download, and I'm not sure where to get it.
So I download MinGW from http://sourceforge.net/projects/mingw/files/ but this is also only available in 32 bit form. I go ahead and give it a try anyway, but it gives me an error during compilation about one of the Oracle DLLs I'm linking against having an invalid file format.
At this point I've got a lot of options, and I'm not sure where to place my efforts:
I could download the 64 bit MinGW from http://sourceforge.net/projects/mingw-w64/ and try using that, except that it only seems to be available as source, so I'd have to compile the compiler, probably using Visual Studio 2005.
I could try using an x86 32 bit build of Python and then download the Oracle Instant Client SDK from http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html and then use that to build cx_Oracle. I'd probably have to set my ORACLE_HOME to the client so that it didn't try linking against the 64 bit server DLLs, but this seems like it might work.
I could try compiling Python itself from source, using Visual Studio 2005, so that I could then use Visual Studio 2005 to build cx_Oracle and not worry about binary compatibility issues. I've compiled Python from source many times on Linux and never had any problems, so I'd like to believe that it's just as simple on Windows.
I could try to figure out how to make Visual Studio 2005 link against the right DLLs and thus produce compatible binaries in that manner without needing Visual Studio 2003. Intuitively it seems like Visual Studio should be able to produce compatible binaries with older versions of itself, but almost all of my compiler experience is with gcc so I don't really know.
I'm just really not sure where to direct my efforts. Does anyone have any suggestions about where to go next? I can copy/paste some of the specific error messages I've gotten if that would be helpful.
I'd especially love to hear from anyone who's ever gotten cx_Oracle to work on a 64 bit Itanium version of Windows - I can't be the first to try this.
I ended up going with Option #2: I downloaded the 32-bit Oracle Instant Client, then compiled cx_Oracle for 32-bit Python with the instant client. So everything involved is 32-bit, and I'm just not using any IA64-bit executables, and this works just fine.
If I had an IA64 compiler, I'd try Option #3, but it turns out that Visual Studio Pro doesn't support the IA64 platform, and we'd need to spend a lot of money to upgrade to whatever's higher than Pro.
I read this yesterday and am not suprised to see that nobody has answered. It is a very specific and complex question. While I do not have direct experience with many of the tools you are dealing with I have delt with the issues surrounding incompatabilities with different compilers and binaries. For what its worth 3. sounds like your best bet.

Categories

Resources