Tuesday, February 21, 2023

How to create a new build system in Sublime Text

Sublime Text provides build systems to allow users to run external programs. Examples of common uses for build systems include: compiling, transpiling, linting, and executing tests.

Build systems are specified via JSON and saved in a file with the extension .sublime-build. A new build system can be created by the: Tools > Build System > New Build System… menu item or the Build: New Build System command palette entry.





Best Python IDE for Windows

    Python code editors are designed for the developers to code and debug program easily. Using these Python IDEs(Integrated Development Environment), you can manage a large codebase and achieve quick deployment.

    There is no one "best" Python IDE. However, a few IDEs are popular among Python developers, such as PyCharm, Atom, and Visual Studio Code.

Personally use "sublime text" as a code editor






Saturday, February 18, 2023

Python virtual environment

 

Installing packages using pip and virtual environments

    A virtual environment is created on top of an existing Python installation, known as the virtual environment’s “base” Python, and may optionally be isolated from the packages in the base environment, so only those explicitly installed in the virtual environment are available.

Installing Python virtual environment:

    virtualenv is used to manage Python packages for different projects. Using virtualenv allows you to avoid installing Python packages globally which could break system tools or other projects. You can install virtualenv using pip.

    Open command prompt and type or just copy and paste:

py -m pip install --user virtualenv

First thing to do after installing and testing python

what you should do once Python has been installed and tested:

  • The Python installers for Windows include pip. You can make sure that pip is up-to-date by running in the command line:

Check if python is installed correctly

 There are a few ways to check if Python is installed on a Windows computer, the easiest one is to

  • Open a command line tool such as Windows Terminal (the default on Windows 11) or Command Prompt (the default on Windows 10).
  • In the command line, type `python`. If Python is installed, you should see a message like “Python 3.x.x” followed by the Python prompt, which looks like this “>>>”. Note that “3.x.x” represents the version number of Python.


  • First step to install python on windows

     Follow the following steps to run Python on your computer



    Download the latest version of Python for windows from the link below:


    Or from the python official website:



    Launch the Setup Wizard