Anush008 / fastembed-go

Go implementation of @qdrant/fastembed.
https://pkg.go.dev/github.com/anush008/fastembed-go
MIT License
45 stars 4 forks source link

Install Issue? #8

Closed msj121 closed 7 months ago

msj121 commented 7 months ago

I get the following error: github.com/yalue/onnxruntime_go: build constraints exclude all Go files in C:\Users\ME\go\pkg\mod\github.com\yalue\onnxruntime_go@v1.7.0

I have windows, do I need to install something else to get this to work?

Anush008 commented 7 months ago

No additional steps should be necessary.

Anush008 commented 7 months ago

Maybe this thread could help for Windows.

https://stackoverflow.com/questions/55348458/build-constraints-exclude-all-go-files-in

Anush008 commented 7 months ago

Additionally, if you run into this common issue

https://github.com/Anush008/fastembed-go?tab=readme-ov-file#%E2%84%B9%EF%B8%8E-notice

msj121 commented 7 months ago

If anyone needs help, in the cmd or perhaps environment variables you need to set CGO_ENABLED=1. Also gcc needs to be setup. I used mingw. Simply download the folder and point gcc environment variable to the bin folder, point being so typing gcc in terminal will get you the gcc compiler.

Thanks for your help