Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
added info about python on mac (#746)
Browse files Browse the repository at this point in the history
After I had to re-initialize my workbench just realized that we do not cover in the readme how you could work with a different python version than the system default one. 

That is the reason I have added a section how to change the python version away from system python. As I only have a Mac to check I firstly added the mac information based on 

https://opensource.com/article/19/5/python-3-default-mac

But that should be easy adoptable for any linux system.
  • Loading branch information
jalogisch committed Dec 17, 2019
1 parent 3584577 commit 6be3e9f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,27 @@ Now a review of the changes is needed and, finally, it will be merged by the rev
- python (including pip)
- virtualenv (`pip install virtualenv`)
- make
- browser (to preview)
- browser (to preview)

#### Mac & Linux

It is very likely that you already have all needed software available. If not we recommend [homebrew](https://brew.sh/) for Mac and the package manager of the Linux distribution you are using.

##### python install mac

Multiple options are given to deal with python and different versions on a Mac, the recomment and failsafe way is to use [pyenv](https://github.com/pyenv/pyenv) to manage python environments.

> "The basic premise of all Python development is to never use the system Python. You do not want the Mac OS X 'default Python' to be 'python3.' You want to never care about default Python." ([Moshe Zadka](https://opensource.com/users/moshez))
# brew install pyenv
# pyenv install 3.7.5
# pyenv global 3.7.3
# echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc
# echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile

The Version for python might need to be adjusted, at the time of writing this was the most recent version of python. In addition check for other aliases that might do something with python.


##### first time preparation

Clone the repository to your workbench:
Expand Down

0 comments on commit 6be3e9f

Please sign in to comment.