Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed installing on win10 use “pip install glove-python-binary” #113

Open
hesterLong opened this issue Dec 7, 2020 · 1 comment
Open

Comments

@hesterLong
Copy link

after I use command "pip install glove-python-binary" to install,
I got a wrong feedback when i import it.
`
(glove) D:\python_project\education_data\transformer_model\glove-python>python
Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 12:30:02) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

from glove import Glove
Traceback (most recent call last):
File "", line 1, in
File "D:\python_project\education_data\transformer_model\glove-python\glove_init_.py", line 1, in
from .corpus import Corpus
File "D:\python_project\education_data\transformer_model\glove-python\glove\corpus.py", line 10, in
from .corpus_cython import construct_cooccurrence_matrix
ModuleNotFoundError: No module named 'glove.corpus_cython'

`
how can I fix it ?

@IronFarm
Copy link

IronFarm commented Mar 4, 2021

@hesterLong it looks to me like it's importing glove from your local directory instead of where the package is installed. Could you try and import it after starting python in another directory? i.e. run python in D:\ for example then from glove import Glove

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants