Python Forum

Full Version: Visual Studio Code help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Good Evening,

i am new to Python so i am taking an online course that will help me learn how to code Python and add it to my skill set

following the instructions provided by the tutorial i installed VS Code, because that is what the class is using, i start to type and i get an error saying Linter pylint is not installed and when i go to install it i get an error that says because there is an an & in my computers name it can't work

here are pictures of the error [Image: KbXRvN4]

if the image paste did not work here is the imgur link https://imgur.com/a/KbXRvN4

Any help would be appreciated

Thank you

P.S if this was posted in the wrong area i apologize
Why do you put an ampersand in front of your command?
Don't do this.

The ampersand in the path should not make trouble and if this is the case, you can still put the path into quotes.

PS: Use the tool py.exe.

py -3.8 -m pip install pylint black autopep8
If you have installed 32 bit and 64 bit together, you can also select the architecture:

py -3.8-32 -m pip install pylint black autopep8
py -3.8-64 -m pip install pylint black autopep8
Or a previous version:
py -3.7 -m pip install pylint black autopep8
Depends on what you've installed.
Look at VS Code from start and Python 3.8 (3.6-3.7) and pip installation under Windows.
There you see i start with testing that python and pip command work from command line.
Can use py as @DeaD_EyE show,but should have the main Python version you use in OS Environment Variables Path.
Then is only pip install pylint.
From eg PowerShell.
# Test python 
PS C:\> python -V
Python 3.8.3

# Test pip
PS C:\> pip -V
pip 20.2 from c:\python38\lib\site-packages\pip (python 3.8)

# Install
PS C:\> pip install pylint
Collecting pylint ..... 
Successfully installed astroid-2.4.2 isort-4.3.21 lazy-object-proxy-1.4.3 mccabe-0.6.1 pylint-2.5.3 toml-0.10.1 wrapt-1.12.1
How do I make a C# Console app build and debug in Visual Studio Code?

I have already built my C# Console App in Visual Studio Code. The issue I have is when I reopen the folder where the project file is in Visual Studio Code and then rebuilding the code and debugging it again.

Here is what I do and what happens. After I open the folder where the project file resides, I click on this to process the code to debug:

[Image: 07.png]

And then I click on the appearing "Run and Debug" button

[Image: 08.png]

But then the bottom status bar says "Looking for CSS classes in the workspace..." followed by a percentage in paragraphs. Why is this? Why does this happen when there are no CSS classes at all and my project is a C# project?

[Image: 09.png]

Why is this? This is just a brief snapshot of some difficulties I find when I reopen a project after I have closed Visual Studio Code. I have experienced other errors and problems in building and running my code.

To continue, in order to deal with the project as a solution, I click on this icon to open the solution panel.

[Image: 10.png]

This seemingly allows me to view the solution. As the following view appears, I click on the project.cs file and attempt a debugging session from there.

[Image: 11...png]

With this file being displayed, I clicked on the menu option, Run -> Start Debugging

[Image: 12...png]

Then, at this point, in the pop up option window that appears in the middle and top of the development environment, I pick "C#":

[Image: 13...png]

Something went wrong and in the bottom right of my IDE, I get this message:

[Image: 14.png]

Please advise. What should I do now?
Why are you asking about C# on a Python forum?