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

Installation Error on Windows Machine #192

Open
bedirhangergin opened this issue Apr 18, 2023 · 5 comments
Open

Installation Error on Windows Machine #192

bedirhangergin opened this issue Apr 18, 2023 · 5 comments
Labels
question Further information is requested

Comments

@bedirhangergin
Copy link

❓ Question

Hi,

I encountered an error while attempting to pip install the library to my Python 3.10 environment on a Windows machine.

Screen Shot 2023-04-17 at 10 21 27 PM 2

Despite following the error's suggestion to install Microsoft Build Tools, I am still unable to resolve the issue and continue to receive the same error message. I would appreciate any assistance you can provide.

@bedirhangergin bedirhangergin added the question Further information is requested label Apr 18, 2023
@rememberYou
Copy link
Collaborator

rememberYou commented Apr 19, 2023

From what I understand from your screenshot, it seems that the python-Levenshtein package could not be installed. Did you already try to install it manually? Make sure you have at least Microsoft Visual C++ 14.0, as suggested the error.

@bedirhangergin
Copy link
Author

I installed the levenshtein library successfully by 'pip install levenshtein'. But when I do 'pip install pyRDF2vec', it is still giving me the same error.
I have the latest Visual Studio and C++ Build Tools.

@rememberYou
Copy link
Collaborator

I can read that the python-Levenshtein package has been renamed to levenshtein (cf. PyPI documentation). I will update the package dependencies to prevent this from happening again. I would try to install pyRDF2Vec in another way to see if the error is still persistent (e.g., from poetry or source).

@bedirhangergin
Copy link
Author

I am encountering the same error with pip install. Then I tried to install from the source, the installation process completed without any errors. However, I'm unable to import the package into my code. I'm uncertain whether I followed the correct steps or if there's an issue with my directory structure. I would greatly appreciate it if you could review the steps I took and provide assistance.

Screen Shot 2023-05-22 at 10 06 19 AM 2

@rememberYou
Copy link
Collaborator

If you were able to install pyRDF2Vec without errors, it is already promising.

Before trying to import it into your code, I'll see if you already know how to import pyRDF2Vec into a simple Python environment that you can open in a terminal. If pyRDF2Vec is not available, it's probably because it was installed in a virtual environment (and so you have to connect to it) or that pyRDF2vec is not included in the Python path.

A quick way to solve this is to use the sys :

import sys
sys.path.append('/path/to/pyrdf2vec')
import pyrdf2vec

Be aware that this is not the normal procedure you have to do this. But at least it can have the merit to allow you to use pyRDF2Vec.

Personally, I would install pyRDF2Vec in a virtual environment using poetry or venv and connect to it to use it. You are free to use either solution.

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

No branches or pull requests

2 participants