Introducing a library that was not included in pip on Python / Windows

Introduction

I had a hard time installing scikit-learn and Gensim, which are essential for machine learning and natural language processing, with pip, so I will summarize how to install libraries that could not be installed with pip.

My environment

OS: Windows 7 64bit python:python 3.4.3 64bit

procedure

  1. Python version, bit check
  2. Introduce wheel
  3. Download the library you want to include
  4. Library introduction
  5. Done

Python version, bit check

Run python on the command prompt and check the result Example Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)] on win32 → python3.4.3 64bit

Introduced wheel

Execute the following command pip install wheel-0.24.0.tar.gz

I was allowed to reference Mastering pip and wheel on windows http://qiita.com/toruuetani/items/b0000e9f5c89a350d4f8

Download the library you want to include

Unofficial Windows Binaries for Python Extension Packages http://www.lfd.uci.edu/~gohlke/pythonlibs/

Find the library you want to include from the page above and download the one that suits your environment

Example I downloaded "scikit_learn-0.16.1-cp34-none-win_amd64.whl" because the version of python is 3.4 series, 64bit. cp34 → Python version amd64 → Python bit number

scikit_learn-0.16.1-cp34-none-win_amd64.whl              ↑python     ↑bit

Library introduction

Place the downloaded whl in C: \ Python \ Scripts At the command prompt: cd C:\Python\Scripts pip install example.whl

Done

I think I was able to introduce it with this By default, python is installed in 32bit, which is a stumbling block.

Recommended Posts

Introducing a library that was not included in pip on Python / Windows
Until drawing a 3D graph in Python on windows10
Introducing Python in Practice (PiP)
How to use a library that is not originally included in Google App Engine
A note on the library implementation that explores hyperparameters using Bayesian optimization in Python
Published a library that hides character data in Python images
Hit a command in Python (Windows)
Install Python on Windows + pip + virtualenv
Windows10: Install MeCab library in python
Use networkx, a library that handles graphs in python (Part 2: Tutorial)
Easy! Implement a Twitter bot that runs on Heroku in Python
A record that GAMEBOY could not be done in Python. (PYBOY)
About psd-tools, a library that can process psd files in Python
Workaround for the problem that sys.argv is not passed when executing a Python script with only the file name in Python2.7 on Windows
Virtualenv does not work on Python3.5 (Windows)
[Python] [Windows] Take a screen capture in Python
Creating a python virtual environment on Windows
A python script for Mac that zips without garbled characters on Windows
Code reading of faker, a library that generates test data in Python
A memo that I wrote a quicksort in Python
Open a ZIP created on Windows in Linux
Python on Windows
Simply build a Python 3 execution environment on Windows
Notes on installing Python3 and using pip on Windows7
I registered PyQCheck, a library that can perform QuickCheck with Python, in PyPI.
A program that removes duplicate statements in Python
A note on optimizing blackbox functions in Python
Separately install a version of Python that is not pre-installed on your Mac
python memo-"if not A and B" was "if (not A) and B"
Create a Python virtual development environment on Windows
Install ZIP version Python and pip on Windows 10
Create an exe file that works in a Windows environment without Python with PyInstaller
What to do if Python IntelliSense is not displayed in VS Code on Windows
Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6
Key input that does not wait for key input in Python
Build a Python extension for E-Cell 4 on Windows 7 (64bit)
Create a comfortable Python 3 (Anaconda) development environment on windows
Building a TensorFlow environment that uses GPU on Windows 10
Build a GVim-based Python development environment on Windows 10 (1) Installation
What's in that variable (when running a Python script)
Created a Python library DateTimeRange that handles time ranges
In Python, create a decorator that dynamically accepts arguments Create a decorator
Procedure for building a CDK environment on Windows (Python)
A note on handling variables in Python recursive functions
Write a log-scale histogram on the x-axis in python
[Python] A convenient library that converts kanji to hiragana
problem that certificate verify failed on mac python pip
Create a decent shell and python environment on Windows
Publish / upload a library created in Python to PyPI
Set a proxy for Python pip (described in pip.ini)
MALSS, a tool that supports machine learning in Python
python basic on windows ②
Install python on windows
Use pip on Windows
Summary of points to keep in mind when writing a program that runs on Python 2.5
I made a program to collect images in tweets that I liked on twitter with Python
Test.py is not reflected on the web server in Python3.
A general-purpose program that formats Linux command strings in python
A function that divides iterable into N pieces in Python
Create a list in Python with all followers on twitter
Loop through a generator that returns a date iterator in Python