Skip to content

Instantly share code, notes, and snippets.

@fud
Forked from sio2boss/python-init.sh
Created October 12, 2018 04:33
Show Gist options
  • Save fud/723ed2051cea8f57f51476cb4ceea1e7 to your computer and use it in GitHub Desktop.
Save fud/723ed2051cea8f57f51476cb4ceea1e7 to your computer and use it in GitHub Desktop.
Getting started on the right foot with python
# For linux python 3 instructions see https://gist.github.com/softwaredoug/a871647f53a0810c55ac
# Install python manager
brew install pyenv
# Install virtual environment manager
brew install pyenv-virtualenv
# Update your .zshrc
# Install latest python
pyenv install 3.6.0
pyenv local 3.6.0
python --version
# pipenv
pip install pipenv
# Create a project
mkdir MyPythonProject && cd MyPythonProject
pipenv --three
# Install dependencies
pipenv install tensorflow matplotlib jupyter Pillow ggplot seaborn
# To run python do
pipenv shell
python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment