Git – Should Pipfile.lock be committed to version control?
Short – Yes! The lock file tells pipenv exactly which version of each dependency needs to be installed. You will have consistency across all machines. // update: Same question on github
Short – Yes! The lock file tells pipenv exactly which version of each dependency needs to be installed. You will have consistency across all machines. // update: Same question on github
I get that error constantly. Clearing the cache in the lock file works beautifully every time. $ pipenv lock –pre –clear
PIPENV_VENV_IN_PROJECT is an environment variable, just set it (the value doesn’t matter, but must not be empty). Make sure to export it so child processes of the shell can see it: export PIPENV_VENV_IN_PROJECT=1 This causes the virtualenv to be created in the .venv directory next to the Pipfile file. Use unset PIPENV_VENV_IN_PROJECT to remove the … Read more
To elaborate on Williams’ answer a bit more, the expected workflow is to enter the virtualenv using pipenv shell. When you activate the virtualenv that way, the console output now indicates to use exit: Spawning environment shell (/bin/zsh). Use ‘exit’ to leave. Trying to exit the virtualenv with deactivate will leave pipenv in a confused … Read more
The following should give you the paths $ pipenv –where /home/wonder/workspace/myproj $ pipenv –venv /home/wonder/PyEnvs/myproj-BKbQCeJj
Just tried the following with success. In your project folder: pipenv install ipykernel pipenv shell This will bring up a terminal in your virtualenv like this: (my-virtualenv-name) bash-4.4$ In that shell do: python -m ipykernel install –user –name=my-virtualenv-name Launch jupyter notebook: jupyter notebook In your notebook, Kernel -> Change Kernel. Your kernel should now be … Read more
This fixed it for me: sudo -H pip install -U pipenv
You can run the pipenv command with the –rm option as in: pipenv –rm This will remove the virtualenv created for you under ~/.virtualenvs See https://pipenv.kennethreitz.org/en/latest/cli/#cmdoption-pipenv-rm