With your virtual environment active, install Jupyter with the local instance of pip. Your command prompt will now read something like this: ( my_project_env) host:~/ my_project_dir$.Īt this point, you’re ready to install Jupyter into this virtual environment. Your prompt should change to indicate that you are now operating within a Python virtual environment. We can use this to install and configure an isolated Python environment for Jupyter.īefore we install Jupyter, we need to activate the virtual environment. Inside, it will install a local version of Python and a local version of pip. This will create a directory called my_project_env within your my_project_dir directory. For the purpose of this tutorial, we’ll call it my_project_env but you should call it something that is relevant to your project. Within the project directory, we’ll create a Python virtual environment. We’ll call this my_project_dir, but you should use a name that is meaningful for you and what you’re working on. Create and move into a directory where we can keep our project files. With virtualenv installed, we can start forming our environment. The -H flag ensures that the security policy sets the home environment variable to the home directory of the target user. Upgrade pip and install the package by typing: To do this, we first need access to the virtualenv command which we can install with pip. We will install Jupyter into this virtual environment. Now that we have Python 3, its header files, and pip ready to go, we can create a Python virtual environment to manage our projects. Step 2 - Create a Python Virtual Environment for Jupyter We can now move on to setting up a Python virtual environment into which we’ll install Jupyter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |