XDA Developers

Python

Readers like you help support XDA Developers. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.

latest

Two laptops with a banner stating Python
The official Python package repository has blocked new registrations in response to latest malware campaign

The official third-party package repo for Python, PyPI, has blocked new project and user creations in response to a sophisticated malware campaign.

4
By 

If you utilize Python as a programming language during software development activities, you might know about Python Package Index (PyPI). This is the official repository for Python packages and is essentially the place where pandas, numpy, seaborn, matplotlib, and other libraries are downloaded from when you run pip install libraryname. Now, in a move that may surprise many, PyPI has blocked new user registrations in an attempt to defend itself against a recent malware campaign.

Close up of GTX 1660 Ti GPU inside a gaming PC
How to use your GPU in Jupyter Notebook

Speed up your machine learning algorithms by running them on your graphics card in Jupyter Notebook

4
By 

If you’re unfamiliar with it, Jupyter Notebook is a powerful IDE that lets you create scripts for data analysis, web scraping, machine learning, and tons of other use cases. For the average coder who's into data science, Jupyter Notebook serves as the perfect companion as it lets you create interactive documents for everything from jotting down notes to compiling complex codes. While this IDE can be installed on pretty much any modern laptop, you're going to have a tough time if you try to train AI algorithms on a CPU.

Terminal app window on a MacBook Air M2
How to uninstall Python on macOS

If you want to remove Python from your Mac, we cover the steps here.

4
By 

Many users opt to delete files and folders and uninstall apps they're not using on their new Macs to clear storage and simplify lists. While removing these items is generally simple and requires just a click or two, sometimes the process is more complex. One popular example is Python, which certain developers install on macOS Sonoma to run relevant scripts. But, what if you're done with Python and want to remove it from your Mac? Yes, you can uninstall it, and we'll step through exactly how in this guide.

MacBook Air running Terminal commands
How to add Python to PATH in macOS

Save time by streamlining your Python development setup in macOS.

4
By 

If you regularly use Python and its libraries from the terminal or in your shell scripts, adding Python to the system’s PATH variable becomes essential. Once you add Python to PATH, it eliminates the hassle of entering the full path to the Python executable all the time. If you run into a "command not found" error message while running Python scripts, use the steps below to add Python to PATH on your Mac.

A Windows 11 screenshot with the Anaconda and Jupyter Notebook apps open in the background with the Jupyter logo overlaid on top.
How to use Jupyter Notebook on Windows, Linux, and macOS

Want to get the most out of learning Python? Get familiar with Jupyter Notebooks

4
By 

If you want to get into development, there’s never been a better time to do so. You can use ChatGPT to learn how to code, start software development on affordable Chromebooks, and browse through thousands of easily accessible tutorials and courses. Python is one of the best programming languages to start with, as it’s relatively easy to learn yet powerful in fields like data science, artificial intelligence, and scientific computing.

hands typing on keyboard
Take 76% off this Python learning bundle and get 130 hours of content for just $20

This bundle offers 130 hours of courses to help you on your journey of becoming Python-certified.

4
By 

You won't find a better deal on this Python learning bundle that's now 76% off for an extremely limited time. The bundle features 12 courses with 130 hours of content, and provides a great foundation for learning Python at your own pace. Again, this bundle normally costs $84, but thanks to this fantastic StackSocial deal, you can now save 76% off the retail price, which drops it down to just $19.99 for a limited time.

A screen with python code running, with led lighting in the background
How to install Python and enable GPU acceleration

Unlock the full potential of your GPU

4
By 

In the ever-changing programming world, graphics cards have become increasingly important, allowing programmers to compute data faster. Before this, great CPUs were the main component used in coding due to their innate ability to handle multiple commands at the same time. But GPUs have now evolved past the point of being simple video renderers. They can now be utilized in parallel computing.

Logos for Python plus Excel Labs plus Excel
Microsoft releases Python Editor for Excel

Customers leveraging Python in Excel can now utilize a new Python Editor designed for longer code scripts, with other advanced features in tow too.

4
By 

Less than a month ago, Microsoft finally announced support for Python in Excel, allowing customers to use the powerful programming language in tandem with conventional Excel formulas to analyze and manipulate data. The move was greeted with a lot of enthusiasm and to capitalize on this excitement, Microsoft has released a Python editor for its Office application.

An image showing a laptop displaying the Python Package Index website on a web browser.
How to install Pip on Windows

Pip and Python go hand-in-hand to help you execute both simple and complex programs.

4
By 

Pip is one of the most important tools to have at your disposal when you're getting started with a Python project. It allows you to install and manage millions of Python packages and libraries to help you set up the right software environment for a project, be it a simple automation task or a complex artificial intelligence or machine learning project. But how do you install Pip on Windows to ensure you have no issues working on Python projects? Thankfully, installing Pip on Windows is a fairly simple task, and you can do it following a few simple steps. There's also a chance that you may already have Pip installed on your system, so read on to learn more about it.

How to install python
How to install Python on Windows, Linux, and macOS

If you want to install Python and get started with development, we have a handy quick-start guide to run you through the basics.

4
By 

If you want to get into development, one of my favorite programming languages is Python. It's a multi-paradigm language that supports imperative, functional, procedural, and object-oriented programming. It's wide open, can be used for practically anything, and is a go-to language for many when working in artificial intelligence or machine learning. I use it for a lot of automation, and it's even the language that some of the testing tools that we've used are written in.

A screenshot demonstrating support for Python in Microsoft Excel
You can now use Python in Excel

Microsoft has officially announced support for Python in Excel, but it will paywall certain features behind a license soon.

4
By 

Microsoft Excel is one of the most widely used spreadsheet software out there with a variety of use-cases involving data storage, number-crunching, data cleaning, visualizations, and more. Microsoft regularly updates it with new features in order to attract more customers. The company has now implemented a major functionality in Excel by introducing support for the Python programming language.

Termux - The Ultimate Linux Terminal Emulator for Android [XDA Spotlight]

Termux is an Android application that brings many of the Linux command line packages you know and love straight to your existing device.

3
By 

Have you ever wanted a complete Linux terminal environment on your Android phone? Not just a terminal emulator with basic commands, but a comprehensive Linux command-line environment with all the utilities and packages you've grown accustomed to? If so, then Termux is the answer.