[Small story] How to install the module when pip cannot be used due to proxy etc.

A memo when pip does not pass due to company security. It's a hassle to apply one by one, so I decided to install it directly and checked it.

How to do

  1. Search https://pypi.org/ for the module you want to install
  2. Download the whl file from Download files in the left pane

If you don't have a wheel file, you can use tar.gz (should be ...)

What is the whl file name cp27 or cp36?

Python Verison. You can find out what it supports with the following program.

from pip._internal.pep425tags import get_supported
print(get_supported())

>>>
[('cp35', 'cp35m', 'win_amd64'), ('cp35', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), ('cp35', 'none', 'any'), ('cp3', 'none', 'any'), ('py35', 'none', 'any'), ('py3', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]

Installation method (for Windows)

  1. Start command prompt
  2. Move to the folder containing the downloaded .whl file
  3. Run pip install "filename.whl"

Recommended Posts

[Small story] How to install the module when pip cannot be used due to proxy etc.
Python note: When the pip command cannot be used
How to install pip
Record of actions to be taken when google_image_download cannot be used
How to set variables that can be used throughout the Django app-useful for templates, etc.-
How to solve when the package cannot be installed due to gpg: keyserver receive failed: General error when doing yay on Manjaro Linux
[For IT beginners] What to do when the rev command cannot be used with Git Bash
How to use the optparse module
How to install mysql-connector with pip3
How to use the ConfigParser module
Proxy error when running "pip install"
What to do when "OS Error: [WinError 126] The specified module cannot be found" appears in import torch
When I import TensorFlow to Python, I get "Import Error: DLL load failed: The specified module cannot be found."
Error in deep learning "ImportError: DLL load failed: The specified module cannot be found. How to know the "specified module" in.
The story of using mysqlclient because PyMySQL cannot be used with Django 2.2
python3 How to install an external module
How to deal with "No module named'〇〇'" error in Jupyter Notebook | Install with! Pip!
How to install a Python library that can be used by pharmaceutical companies
[Ubuntu 18.04 LTS] What to do when the screen resolution cannot be selected [NVIDIA]
Correspondence memo when the direction key cannot be used on the python command line
How to deal with errors when hitting pip ②
"Temporary solution" when pip cannot be updated [Python]
How to install pip, numpy in Autodesk MAYA
No module named'distutils.util' cannot be used with get-pip.py
What to do if pip cannot be installed
How to use pip3 under proxy environment Note
The problem that the ifconfig command cannot be used