Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 2.65 KB

references.md

File metadata and controls

64 lines (42 loc) · 2.65 KB

Useful things

pyenv useful commands


  • pyenv commands - list commands

  • pyenv install --list - list available python versions (and more)

  • pyenv install -v 3.8.2 - install a python version

  • pyenv uninstall 3.8.2 - uninstall a python version

  • Remove all pyenvs rm -rf ~/.pyenv/versions - remove all python version installed with pyenv

  • pyenv versions - show installed python versions

  • pyenv version - show current python version

  • pyenv which python

  • pyenv which pip

  • pyenv local 3.8.2 set the current python for the project

  • pyenv shell 3.9-dev runa

  • pyenv virtualenv 3.8.2 pycli-python3.8.2 create a virtualenv

  • pyenv virtualenvs show all virtual environments

How to create the source and wheel distributions

  • python -m pip install --upgrade pip setuptools wheel upgrade pip, setuptools and wheel

  • python setup.py sdist bdist_wheel create the distributions

Python useful commands

  • run pip with python python -m pip --version

  • test the installation with builtin tests python -m test

Documentation references