Skip to content

Commit

Permalink
Merge pull request TakanoTaiga#11 from atinfinity/use-pyenv
Browse files Browse the repository at this point in the history
Change to use pyenv for the package management of Python
  • Loading branch information
TakanoTaiga authored May 30, 2024
2 parents 0f2a458 + 11359ec commit e38c978
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions install_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

## How to install

### Disable System Integrity Protection(SIP)

**You need to disable System Integrity Protection(SIP).** <https://docs.ros.org/en/humble/Installation/Alternatives/macOS-Development-Setup.html#disable-system-integrity-protection-sip>

### Install brew

```bash
Expand All @@ -17,13 +21,24 @@
brew install \
asio assimp bison bullet cmake console_bridge cppcheck \
cunit eigen freetype graphviz opencv openssl orocos-kdl pcre poco \
py3cairo pyqt5 [email protected] qt@5 sip spdlog tinyxml tinyxml2 wget
qt@5 sip spdlog tinyxml tinyxml2 wget tcl-tk
```

```bash
brew uninstall --ignore-dependencies [email protected] qt6
```

```bash
brew install pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> $HOME/.zshrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> $HOME/.zshrc
echo 'eval "$(pyenv init -)"' >> $HOME/.zshrc
pyenv install 3.11.8
pyenv global 3.11.8
pyenv local 3.11.8
source $HOME/.zshrc
```

```bash
python3.11 -m pip install -U pip
python3.11 -m pip install --config-settings="--global-option=build_ext" \
Expand All @@ -36,8 +51,9 @@ python3.11 -m pip install -U \
flake8-class-newline flake8-comprehensions flake8-deprecated \
flake8-docstrings flake8-import-order flake8-quotes \
importlib-metadata lark==1.1.1 lxml matplotlib mock mypy==0.931 netifaces \
nose pep8 psutil pydocstyle pydot pygraphviz pyparsing==2.4.7 \
pytest-mock rosdep rosdistro setuptools==59.6.0 vcstool
nose pep8 psutil pycairo pydocstyle pydot pyparsing==2.4.7 \
PyQt5 pytest-mock rosdep rosdistro setuptools==69.2.0 vcstool
source $HOME/.zshrc
```

```bash
Expand Down

0 comments on commit e38c978

Please sign in to comment.