Closed ttessarolo closed 11 months ago
I have the same error
have you installed python-dev package? if you run 'python3-config --ldflags --embed' it shows a list of directories: -Lxxxxxx. please check if xxxxxxx has libpython3.11. for further investigation please attach the output of the command above.
@hmenyus the command "python3-config --ldflags --embed" produced the following output:
-L/Users/tommasotessarolo/anaconda3/lib/python3.11/config-3.11-darwin -lpython3.11 -ldl -framework CoreFoundation
the directory "/Users/tommasotessarolo/anaconda3/lib/python3.11/config-3.11-darwin -lpython3.11" have the following files:
drwxr-xr-x 14 tommasotessarolo staff 448 Nov 29 17:05 .
drwxr-xr-x 211 tommasotessarolo staff 6752 Nov 29 17:05 ..
-rw-r--r-- 1 tommasotessarolo staff 119251 Nov 29 17:05 Makefile
-rw-r--r-- 2 tommasotessarolo staff 11182 Oct 3 12:41 Setup
-rw-r--r-- 2 tommasotessarolo staff 878 Oct 3 12:41 Setup.bootstrap
-rw-r--r-- 2 tommasotessarolo staff 41 Oct 3 12:41 Setup.local
-rw-r--r-- 2 tommasotessarolo staff 5378 Oct 3 12:41 Setup.stdlib
drwxr-xr-x 3 tommasotessarolo staff 96 Nov 29 17:05 __pycache__
-rw-r--r-- 2 tommasotessarolo staff 3483 Oct 3 12:41 config.c
-rw-r--r-- 2 tommasotessarolo staff 1752 Oct 3 12:41 config.c.in
-rwxr-xr-x 2 tommasotessarolo staff 15358 Oct 3 12:41 install-sh
-rwxr-xr-x 2 tommasotessarolo staff 9262 Oct 3 12:41 makesetup
-rwxr-xr-x 1 tommasotessarolo staff 2067 Nov 29 17:05 python-config.py
-rw-r--r-- 2 tommasotessarolo staff 2720 Oct 3 12:41 python.o
it seems that python-config with conda returns an incorrect directory to pass to the linker. I have added a workaround/hack inside the module. You can try 1.8.1 version.
@hmenyus OK thanks now it works!
Hi – I'm trying to install node-calls-python using conda as env manager for Python on Mac and I have the following issue:
the problem seams to be here --> ld: library 'python3.11' not found
any advice?