Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 659f597

Browse files
authored
Add troubleshooting instructions (GoogleCloudPlatform#4510)
Adding troubleshooting instructions for some errors when trying to install a python version. ## Checklist - [ ] I have followed [Sample Guidelines from AUTHORING_GUIDE.MD](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md) - [ ] README is updated to include [all relevant information](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#readme-file) - [ ] **Tests** pass: `nox -s py-3.6` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup)) - [ ] **Lint** pass: `nox -s lint` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup)) - [ ] These samples need a new **API enabled** in testing projects to pass (let us know which ones) - [ ] These samples need a new/updated **env vars** in testing projects set to pass (let us know which ones) - [ ] Please **merge** this PR for me once it is approved. - [ ] This sample adds a new sample directory, and I updated the [CODEOWNERS file](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/.github/CODEOWNERS) with the codeowners for this sample
1 parent 948696d commit 659f597

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

MAC_SETUP.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ test their code.
9393
$ pyenv install 3.8.1
9494
```
9595

96+
> ℹ️ *Note*: If you are getting errors installing a python version,
97+
> try setting up the `SDKROOT` environment variable.
98+
>
99+
> ```console
100+
> # You can add this to your .bashrc file.
101+
> export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
102+
> ```
103+
96104
1. After you have installed a python version through pyenv,
97105
verify that you are now using the pyenv Python shim.
98106

0 commit comments

Comments
 (0)