How to install Python libraries without using the pip command? - GeeksforGeeks (2024)

Skip to content

  • Courses
    • Newly Launched!
    • For Working Professionals
    • For Students
    • GATE Exam Courses
  • Tutorials
    • Data Structures & Algorithms
      • Data Structures
        • Tree
  • Python Course
  • Python Basics
  • Interview Questions
  • Python Quiz
  • Popular Packages
  • Python Projects
  • Practice Python
  • AI With Python
  • Learn Python3
  • Python Automation
  • Python Web Dev
  • DSA with Python
  • Python OOPs
  • Lists
  • Strings
  • Dictionaries

Open In App

Last Updated : 06 Oct, 2021

Summarize

Comments

Improve

The most common practice of installing external libraries in your system is by using the Python pip command. However, there is an alternate method of manually installing Python libraries without using the pip command.

In this article, we are going to discuss how to manually install a python package.

Below is the Step-by-step approach to manually install selenium library in a system.

Step 1: Downloading the files

  • Go to the https://pypi.org/ website find the package you want to install
  • From the menu on the left-hand side click the download files button.
  • Here I have taken the example of the selenium library.
  • Make sure to download .tar.gz file

How to install Python libraries without using the pip command? - GeeksforGeeks (3)

downloading files

How to install Python libraries without using the pip command? - GeeksforGeeks (4)

.tar.tz

Step 2: Unzip the files downloaded if they are zipped using any unzipping software.

How to install Python libraries without using the pip command? - GeeksforGeeks (5)

Step 3: Change the current working directory to the file containing Setup.py using the cd command.

How to install Python libraries without using the pip command? - GeeksforGeeks (6)

cd command

Step 4: Read the installation instructions carefully and install as directed.

Step 5: After changing the current working directory to the file containing Setup.py type the following command:

python setup.py install

How to install Python libraries without using the pip command? - GeeksforGeeks (7)

setup.py

How to install Python libraries without using the pip command? - GeeksforGeeks (8)

Final

That’s it, now you are ready to use the installed library and you can import this library in your python program.



P

parthbanathia

How to install Python libraries without using the pip command? - GeeksforGeeks (9)

Improve

Next Article

How to Install Chainer Python Library on Windows?

Please Login to comment...

Similar Reads

