Problems with installing python tools for visual studio 2010 - python

I installed iron python 2.7.3
and python tools for visual studio 1.1
but when i try to create a new python project it only offers me to create a command-line application.
I wanted to create a GUI with iron Python so i was looking forward to create a WPF project. The documentation states that it should be available if I installed iron python. Did I do anything wrong? I tried reinstalling both iron python and python tools.

After installing it. Did you setup the interactive and interpreter settings to use your ironpython 2.7.3?
Step "3. Getting PTVS": http://pytools.codeplex.com/wikipage?title=Installation%20-%20details&referringTitle=Home
You should see your IronPython 2.7.3 version on the dropdown list on both screens under Tools > Options > Python Tools
And, for me, it worked, all templates are available:
UPDATE: Look for the templates folder:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\IronPython Interpreter\1.5\Templates\Projects
You should have:
- ConsoleProject
- SilverlightProject
- WinformsProject
- WpfProject
You may have a problem with the templates, so look at this website and find out exactly how project templates work and where are all located so you can try to fix them yourself (if the problem persists).
Visual Studio Templates
http://msdn.microsoft.com/en-us/library/vstudio/6db0hwky(v=vs.100).aspx

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.

Jupyter Notebook support in Visual Studio 2019

I'm able to debug python programs and would like to use jupyter notebooks, but I do not see the Python Extensions under Manage Extensions. I have VS Professional 2019 and many of the Marketplace examples that I'm seeing are not what I see.
This is a picture of my VS screen. When I search I do not find pylance or jupyter extensions.
I reviewed the information on https://code.visualstudio.com/docs/python/jupyter-support and https://towardsdatascience.com/jupyter-notebook-in-visual-studio-code-3fc21a36fe43 and they show using CTRL+SHIFT+P to open the Command Palette and this does not do anything in VS Professional or Community 2019. I also tried VS Community 2019 and I'm getting the same results.
I've also watched Jeffrey Mew's video on Jupyter Notebooks in Visual Studio Code and Tyreke White's video Getting Started with Python in Visual Studio Code and it doesn't match what I see in VS.
You can install Azure Data Studio to use Jupyter notebook in it or Google Colab.
The only way I found you can use Jupyter Notebooks in Visual Studio 2019 is through an Anaconda install. Then you can import the related Jupyter modules that come with Anaconda.
Jupyter Notebook isn't available as an extension in Visual Studio Marketplace.
Differences between Visual Studio 2019 and Visual Studio Code -- and a way to help decide which of the two you should use.
I am facing the same issue working with Python in Visual Studio Professional and not Visual Studio Code where almost all python related content is targeted to "VS Code" instead of "VS".
However, I tried to search for the "Jupyter" through the "Manage Python Packages" of the Python Environment through the Pypl. Jupyter is there, and I installed it. Didn't try it out though, but just thought to share the info with you here.

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.

Django project won't work with Python Tools Visual Studio

I'm trying to get a Django project working with PTVS. The only reason I'm using it is because I have Azure credits and want to deploy there. In Visual Studio, I go to New Project > Python > Django. I chose "Add Virtual Environment". Here is the screenshot:
After the project is created, this is my solution explorer:
You can see django is definitely installed in the environment. But when I right-click on the app and go to Python > Sync DB, I get a bunch of errors says that
ImportError: No module named django.core.management. All the django package statements are underlined and they can't be imported. Any ideas?
When I go back to create another project and I do "Install into Python 2.7 directory," it works fine. So I don't understand why I can't use the virtual environment.
Go to your Projects folder and delete all the application/projects.
Clean the project directory. (By default this is the PATH: Documents/Visual Studio 2013/Projects
Close all the other IDE's and Programs that might be using your
python interpreter.
Set no-proxy in case you are using some proxy settings because it
will prevent Visual Studio from downloading and installing the required
packages.
You might prefer restarting your machine before performing these steps.
It worked for me. I had the same problem.
Below are two useful tutorials to walk you through the entire process.
PTVS 2.0 Beta: Creating a Django Website : A step by step guide
Django and MySQL on Azure with Python Tools 2.1 for Visual Studio

Visual Studio 2005 Build of Python with Debug .lib

I am looking for the Visual Studio 2005 build of Python 2.4, 2.5 or 2.6, I also need the python2x_d.lib (the debug version of the .lib) since I embed the interpreter into my app and the python libs implicitly link to the python2x_d.lib with pragmas (grrr).
Any hints where I can find those builds ?
Regards,
Paul
I would recommend that you download the Python source (tgz and tar.bz2 zipped versions available) and compile it yourself. It comes with a VS2005 solution so it isn't difficult. I had to do this for a SWIG project I was working on.
If you have trouble finding the debug builds, you can try and build your own. Browse the build directory, for project files like python.vcproj - to locate versions that will work with Visual Studio 2005.
I recall, some time ago, giving IronPython a 'whirl' in VS2005. I ran into all kinds of 'esoteric' errors until I figured out that to compile and run I had to add the C++ libraries and tools of VS2005 as well (add/remove).
Maybe this is something similar ?

Categories

Resources