4 ms·
Pipenv is not bad. I switched to it in about 30 minutes. To start a new project: pipenv --three To add packages: pipenv install <package> pipen
by bb88 9y ago
Pipenv is not bad. I switched to it in about 30 minutes.
To start a new project:
pipenv --three
To add packages:
pipenv install <package>
pipenv install -d <development packages>
pipenv install -r requirements.txt
Then check in your Pipfile and Pipfile.lock.
When someone makes a fresh checkout, they cd to where the Pipfile and Pipfile.lock are and run:
pipenv install
When you're ready to update your dependencies do the following:
rm Pipfile.lock
pipenv update (-d to load development packages)
To get a shell, cd to where the Pipfile of your project is:
pipenv shell
To run something in the virtualenv when the virtualenv is not activated:
pipenv run <command>