python word2vec not installing

Using pip to install python libraries is a good approach.

1. Install pip

A) Start a command prompt as an administrator

  1. Click Start, click All Programs, and then click Accessories.

  2. Right-click Command prompt, and then click Run as administrator.

  3. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.

B) Download get-pip.py, being careful to save it as a .py file rather than .txt. Then, run it from the command prompt.

python get-pip.py

Download get-pip.py, and save it as a get-pip.py(not get-pip.txt).

Run it from the command prompt.

python get-pip.py

2. Install word2vec

Now you can install it with

pip install word2vec

The word2vec is meant for Linux. See: https://github.com/danielfrg/word2vec

At the bottom it says there is a very experimental Windows build at: support:https://github.com/zhangyafeikimi/word2vec-win32

EDIT:

Looks like you can also install gensim: https://pypi.python.org/pypi/gensim

Then do:

from gensim.models import word2vec

For me this approach worked on Win 7 and Win 8 both.

  1. Install Anaconda 64-bit (Python version 2.7)
  2. Install MinGW Basic compiler (make sure to select C and C++ compilers in the installation list)
  3. Re-install gensim on Anaconda using the command "conda install gensim" Then you can open the ipython-notebook and try running python code using word2vec, it should work.