glove-python: unable to install on Win 7
whether using python setup.py install or pip install glove-python commands from Anaconda prompt, any installation attempt ends in failure with the error 2 below
c:\Anaconda>pip install glove-python
Collecting glove-python
Downloading glove_python-0.1.0.tar.gz (263kB)
100% |################################| 266kB 744kB/s
Requirement already satisfied (use --upgrade to upgrade): numpy in c:\anaconda\l
ib\site-packages (from glove-python)
Requirement already satisfied (use --upgrade to upgrade): scipy in c:\anaconda\l
ib\site-packages (from glove-python)
Building wheels for collected packages: glove-python
Running setup.py bdist_wheel for glove-python ... error
Complete output from command c:\anaconda\python.exe -u -c "import setuptools,
tokenize;__file__='c:\\users\\captain\\appdata\\local\\temp\\pip-build-jiom9g\\g
love-python\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).re
ad().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d c:\users\captain\
appdata\local\temp\tmpbo71fdpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\glove
copying glove\corpus.py -> build\lib.win-amd64-2.7\glove
copying glove\glove.py -> build\lib.win-amd64-2.7\glove
copying glove\__init__.py -> build\lib.win-amd64-2.7\glove
running build_ext
building 'glove.glove_cython' extension
error: [Error 2] The system cannot find the file specified
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 34 (2 by maintainers)
How to install glove-python in windows
git clone https://github.com/maciejkula/glove-python.git
goto cloned directory location and open setup.py and remove ‘stdc++’ from libraries=[] paramerter after removing it will look like below
Extension(“glove.corpus_cython”, [glove_corpus], language=‘C++’, libraries=[], extra_link_args=compile_args, extra_compile_args=compile_args)]
conda install cython
open cmd from that location where setup.py is stored and run below command python setup.py install
Verify
I removed stdc++ from setup.py and it compiled and worked
I am able to install the Glove by following comment of @huan086
Now, I am getting an ImportError
Any idea how to fix it?