1
0
mirror of https://github.com/balkian/gists.git synced 2024-11-22 01:32:29 +00:00
This commit is contained in:
J. Fernando Sánchez 2019-03-21 16:07:11 +01:00 committed by GitHub
parent ca55b51129
commit f803f9701e

View File

@ -6,12 +6,13 @@
"metadata": {},
"outputs": [],
"source": [
"try:\n",
" import bitter\n",
"except ImportError:\n",
" import pip\n",
" pip.main(['install', '--user', 'bitter'])\n",
" import bitter\n",
"# Install a pip package in the current Jupyter kernel.\n",
"import sys\n",
"import site\n",
"usersite = site.getusersitepackages()\n",
"if usersite not in sys.path:\n",
" sys.path.append(usersite)\n",
"!{sys.executable} -m pip install --user -r requirements.txt",
"import os"
]
},