Comments (1)
I am also working on a Mac, and had both this and then subsequently some of the other reported installation problems.
Firstly this one - replace '-shared' with '-dylib'
After that, if you have multiple python installations and use some sort of Python virtual environment (I'm using Anaconda) you'll probably still have problems, first with building, and then potentially with runtime errors (Fatal Python error: PyThreadState_Get: no current thread).
To resolve these you need to ensure that you are building the EMD module against the correct libraries for your runtime Python installation. Assuming you have your runtime python activated then changing the makefile like this should solve your issues:
...
WRAPPERS := _emd.so emd.py
INCLUDES := $(shell python2-config --includes)
CC = cc
LD = ld
LIBS := $(shell python2-config --prefix)/lib
LD_FLAGS := -L$(LIBS) $(shell python2-config --ldflags)
CFLAGS := $(shell python2-config --cflags)
CFLAGS += -fPIC
all: $(WRAPPERS)
_%.so: %.o %_wrap.o
@echo ">>> Linking wrapper library '$(@)'."
@echo -n " "
$(LD) $(LD_LIBS) $(LD_FLAGS) -dylib -o $@ $^
@echo
%.o: %.c
@echo ">>> Building object file '$(@)'."
@echo -n " "
$(CC) -o $@ -c $< $(CFLAGS) $(INCLUDES) $(LIBS)
@echo
...
from wmd.
Related Issues (20)
- emd: Signature size exceeds 100 HOT 1
- Is it possible to use GloVe with your code? HOT 1
- Makefile:51: recipe for target 'emd_wrap.c' failed HOT 1
- Does this code run in python 3? HOT 3
- Makefile:45: recipe for target 'emd.o' failed
- installation issues HOT 1
- technology independent output file HOT 1
- Error: emd: Signature size is limited to 100 HOT 2
- Obtaining flow information through python interfance
- i want to use WMD to train chinese data,there's some errors ,plz help me! HOT 1
- installation issues solved
- Do i need Matlab to run or change the code ?
- Deadlock in Multiprocessing
- problem with WCD HOT 3
- when i run python2 example1.py ,i got this problem:
- Quality performance compared to Sørensen–Dice coefficient
- Current wmd implementation does not match GenSim HOT 1
- ImportError: No module named _emd HOT 6
- there are lots of NaN's in the distance matrix for the example dataset HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wmd.