Skip to content

Instantly share code, notes, and snippets.

@bencord0
Created November 1, 2018 15:17
Show Gist options
  • Save bencord0/3156b2480901aaf4dc7a6bc85739c9cc to your computer and use it in GitHub Desktop.
Save bencord0/3156b2480901aaf4dc7a6bc85739c9cc to your computer and use it in GitHub Desktop.
bencord0@localhost ~/src/f_or_d $ cat Pipfile
[[source]]
verify_ssl = true
name = "pypi"
url = "https://pypi.python.org/simple"
[requires]
python_version = "3.7"
[packages]
flask = "*"
bencord0@localhost ~/src/f_or_d $ pipenv install --deploy
Creating a virtualenv for this project…
Using /usr/bin/python3.7m (3.7.0) to create virtualenv…
⠋Running virtualenv with interpreter /usr/bin/python3.7m
Using base prefix '/usr'
/home/bencord0/.local/venvs/pipenv/lib/python3.6/site-packages/virtualenv.py:1047: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
New python executable in /home/bencord0/.local/share/virtualenvs/f_or_d-LQovJ7-g/bin/python3.7m
Also creating executable in /home/bencord0/.local/share/virtualenvs/f_or_d-LQovJ7-g/bin/python
Installing setuptools, pip, wheel...done.
Virtualenv location: /home/bencord0/.local/share/virtualenvs/f_or_d-LQovJ7-g
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (719655)!
Installing dependencies from Pipfile.lock (719655)…
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 6/6 — 00:00:02
bencord0@localhost ~/src/f_or_d $ pipenv run python -c 'import flask; import django'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'django'
bencord0@localhost ~/src/f_or_d $ sed -i -e s/flask/django/ Pipfile
bencord0@localhost ~/src/f_or_d $ pipenv sync; pipenv clean
Pipfile.lock (719655) out of date, updating to (7ff369)…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (7ff369)!
Installing dependencies from Pipfile.lock (7ff369)…
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 2/2 — 00:00:03
To activate this project's virtualenv, run the following:
$ pipenv shell
All dependencies are now up-to-date!
Uninstalling 'click'…
Uninstalling 'flask'…
Uninstalling 'itsdangerous'…
Uninstalling 'jinja2'…
Uninstalling 'markupsafe'…
Uninstalling 'werkzeug'…
bencord0@localhost ~/src/f_or_d $ pipenv run python -c 'import flask; import django'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'flask'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment