https://github.com/kanziw/learn-python
https://github.com/kanziw/learn-python
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kanziw/learn-python
- Owner: kanziw
- License: mit
- Created: 2018-12-27T04:10:48.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-03T05:18:54.000Z (almost 7 years ago)
- Last Synced: 2025-01-17T07:34:19.688Z (11 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# learn-python
## Python version 관리
> using pyenv [link1](https://github.com/pyenv/pyenv) [link2](https://github.com/pyenv/pyenv/issues/1219)
```bash
# Install pyenv
❯ brew install pyenv
❯ pyenv versions
* system (set by /Users/kanziw/.pyenv/version)
# List available versions
❯ pyenv install --list
Available versions:
2.1.3
2.2.3
2.3.7
2.4
2.4.1
...
❯ pyenv install 3.7.1
# 실패한다면 아래 명령어 수행 후 다시 시도
❯ xcode-select --install
❯ sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
❯ pyenv versions
* system (set by /Users/kanziw/.pyenv/version)
3.7.1
```
## Project 별 Python version 관리
> using `.python-version`
```bash
❯ echo 'eval "$(pyenv init -)"' >> ~/.zshrc
# at each project
❯ echo "3.7.1" >> .python-version
```