DEV Community

hub
hub

Posted on

install and setup VSCode on Endeavor

hello dear Commuinty

i want to install and setup VSCode on Endeavor -

are the following steps enough - and sufficient to get a full and correct setup?

To install VSCode on EndeavourOS and set up a Python development environment, we can follow these steps:

first we have to open a terminal and update the package list by running the following command:

sudo pacman -Syu

Install the Visual Studio Code package using pacman:

sudo pacman -S code

Install the Python extension for Visual Studio Code. Open VSCode, we have to click on the Extensions icon on the left sidebar, search for “Python”, and install the extension by the Microsoft-company.

We can install Python on our system. EndeavourOS comes with Python pre-installed, but we can check the version by running the following command:

python --version

If we need to install a different version or a specific package, we can use pacman or the pip package manager.

Create a virtual environment for your Python projects. This step is optional, but it’s a good practice to isolate our project dependencies. To create a virtual environment, navigate to our project folder and run the following command:

python -m venv venv

This will create us a folder named “venv” that contains the Python interpreter and pip packages for your project.

Activate the virtual environment by running the following command:

source venv/bin/activate

we should see the name of your virtual environment in the terminal prompt.

We can install any packages or libraries that your project requires. we can use pip to install packages from the Python Package Index (PyPI). For example, to install the NumPy library, we run the following command:

pip install numpy

now we can open our project folder in Visual Studio Code and start coding! You should see the Python extension in action, providing syntax highlighting, code completion, and other useful features.

That’s it! With these steps, we should have a working Python development environment with Visual Studio Code on EndeavourOS

Top comments (0)