visual-studio

Missing PythonConsoleApp template

Missing PythonConsoleApp template Question: I want to follow the instructions here but the PythonConsoleApp template is missing. I am running VS2022 17.2.5 I have installed the Python WorkLoad. What do I need to do to get the template? [Update] After looking at the link Mateo gave I tried running VS as admin to install the …

Total answers: 2

Cython: error while building extension: Microsoft Visual C++ 14.0 or greater is required

Cython: error while building extension: Microsoft Visual C++ 14.0 or greater is required Question: Short Description: I’m trying to build an example cython script, but when I run the python setup.py build_ext –inplace command, I get an error saying that I need MS Visual C++ version 14.0 or greater. I’ve tried a lot of the …

Total answers: 2

Accessing C# DLL through Python 3.8 using Python.Net (TypeError)

Accessing C# DLL through Python 3.8 using Python.Net (TypeError) Question: I have the following python 3.8.2 code that attempts to access methods from my C# DLL In the example it is using a method to calculate the area of a pipe. import clr clr.AddReference(r"calcsDLL") from myDLL import calcs calcs.Pipe_Area(0.2) Here is my implementation of the …

Total answers: 1

How to package a Python project into MSIX package?

How to package a Python project into MSIX package? Question: I currently work on a Python project, which I’d like to upload to the Microsoft Store in the future. As far as I am aware, in order to upload applications to the Microsoft Store, it is necessary that the application will be packed into the …

Total answers: 1

How to activate anaconda environments properly after installing visual studio 2019

How to activate anaconda environments properly after installing visual studio 2019 Question: After installing Visual Studio 2019, I have problems with my anaconda. When I create a new environemnt in my anaconda, after hours I face the problem when I try to activate the environment and after that when I open any jupyter notebook, the …

Total answers: 2

Tracing and logging line by line execution of a c++ program

Tracing and logging line by line execution of a c++ program Question: I am working on an opensource finite element software, which is written in C++ (Visual Studio). The documentation and examples provided are only helpful to know which methods to call for a specific purpose, but could not help in letting the users know, …

Total answers: 2

Indentation error on Visual Studio Code on a Mac (again)

Indentation error on Visual Studio Code on a Mac (again) Question: I am a newbie trying to use Python (2.17.15 via Anaconda) on Visual Stodio Code on my Mac. I have the following simple code: def function(x): y = x + 2 return y This code is giving me the usual trouble, an indentation error: …

Total answers: 3

Installing MS C++ 14.0 for python without Visual Studio

Installing MS C++ 14.0 for python without Visual Studio Question: I am installing some python packages of an existed project and I am getting this error: error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: https://visualstudio.microsoft.com/downloads/ I found a solution to that by installing it using one of the …

Total answers: 4