[PYTHON] I can't install the package with pip.

environment

problem

If you are a Python beginner but want to operate AWS by imitating the appearance and try to drop boto3 pip install boto3 I can't.

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting boto3
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
  Could not fetch URL https://pypi.org/simple/boto3/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/boto3/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement boto3 (from versions: )
No matching distribution found for boto3

Candidate solution

Typo? It's not, because I copied and pasted Pypi's commands. スクリーンショット (3).png

Certificate error?

When I googled the error, an article appeared that I did not trust it due to the certificate, so I executed it. https://qiita.com/agajo/items/73d6f14855da703972e0

But it doesn't work.

solution

If you look at the pip page on the Official Site

`If you have multiple versions of Python installed, you need to specify which Python execution environment to install the package on. ``

a. Speaking of which, remembering that 2.x was installed due to another system, specify the version and execute

py -3 -m pip install boto3

Solved safely

Recommended Posts

I can't install the package with pip.
Can't find the package you installed with pip install --user?
I can't install Dask with pip on Ubuntu
I can't install python3 with pyenv-vertualenv
I can't install mysql-connector-python with anaconda
I want to pip install with PythonAnywhere
Error with pip install
I can't install Anaconda!
Install the pip command
Install scikit.learn with pip
Avoiding "'ascii' codec can't decode" with pip install
I can't find the commands in the package introduced by pip from Emacs
When moss with pip install
I failed to install django with pip, so a reminder of the solution
Install github repository with pip
Pip install the GitHub repository
I can't search with # google-map. ..
Steps to install a Git cloned package locally with pip
I want to install a package from requirements.txt with poetry
I can't log in to the admin page with Django3
I have libncurses but get angry with pip install readline
Install Python 2.7.9 and Python 3.4.x with pip.
Permission denied with pip install pyopenssl
I can't download images with Google_images_download
Install the Python plugin with Netbeans 8.0.2
Install the data files with setup.py
Manipulate colors with pip install color
I liked the tweet with python. ..
I can't install scikit-learn in Python
I can't use Japanese with pyperclip
How to install mysql-connector with pip3
[Python Windows] pip install with Python version
I cried with `pip install --upgrade pip` with Bad md5 hash for package, but it got better
I get an error when trying to install maec 4.0.1.0 with pip
I can't import modules in the parent directory even with sys.path.append ('..')
About package management with conda and pip
Update package with pip standard features only
Python installation and package management with pip
[Scikit-learn] I played with the ROC curve
I was addicted to pip install mysqlclient
Install Python package management tool pip (Windows)
scipy stumbles with pip install on python 2.7.8
I can't get the element in Selenium!
I tried playing with the image with Pillow
Python's "I can't reach the itch ..." feature
I can't deploy with google app engine
I just did pip install pyrebase ... (UnicodeDecodeError)
Install the package in an offline environment
I can't see new files with yum
Why can't I install matplotlib in python! !!
Let's install box2d-py with Windows 10 environment pip
I got an SSL related error with pip install, so I solved it
What to do if you can't install with pip in babun environment
Install the python module with pip on a server without root privileges
I tried "smoothing" the image with Python + OpenCV
I tried "differentiating" the image with Python + OpenCV
Change the default reference repository for pip install
sudo pip install
I tried to save the data with discord
I wanted to play with the Bezier curve
I wanted to install Python 3.4.3 with Homebrew + pyenv