Hello!
I'm working on a MacBook M2 machine, with MacOS 14.6. I want to access my anaconda python distribution located in /opt/anaconda3/ from Stata 17.0
In stata python search does not see any anaconda environment, but only
Python environments found:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/Current/bin/python3
/usr/bin/python3
When I set exec with
python set exec /opt/anaconda3/envs/envforstata/bin/python
and then I run python within stata I get the following error
dlopen(/opt/anaconda3/envs/envforstata/lib/libpython3.8.dylib, 0x0009): tried: '/opt/anaconda3/envs/envforstata/lib/libpython3.8.dylib ' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/anaconda3/envs/envforstata/lib/libpython3.8.dylib' (no such file), '/opt/anaconda3/envs/envforstata/lib/libpython3.8.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))
failed to load the shared library /opt/anaconda3/envs/envforstata/lib/libpython3.8.dylib.
r(7100);
(I've tried with different python versions and always got a similar error)
If on the terminal I run arch, I get
arm64
as expected
Any idea? many thanks in advance
Lorenzo
I'm working on a MacBook M2 machine, with MacOS 14.6. I want to access my anaconda python distribution located in /opt/anaconda3/ from Stata 17.0
In stata python search does not see any anaconda environment, but only
Python environments found:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/Current/bin/python3
/usr/bin/python3
When I set exec with
python set exec /opt/anaconda3/envs/envforstata/bin/python
and then I run python within stata I get the following error
dlopen(/opt/anaconda3/envs/envforstata/lib/libpython3.8.dylib, 0x0009): tried: '/opt/anaconda3/envs/envforstata/lib/libpython3.8.dylib ' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/anaconda3/envs/envforstata/lib/libpython3.8.dylib' (no such file), '/opt/anaconda3/envs/envforstata/lib/libpython3.8.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))
failed to load the shared library /opt/anaconda3/envs/envforstata/lib/libpython3.8.dylib.
r(7100);
(I've tried with different python versions and always got a similar error)
If on the terminal I run arch, I get
arm64
as expected
Any idea? many thanks in advance
Lorenzo
Comment