Python Forum
Getting error while installing packages using pip
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting error while installing packages using pip
#1
Hi All,

I am new to this language. I am trying to install numpy package using pip from virtual env.
But I am getting the error.

I checked the pip version:
(venv5) lrv18183:nq84ww [/home/nq84ww] python3.9 -m pip --version
pip 19.2.3 from /home/nq84ww/venv5/lib/python3.9/site-packages/pip (python 3.9)

pip is already installed.


While installing numpy getting error:
Error:
Could not fetch URL https://pypi.org/simple/numpy/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/numpy/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping ERROR: Could not find a version that satisfies the requirement numpy (from versions: none) ERROR: No matching distribution found for numpy
Therefore, I tried to upgrade pip, While upgrading pip version getting error:
Error:
[b] Could not fetch URL https://pypi.org/simple/upgrade/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/upgrade/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping ERROR: Could not find a version that satisfies the requirement upgrade (from versions: none) ERROR: No matching distribution found for upgrade[/b]
Also, tried :
python3.9 -m pip install --upgrade pip --trusted-host pypi.org --trusted-host files.pythonhosted.org
python3.9 -m pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --upgrade pip

None is working for me.

If you can help, it would be really helpful.
Reply
#2
python 3.9 is alpha release, i.e. still in development (release schedule). latest stable is 3.8 and numpy supports versions 3.5-3.8.

Any reason why would you want to use python 3.9? Just use 3.8.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
I am getting this issue for all the packages while installing using pip, not only for numpy.
It looks like the issue is because the ssl is not installed as the error messages states(Can't connect to HTTPS URL because the SSL module is not available).
But installing ssl with pip also does not work. So how do I install ssl.

To answer your question, there is no specific reason to use 3.9 version.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ERROR WHILE INSTALLING PLAYSOUND MODULE satwants33 2 1,042 Mar-23-2024, 12:50 PM
Last Post: Ritik2508
  Installing python packages in a virtual environment Led_Zeppelin 1 714 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  installing prospector and updating anaconda packages amir 2 958 Dec-24-2022, 06:13 AM
Last Post: amir
  Installing Modules / packages Oshadha 1 1,676 Feb-05-2021, 08:04 PM
Last Post: Jeff900
  error while installing any library using pip in windows AkashKansal 1 4,337 Sep-24-2020, 07:51 AM
Last Post: buran
  Pip prints huge error when installing p5 hayden2s 1 2,217 Aug-08-2020, 02:30 PM
Last Post: snippsat
  Installing Error - Python 2.7.8 saranana 2 2,492 Jun-04-2020, 02:25 AM
Last Post: pyzyx3qwerty
  Installing Packages Cydney 6 3,202 Mar-31-2020, 01:13 PM
Last Post: Cydney
  Error Installing PySceneDetect and OpenCV jpnoli 1 1,873 Mar-26-2020, 12:19 PM
Last Post: buran
  Error after installing Python3.8.2: "No module named 'apt_pkg'" Chromie 3 3,823 Mar-09-2020, 08:20 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020