You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Setup guide for dev environment on Apple Silicon.
2
2
3
-
A guide to setup a development environment using Homebrew, Python 3.9.1 & 3.8.6, Pyenv, Poetry, Tensorflow, Numpy and Pandas on new Apple Silicon M1 macs running Big Sur 11.1. Note that while working through this guide, it's best practice to restart your terminal after each installation / major change affecting your .zshrc file.
3
+
A guide to setup a development environment using Homebrew, Python 3.9.1 & 3.8.6, Pyenv, Poetry, Tensorflow, Numpy and Pandas, Scipy on new Apple Silicon M1 macs running Big Sur 11.1. Note that while working through this guide, it's best practice to restart your terminal after each installation / major change affecting your .zshrc file.
- create a `packages` folder inside your new poetry project
152
152
- extract then copy all of the `whl` files from the apple tensorflow release into the `your_new_project/packages/` folder
153
-
- download the [Repack of apples tensorflow](https://github.com/rybodiddly/Poetry-Pyenv-Homebrew-Numpy-TensorFlow-on-Apple-Silicon-M1/releases/download/2.4.0rc0-Repack/tensorflow-2.4.0rc0-cp38-cp38-macosx_11_0_arm64.whl) from the releases section of this repository and copy it into the `your_new_project/packages/` folder (the Repack resolves dependency issues and includes a rebuild of pandas for M1)
153
+
- download the [Repack of apples tensorflow](https://github.com/rybodiddly/Poetry-Pyenv-Homebrew-Numpy-TensorFlow-on-Apple-Silicon-M1/releases/download/2.4.0rc0-Repack/tensorflow-2.4.0rc0-cp38-cp38-macosx_11_0_arm64.whl) from the releases section of this repository and copy it into the `your_new_project/packages/` folder (the Repack resolves dependency issues and includes a rebuild of pandas, scipy and pillow for M1)
154
154
- edit the `[tool.poetry.dependencies]` section of the `project.toml` file inside your project folder to look like this:
- also note the version python is set to `^3.8`, this is important for apples packages, as they are not compatible with `3.9`
166
168
- Note: if you want all your poetry projects to default to `3.8` instead of `3.9`, just use `pyenv local 3.8.6` in the base directory where you create and house your poetry projects. Or you could use `pyenv global 3.8.6`. Your call.
0 commit comments