3 ms·
> To get anything done, I need to install python, then install pip, then make a virtual env, then use pip to install the libraries the project needs in the virt
by hprotagonist 6y ago
> To get anything done, I need to install python, then install pip, then make a virtual env, then use pip to install the libraries the project needs in the virtual env, then start the project.
These days i spell that
poetry new myproject && cd myproject
poetry add dep1,dep2,...
poetry install
git init .
gi python && git add .gitignore && git commit -am “first commit”
- baq 6y agohow do you get poetry on the box though?
- hprotagonist 6y agoto develop: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python pip can be used by itself to install a poetry managed project, so just venv/bin/pip install as normal. This is ok-not-great; i’d prefer for python and pypi to put some official funding and weight behind one de-facto 517/518 build system and stabilize things a little. However this is python we’re talking about, so it’ll never happen.
- mxschumacher 6y agoAnd pyenv for the right Python version With poetry init, the tool walks you through project setup
- hprotagonist 6y agoyep, pyenv is step 0 for sanity.