• Home
  • Tech
Safha
  • Home
  • Tech
    • All
    • Windows
    What is a Virtual IP (VIP)?

    What is a Virtual IP (VIP)?

    Private Vs Public IP Addresses

    Private Vs Public IP Addresses

    Proxy Vs Reverse Proxy

    Proxy Vs Reverse Proxy

    Content Delivery Network (CDN)

    Content Delivery Network (CDN)

    Building Modern IT Data Centers

    Building Modern IT Data Centers

    What is Virtualisation?

    What is Virtualisation?

No Result
View All Result
  • Home
  • Tech
    • All
    • Windows
    What is a Virtual IP (VIP)?

    What is a Virtual IP (VIP)?

    Private Vs Public IP Addresses

    Private Vs Public IP Addresses

    Proxy Vs Reverse Proxy

    Proxy Vs Reverse Proxy

    Content Delivery Network (CDN)

    Content Delivery Network (CDN)

    Building Modern IT Data Centers

    Building Modern IT Data Centers

    What is Virtualisation?

    What is Virtualisation?

No Result
View All Result
Safha
No Result
View All Result
  • Home
  • Tech
Home Tech

Installing third party modules in Python

Chief Editor by Chief Editor
January 28, 2025
in Tech
0
Installing third party modules in Python
0
SHARES
8
VIEWS
Share on FacebookShare on Twitter

If we want to import a third-party module in Python and we get en error as below; we need to install that module first. Below example of error if a module is imported without installing it first.

>>> import untangle
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import untangle
ModuleNotFoundError: No module named 'untangle'

To install the module:

  1. Close the current session of IDLE.
  2. Open command prompt and type “pip install untangle”
c:\Users\xyz>pip install untangle

Note: Sometimes, due to proxy servers in corporate Networks, step 2 fails with below error

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’))’: /simple/untangle/

Could not fetch URL https://pypi.org/simple/untangle/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=’pypi.org’, port=443): Max retries exceeded with url: /simple/untangle/ (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’))) – skipping

ERROR: Could not find a version that satisfies the requirement untangle (from versions: none)

ERROR: No matching distribution found for untangle

To solve the SSL error, use below command

c:\Users\xyz>pip install --user --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org untangle

3. Open new session of IDLE and do the import again. It will be successful this time.

Previous Post

Unzipping multiple Zip Files in a folder using Python

Next Post

XML file parsing with Python

Chief Editor

Chief Editor

Next Post
XML file parsing with Python

XML file parsing with Python

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest

How to do a clean Install of Windows 11

January 28, 2025
How a website is accessed from a Web Server

How a website is accessed from a Web Server

March 9, 2025
What is Virtualisation?

What is Virtualisation?

February 15, 2025
XML file parsing with Python

XML file parsing with Python

January 29, 2025

How to do a clean Install of Windows 11

0
Unzipping multiple Zip Files in a folder using Python

Unzipping multiple Zip Files in a folder using Python

0
Installing third party modules in Python

Installing third party modules in Python

0
XML file parsing with Python

XML file parsing with Python

0
What is a Virtual IP (VIP)?

What is a Virtual IP (VIP)?

March 7, 2025
Private Vs Public IP Addresses

Private Vs Public IP Addresses

February 21, 2025
Proxy Vs Reverse Proxy

Proxy Vs Reverse Proxy

February 16, 2025
Content Delivery Network (CDN)

Content Delivery Network (CDN)

February 16, 2025
  • Home
  • Tech

© 2025 Safha - We are all about Technology and Finance Learning and Knowledge Sharing

No Result
View All Result
  • Home
  • Tech

© 2025 Safha - We are all about Technology and Finance Learning and Knowledge Sharing