How to install h5py (needed for Keras) on MacOS with M1?
This works for me: $ brew install hdf5 $ export HDF5_DIR=”$(brew –prefix hdf5)” $ pip install –no-binary=h5py h5py
This works for me: $ brew install hdf5 $ export HDF5_DIR=”$(brew –prefix hdf5)” $ pip install –no-binary=h5py h5py
In order to make installing of Ruby versions 2.6.x or 2.7.x successful on M1 MacBook using either rbenv or asdf (asdf is used in this example) follow these steps: Upgrade to the latest version of rbenv or asdf-ruby plugin using your prefered installation method. In my case it’s asdf-ruby installed over homebrew: brew upgrade asdf … Read more
try this: brew install libpq –build-from-source brew install openssl export LDFLAGS=”-L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/libpq/lib” export CPPFLAGS=”-I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/libpq/include” pip3 install psycopg2
For me anyone of this solutions work because, with Xcode 14.2 and RN0.70.5, there is the following 2 files in ios folder which fixe node version with the path (I don’t know since which version and which one adds this files) : .xcode.env .xcode.env.local If you are this files inside ios folder just do this … Read more
This seems to work well, do the following in the terminal export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 And then install whatever package that you wanted to install, in my case I was trying to install firebase admin and I had to run the following pip install firebase-admin Or just run the below command if you just want … Read more
I could install 2.7.18 on M1. brew install pyenv pyenv install 2.7.18 Set the python version. pyenv global 2.7.18 Export PATH if necessary. export PATH=”$(pyenv root)/shims:${PATH}” Add if necessary.: echo ‘PATH=$(pyenv root)/shims:$PATH’ >> ~/.zshrc
I experienced a similar issue but the problem, in my case, is not related to speed but something different. Specifically, if you force your iOS Simulator to run under Rosetta you’ll see that it works as expected. Not sure why, but this is what I’m experiencing. Always reproducible with 1.22.5 (stable). To run in Rosetta, … Read more
Distilling the official directions from Apple (as of 13 July 2022), one would create an environment using the following YAML: tf-metal-arm64.yaml name: tf-metal channels: – apple – conda-forge dependencies: – python=3.9 ## specify desired version – pip – tensorflow-deps ## uncomment for use with Jupyter ## – ipykernel ## PyPI packages – pip: – tensorflow-macos … Read more
If you’re planning to run the image in your laptop, you need to build it for the cpu architecture of that particular machine. You can provide the –platform option to docker build (or even to docker-compose) to define the target platform you want to build the image for. For example: docker build –platform linux/arm64 .
I have installed the G3, G4, and G5 certificates from the Apple certificate authority and that solved my problem https://www.apple.com/certificateauthority/ Edit: G4 Certificate is key for solving the issue.