Install Packages Using PIP With requirements.txt File in Python Installing more than one package in Python simultaneously is a common requirement for any user migrating between operating systems. Most users are unaware of the availability of batch installing all the packages. They default to manually installing each library one after the other, which is time-consuming. This article will teach you how to install 2 min read Install Httpx using Python PIP When working on the internet or building websites, it's important to have good tools to ask for information. HTTPX is one of these tools, and a lot of people like it because it's fast, flexible, and has many features. This article will explain what HTTPX is and show you simple steps to put it on your computer. What is HTTPX?HTTPX is a fully feature 3 min read "How to Fix 'jupyter: command not found' Error After Installing with pip " Encountering the "Jupyter command not found" error after installing Jupyter with pip can be frustrating. This common issue typically arises due to problems with the installation path or virtual environments. In this guide, we'll explore the root causes and provide step-by-step solutions to fix this error. Ensuring Jupyter Notebook is correctly inst 4 min read How to Install yfinance with Python PIP The yfinance API is a powerful tool for accessing financial data from Yahoo Finance. It allows users to download historical market data, retrieve financial information, and perform various financial analyses. This API is widely used in finance, investment, and trading applications for its ease of use and comprehensive data coverage. In this article 2 min read How to install Python3 and PIP on Godaddy Server? GoDaddy VPS is a shared server that provides computational services, databases, storage space, automated weekly backups, 99% uptime, and much more. It’s a cheaper alternative to some other popular cloud-based services such as AWS, GPC, and Azure. Python is an open-source, cross-platform, high-level, general-purpose programming language created by G 2 min read Download and install pip Latest Version PIP is a package management system used to install and manage software packages/libraries written in Python. These files are stored in a large “on-line repository” termed as Python Package Index (PyPI). After you have successfully installed Python, you would clearly need pip in order to install packages, such as Numpy, Django and lots more on your 2 min read How to Install Yotta through PIP Yotta is a powerful tool designed to simplify the management of software projects written in the C and C++ programming languages. It provides a streamlined approach to building automation, dependency management, and package distribution. Whether you're developing embedded systems, IoT devices, or applications that require efficient code management, 3 min read How to fix "Pip Install Timeout Issue"? Python's package installer, pip, is an essential tool for managing and installing Python libraries. However, users sometimes encounter a frustrating problem: the "Pip Install Timeout Issue." This issue occurs when pip takes too long to download packages, leading to a timeout error. This article will explain what causes this issue and provide code e 4 min read How to install pip in macOS ? Before we start with how to install pip for Python on macOS, let's first go through the basic introduction to Python. Python is a widely-used general-purpose, high-level programming language. Python is a programming language that lets you work quickly and integrate systems more efficiently. PIP is a package management system used to install and ma 4 min read How to Install PIP on Windows ? PIP is a powerful package management system used to install and manage software packages and libraries written in Python. PIP stands for "Preferred Installer Program" or "Pip Installs Packages." To use PIP, you must install Python on your Windows machine. This article provides a step-by-step guide on how to install and configure PIP on Windows, alo 5 min read Argparse VS Docopt VS Click - Comparing Python Command-Line Parsing Libraries Before knowing about the Python parsing libraries we must have prior knowledge about Command Line User Interface. A Command Line Interface (CLI) provides a user-friendly interface for the Command-line programs, which is most commonly favored by the developers or the programmers who prefer keyboard programming, instead of using the mouse. By buildin 4 min read Upgrade Opencv Using Python PIP In this article, we will guide you through the step-by-step process of upgrading OpenCV to a specific version using Python PIP. What is Python OpenCV?OpenCV, or Open Source Computer Vision Library, is an open-source software developed by Intel for computer vision, image processing, and machine learning. With versatile tools and functions, it suppor 3 min read Find Installed Python Package Version Using Pip When working on Python projects, it’s common to rely on third-party libraries and packages. Knowing which version of a package is installed is crucial, especially when our project depends on specific features or when we need to ensure compatibility with other packages. This article will guide us through several methods to find the version of a pack 2 min read How to Install JUnit Libraries on Linux? JUnit is basically a unit testing framework for Java. JAVA provides a JUnit framework for unit testing, unit testing is simply a process by which we ensure that the code works the way it was intended to, i.e. we check individual units of source code, such as functions, methods, and class. And normally we just test everything that could reasonably b 3 min read How to Install Java Libraries? Java Library is the collection of classes that are written by some other programmers that we can use in our code by downloading those classes. Java library allows you to read and modify bytecode generated by an application. Some of the popular bytecode libraries in the Java world are "javassist" and "Cglib Nodep." Eclipse is an open-source communit 2 min read How to Install C++ Boost Libraries on Windows? Boost library is a set of a popular collection of peer-reviewed, free, open-source C++ libraries. It supports a number of tasks such as unit testing, image processing, multithreading, and mathematical aspects such as linear algebra and regular expressions. You can also store, numbers that are out of range of long long, or double. It was first made 2 min read How to Install C++ Libraries on MacOS? C++ is a general-purpose object-oriented programming(OOP) language that was developed as an enhancement of the C language and that's why the basic syntax and code structure of both C and C++ are the same. C++ is a crucial and compiled language. C++ is a middle-level language used in developing drivers, kernels, games, GUI, desktop apps, etc. Advant 2 min read How to Install JUnit Libraries in MacOS? JUnit, an essential testing framework for Java developers, simplifies the process of conducting unit tests and ensuring the reliability of your codebase. This guide provides a step-by-step walkthrough of installing JUnit libraries on MacOS, catering to different installation methods. In this guide, we'll walk you through the process of installing J 2 min read Update Flask using PIP Flask, a popular web framework for Python, evolves with new features, bug fixes, and improvements. Keeping your Flask installation up-to-date ensures that you can leverage the latest enhancements and security patches. In this guide, we'll walk through the process of updating Flask using pip, the package installer for Python. Update Flask Using Pip 2 min read Linux - Installing PIP to Manage Python Packages Python is the most popular language for a decade, and we all know that python had a huge support of libraries that are used in different sectors of Software Engineering. Meanwhile, PIP also getting its fame along with python in Linux and developers community.PIP is a package manager for python in handling the software packages that are developed us 2 min read 11 pip Commands For Python Developers Python has been preferred over all programming languages for technological advancement. It is one of the most lucrative programming languages that is used as the main programming language by more than 80%of developers. It is used for web development, mobile applications, hardware programming, and many more. Pip commands cannot be ignored when we ta 5 min read Python PIP In this article, we will discuss what is PIP, and how to install, upgrade, and uninstall packages using Python PIP. So before starting and using it, let us understand what is a Python PIP. What is Package in Python?Package refers to a distribution of Python code that includes one or more modules or libraries. These packages are typically published 5 min read How to Upgrade Pip and Python on Windows, Linux, and MacOS? Python is a programming language with standard libraries and a great ecosystem of third-party packages. On the other side, Pip is the default package manager for Python that installs, upgrades and manages Python, including its dependencies. Pip simplifies the process of installing external libraries and tools which are written in Python. Pip allows 5 min read Difference Between pip and easy_install in Python Python's popularity is partly due to its many pre-written code packages that simplify development. Two major tools for managing these packages are pip and easy_install. In this article, we'll look at how they're alike and different, so you can choose the best one for our projects. Python PipPip, the short form of "Pip Installs Packages," is like th 3 min read Does Uninstalling a Python Package with "PIP" also Remove the Dependent Packages? Pip, which stands for "Pip Installs Packages," is the package management system used to install and manage software packages written in Python. These packages are stored in the Python Package Index (PyPI). When you use pip to install a package, it also installs any dependencies required by that package. However, the behavior of pip when it comes to 4 min read How to fix "error 403 while installing package with Python PIP"? When working with Python, pip is the go-to tool for managing packages. However, encountering a "403 Forbidden" error can be frustrating. This error typically indicates that the server refuses to fulfill the request, often due to permissions or access restrictions. In this article, we'll delve into the causes of this error and explore various soluti 4 min read How to Set up Chrome Picture-in-Picture (PiP) mode in Linux PiP(Picture-in-Picture) allows us to watch online streams and videos in a floating window outside of the Google Chrome browser or even on top of any other application window. Chrome Picture-In-Picture (PiP) has improved the overall video streaming experience throughout the world. We can watch videos along with working and interacting with different 3 min read How to Force pip to Reinstall a Package? It is common for library files to get corrupted with time for a programming language. In such cases, it may break the code in inexplicable ways. To resolve such issues, the library files need to be reinstalled a new to fix the problems. Here, we will learn how to force pip to reinstall the current version. There could be two situations in which the 2 min read What is the Difference Between pip and Conda? Managing packages is a crucial aspect of every project. Python offers several tools for package management, with two of the most popular being pip and conda. While both tools serve the same purpose of installing and managing packages, they have different approaches and functionalities. Understanding the differences between pip and conda can help de 3 min read How to Upgrade PIP on Windows In this tutorial, we will see how to Upgrade PIP on Windows. We will cover how to upgrade, check the version, and also how to downgrade PIP to the previous version. What does pip () do?PIP is a package management system used to install and manage software packages/libraries written in Python. These files are stored in a large “online repository” te 5 min read

Article Tags :

  • How To
  • Installation Guide
  • Python
  • how-to-install

Practice Tags :

  • python

Trending in News

View More
  • How to Merge Cells in Google Sheets: Step by Step Guide
  • How to Lock Cells in Google Sheets : Step by Step Guide
  • #geekstreak2024 – 21 Days POTD Challenge Powered By Deutsche Bank

We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy

How to install Python libraries without using the pip command? - GeeksforGeeks (10)

'); $('.spinner-loading-overlay').show(); jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id, check: true }), success:function(result) { jQuery.ajax({ url: writeApiUrl + 'suggestions/auth/' + `${post_id}/`, type: "GET", dataType: 'json', xhrFields: { withCredentials: true }, success: function (result) { $('.spinner-loading-overlay:eq(0)').remove(); var commentArray = result; if(commentArray === null || commentArray.length === 0) { // when no reason is availaible then user will redirected directly make the improvment. // call to api create-improvement-post $('body').append('

'); $('.spinner-loading-overlay').show(); jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id, }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.unlocked-status--improve-modal-content').css("display","none"); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { $('.spinner-loading-overlay:eq(0)').remove(); var result = e.responseJSON; if(result.detail.non_field_errors.length){ $('.improve-modal--improve-content .improve-modal--improve-content-modified').text(`${result.detail.non_field_errors}.`); jQuery('.improve-modal--overlay').show(); jQuery('.improve-modal--improvement').show(); $('.locked-status--impove-modal').css("display","block"); $('.unlocked-status--improve-modal-content').css("display","none"); $('.improve-modal--improvement').attr("status","locked"); $('.improvement-reason-modal').hide(); } }, }); return; } var improvement_reason_html = ""; for(var comment of commentArray) { // loop creating improvement reason list markup var comment_id = comment['id']; var comment_text = comment['suggestion']; improvement_reason_html += `

${comment_text}

`; } $('.improvement-reasons_wrapper').html(improvement_reason_html); $('.improvement-bottom-btn').html("Create Improvement"); $('.improve-modal--improvement').hide(); $('.improvement-reason-modal').show(); }, error: function(e){ $('.spinner-loading-overlay:eq(0)').remove(); // stop loader when ajax failed; }, }); }, error:function(e) { $('.spinner-loading-overlay:eq(0)').remove(); var result = e.responseJSON; if(result.detail.non_field_errors.length){ $('.improve-modal--improve-content .improve-modal--improve-content-modified').text(`${result.detail.non_field_errors}.`); jQuery('.improve-modal--overlay').show(); jQuery('.improve-modal--improvement').show(); $('.locked-status--impove-modal').css("display","block"); $('.unlocked-status--improve-modal-content').css("display","none"); $('.improve-modal--improvement').attr("status","locked"); $('.improvement-reason-modal').hide(); } }, }); } else { if(loginData && !loginData.isLoggedIn) { $('.improve-modal--overlay').hide(); if ($('.header-main__wrapper').find('.header-main__signup.login-modal-btn').length) { $('.header-main__wrapper').find('.header-main__signup.login-modal-btn').click(); } return; } } }); $('.left-arrow-icon_wrapper').on('click',function(){ if($('.improve-modal--suggestion').is(":visible")) $('.improve-modal--suggestion').hide(); else{ $('.improvement-reason-modal').hide(); } $('.improve-modal--improvement').show(); }); function loadScript(src, callback) { var script = document.createElement('script'); script.src = src; script.onload = callback; document.head.appendChild(script); } function suggestionCall() { var suggest_val = $.trim($("#suggestion-section-textarea").val()); var array_String= suggest_val.split(" ") var gCaptchaToken = $("#g-recaptcha-response-suggestion-form").val(); var error_msg = false; if(suggest_val != "" && array_String.length >=4){ if(suggest_val.length <= 2000){ var payload = { "gfg_post_id" : `${post_id}`, "suggestion" : `

${suggest_val}

`, } if(!loginData || !loginData.isLoggedIn) // User is not logged in payload["g-recaptcha-token"] = gCaptchaToken jQuery.ajax({ type:'post', url: "https://apiwrite.geeksforgeeks.org/suggestions/auth/create/", xhrFields: { withCredentials: true }, crossDomain: true, contentType:'application/json', data: JSON.stringify(payload), success:function(data) { jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-section-textarea').val(""); jQuery('.suggest-bottom-btn').css("display","none"); // Update the modal content const modalSection = document.querySelector('.suggestion-modal-section'); modalSection.innerHTML = `

Thank You!

Your suggestions are valuable to us.

You can now also contribute to the GeeksforGeeks community by creating improvement and help your fellow geeks.

`; }, error:function(data) { jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Something went wrong."); jQuery('#suggestion-modal-alert').show(); error_msg = true; } }); } else{ jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Minimum 5 Words and Maximum Character limit is 2000."); jQuery('#suggestion-modal-alert').show(); jQuery('#suggestion-section-textarea').focus(); error_msg = true; } } else{ jQuery('.spinner-loading-overlay:eq(0)').remove(); jQuery('#suggestion-modal-alert').html("Enter atleast four words !"); jQuery('#suggestion-modal-alert').show(); jQuery('#suggestion-section-textarea').focus(); error_msg = true; } if(error_msg){ setTimeout(() => { jQuery('#suggestion-section-textarea').focus(); jQuery('#suggestion-modal-alert').hide(); }, 3000); } } document.querySelector('.suggest-bottom-btn').addEventListener('click', function(){ jQuery('body').append('

'); jQuery('.spinner-loading-overlay').show(); if(loginData && loginData.isLoggedIn) { suggestionCall(); return; } // load the captcha script and set the token loadScript('https://www.google.com/recaptcha/api.js?render=6LdMFNUZAAAAAIuRtzg0piOT-qXCbDF-iQiUi9KY',[], function() { setGoogleRecaptcha(); }); }); $('.improvement-bottom-btn.create-improvement-btn').click(function() { //create improvement button is clicked $('body').append('

'); $('.spinner-loading-overlay').show(); // send this option via create-improvement-post api jQuery.ajax({ url: writeApiUrl + 'create-improvement-post/?v=1', type: "POST", contentType: 'application/json; charset=utf-8', dataType: 'json', xhrFields: { withCredentials: true }, data: JSON.stringify({ gfg_id: post_id }), success:function(result) { $('.spinner-loading-overlay:eq(0)').remove(); $('.improve-modal--overlay').hide(); $('.improvement-reason-modal').hide(); $('.create-improvement-redirection-to-write').attr('href',writeUrl + 'improve-post/' + `${result.id}` + '/', '_blank'); $('.create-improvement-redirection-to-write')[0].click(); }, error:function(e) { $('.spinner-loading-overlay:eq(0)').remove(); var result = e.responseJSON; if(result.detail.non_field_errors.length){ $('.improve-modal--improve-content .improve-modal--improve-content-modified').text(`${result.detail.non_field_errors}.`); jQuery('.improve-modal--overlay').show(); jQuery('.improve-modal--improvement').show(); $('.locked-status--impove-modal').css("display","block"); $('.unlocked-status--improve-modal-content').css("display","none"); $('.improve-modal--improvement').attr("status","locked"); $('.improvement-reason-modal').hide(); } }, }); });

How to install Python libraries without using the pip command? - GeeksforGeeks (2024)
Top Articles
Powered Hand Tools - Routers
What is NFT Minting: Meaning and Process Explained | LiteFinance
What Is Single Sign-on (SSO)? Meaning and How It Works? | Fortinet
San Angelo, Texas: eine Oase für Kunstliebhaber
Custom Screensaver On The Non-touch Kindle 4
Uti Hvacr
Instructional Resources
Gamevault Agent
Google Jobs Denver
Watch Mashle 2nd Season Anime Free on Gogoanime
Tap Tap Run Coupon Codes
Victoria Secret Comenity Easy Pay
Barstool Sports Gif
City Of Spokane Code Enforcement
Bc Hyundai Tupelo Ms
Chic Lash Boutique Highland Village
Scenes from Paradise: Where to Visit Filming Locations Around the World - Paradise
Cpt 90677 Reimbursem*nt 2023
Best Uf Sororities
H12 Weidian
Scotchlas Funeral Home Obituaries
Silive Obituary
Football - 2024/2025 Women’s Super League: Preview, schedule and how to watch
Winco Employee Handbook 2022
Gotcha Rva 2022
Teekay Vop
Walmart Pharmacy Near Me Open
Bra Size Calculator & Conversion Chart: Measure Bust & Convert Sizes
Rural King Credit Card Minimum Credit Score
Where to eat: the 50 best restaurants in Freiburg im Breisgau
Craigslist/Phx
Redbox Walmart Near Me
Martin Village Stm 16 & Imax
Stolen Touches Neva Altaj Read Online Free
Truis Bank Near Me
Staar English 1 April 2022 Answer Key
Pinellas Fire Active Calls
Henry County Illuminate
Admissions - New York Conservatory for Dramatic Arts
Hingham Police Scanner Wicked Local
Hebrew Bible: Torah, Prophets and Writings | My Jewish Learning
Planet Fitness Santa Clarita Photos
Levothyroxine Ati Template
Craigslist Florida Trucks
Miami Vice turns 40: A look back at the iconic series
Craigslist Food And Beverage Jobs Chicago
Free Crossword Puzzles | BestCrosswords.com
Sofia Franklyn Leaks
Woody Folsom Overflow Inventory
Latina Webcam Lesbian
Unbiased Thrive Cat Food Review In 2024 - Cats.com
Inside the Bestselling Medical Mystery 'Hidden Valley Road'
Latest Posts
Article information

Author: Msgr. Benton Quitzon

Last Updated:

Views: 5713

Rating: 4.2 / 5 (43 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Msgr. Benton Quitzon

Birthday: 2001-08-13

Address: 96487 Kris Cliff, Teresiafurt, WI 95201

Phone: +9418513585781

Job: Senior Designer

Hobby: Calligraphy, Rowing, Vacation, Geocaching, Web surfing, Electronics, Electronics

Introduction: My name is Msgr. Benton Quitzon, I am a comfortable, charming, thankful, happy, adventurous, handsome, precious person who loves writing and wants to share my knowledge and understanding with you.