TimoB
TimoB

Reputation: 21

Error installing from GitHub using pip on Windows

I am on a Windows machine and I want to install a Python module from GitHub using pip directly from IPython.

The simplest command that seems it should work is:

!pip install https://github.com/japerk/nltk-trainer.git

I have also tried:

!pip install https://github.com/japerk/nltk-trainer.git#egg=nltk-trainer

I've used variants including -vvv, etc.

However, I'm getting the following error. Why?

Cannot determine archive format of C:\Users\timo\AppData\Local\Temp\pip-build-183bwemw\nltk-trainer

Upvotes: 1

Views: 899

Answers (1)

maanijou
maanijou

Reputation: 1067

  1. go to the https://github.com/japerk/nltk-trainer and download the project zip file. extract the zip file and put it somewhere in your computer.
  2. open command prompt in windows and go inside the folder that you extracted earlier(you must be in the folder that has setup.py file in it).
  3. enter the following command: python setup.py install python tries to install nltk-trainer . during installation some other dependency might be installed too. you need numpy and scipy to be installed. if any problem happened during installation of numpy or scipy try installing them manually first by using pip install numpy and pip install scipy

if you can't install numpy and scipy using pip command use the following link: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

this site has compiled version of these libraries ( and other libraries if you need to install them too) you can download .whl file that is based on your python version and os architecture and install them using pip install filename.whl command ( you need to be in the folder that your whl file is) for example for python3.4 and 64bit operating system you may download scipy‑0.16.0‑cp34‑none‑win_amd64.whl file.

Upvotes: 1

Related Questions