Piotr Grzesik
Pragmatic Coders
(https://github.com/pyenv/pyenv)
~ pip install virtualenv
~ virtualenv /path/to/env
Python < 3.3
~ pyvenv /path/to/env
Python 3.3 i wyżej (deprecated od wersji 3.6)
Rekomendowane od wersji 3.5
~ python3 -m venv /path/to/env
Aktywacja utworzonego virtualenva
~ source /path/to/env/bin/activate
Deaktywacja utworzonego virtualenva
~ deactivate
(https://github.com/pyenv/pyenv-virtualenv)
pip install package
pip install 'package>=1.0'
pip install package==1.0
pip install -r requirements.txt
pip uninstall package
pip list
pip list --outdated
pip freeze
pip freeze > requirements.txt
pip show package
pip search "query"
(https://github.com/conda/conda)
(https://github.com/jazzband/pip-tools)
(https://github.com/pypa/pipfile)
[dev-packages]
pytest = "*"
mock = "*"
"delegator.py" = "*"
toml = "*"
Sphinx = "*"
[packages]
pew = ">=0.1.26"
{
"_meta": {
"hash": {
"sha256": "b22d25806ebb5d3050975a015bcdf85cc363a550216e4bf16eec5a6194e99007"
},
"sources": [
{
"url": "https://pypi.python.org/simple",
"verify_ssl": true
}
]
},
"default": {
"appdirs": {
"version": "==1.4.3"
},
(...)
"virtualenv-clone": {
"version": "==0.2.6"
}
},
"develop": {
"Babel": {
"version": "==2.3.4"
},
(...)
"toml": {
"version": "==0.9.2"
}
}
}
(https://github.com/kennethreitz/pipenv)
@p_grzesik
pj.grzesik@gmail.com