Skip to content

ptwright/windows-python-dev-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 

Repository files navigation

windows-python-dev-setup

WSL2

  • install dependencies:
sudo apt install -y make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl libncurses5-dev \
libncursesw5-dev xz-utils libffi-dev liblzma-dev unixodbc-dev libpq-dev \
libsnappy-dev git
  • install pyenv:
curl https://pyenv.run | bash
  • configure ~/.profile (before any reference to ~/.bashrc if sourced)
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
  • configure ~/.bashrc
eval "$(pyenv init -)"
  • using pyenv to install python
    • list available versions:
    $ pyenv install --list
    • install
    $ pyenv install -v 3.x.x
    • list installed versions
    $ pyenv versions
    • set global version
    $ pyenv global 3.x.x
    • set local version (in project directory)
    $ pyenv local 3.x.x
  • Creation of virtual environments
python -m venv ~/.venv/venv-name
  • Activate
source /path/to/env/name-of-env/bin/activate
  • in '~' directory
    • 'projects' sub-directory - code stored here
    • '.venv' sub-directory - virtual environments stored here

IDE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors