     [Answers](https://scrapfly.io/blog)   /  [requests](https://scrapfly.io/blog/tag/requests)   /  [3 ways to install Python Requests library](https://scrapfly.io/blog/answers/how-to-install-requests-python)   # 3 ways to install Python Requests library

 by [Bernardas Alisauskas](https://scrapfly.io/blog/author/bernardas) Dec 15, 2022 1 min read [\#requests](https://scrapfly.io/blog/tag/requests) 

 [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-install-requests-python "Share on LinkedIn")    

 

 

There are several ways to install `requests` package in Python. The easiest way is to use the `pip install` terminal command which will automatically install the latest version for the current desktop or just the user:

shell```shell
# system wide
$ pip install requests
# only for user
$ pip install --user requests
```



Alternatively, we can use a package manager such as [poetry](https://python-poetry.org/):

shell```shell
# create new poetry project with `requests` dependency
$ poetry init --dependency=requests
```



or [pipenv](https://pipenv.pypa.io/en/latest/index.html) package manager:

shell```shell
$ cd myproject
$ pipenv install requests
```





 

    



Scale Your Web Scraping

Anti-bot bypass, browser rendering, and rotating proxies, all in one API. Start with 1,000 free credits.

  No credit card required  1,000 free API credits  Anti-bot bypass included 

 [Start Free](https://scrapfly.io/register) [View Docs](https://scrapfly.io/docs/onboarding) 

 Not ready? Get our newsletter instead. 

 

## Explore this Article with AI

 [ ChatGPT ](https://chat.openai.com/?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-install-requests-python) [ Gemini ](https://www.google.com/search?udm=50&aep=11&q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-install-requests-python) [ Grok ](https://x.com/i/grok?text=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-install-requests-python) [ Perplexity ](https://www.perplexity.ai/search/new?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-install-requests-python) [ Claude ](https://claude.ai/new?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-install-requests-python) 



 ## Related Articles

 [     

### What is HTTP 405 Error? (Method Not Allowed)

HTTP error codes can be confusing, especially when they disrupt your web scraping or automation tasks. One such error is...

 

 ](https://scrapfly.io/blog/posts/what-is-http-405-error) [  

 http 

### What is HTTP 409 Error? (Conflict)

HTTP status code 409 generally means a conflict or mismatch with the server state. Learn why it happens and how to avoid...

 

 ](https://scrapfly.io/blog/posts/what-is-http-409-status-code-conflict) [  

 http 

### What is HTTP 415 Error? (Unsupported Media Type)

Quick look at HTTP status code 415 — what does it mean and how can it be prevented and bypassed in scraping?

 

 ](https://scrapfly.io/blog/posts/what-is-http-415-error-unsupported-media-type) 

  ## Related Questions

- [ Q What is cURL and how is it used in web scraping? ](https://scrapfly.io/blog/answers/what-is-curl-and-how-is-it-used-in-web-scraping)
- [ Q Python httpx vs requests vs aiohttp - key differences ](https://scrapfly.io/blog/answers/httpx-vs-requests-vs-aiohttp)
- [ Q What are some ways to parse JSON datasets in Python? ](https://scrapfly.io/blog/answers/what-are-some-ways-to-parse-json-datasets-in-python)
- [ Q How to install mitmproxy certificate on Chrome and Chromium? ](https://scrapfly.io/blog/answers/how-to-install-mitmproxy-certificate)
 
  



   



 Scale your web scraping effortlessly, **1,000 free credits** [Start Free](https://scrapfly.io/register)