06-18-2020, 06:07 AM
(This post was last modified: 06-18-2020, 06:09 AM by JasonG-FR.
Edit Reason: fixed the formatting
)
I assume that you're using Debian, so there is a possibility that you aren't using python3. For some distributions `python` defaults to python2 while others to python3 and Jupyter lab only works with Python >= 3.5.
Try to run `pip --version` in a terminal and check if you can see python 3 in the output. Here is mine on Manjaro:
If you see python 2.7, you should try to use pip3 instead:
I've successfully installed Jupyter lab using pipenv (it creates virtual environments for python projects):
1. Install pipenv with `sudo apt install pipenv`.
2. Open a terminal and cd to your project folder.
3. Run `pipenv --three` to create a new python3 virtual environment for your project.
4. Run `pipenv install jupyterlab` to install jupyterlab. This can take a few minutes to complete on the PineBook Pro.
5. Run `pipenv run jupyter lab` to start Jupyter lab.
Try to run `pip --version` in a terminal and check if you can see python 3 in the output. Here is mine on Manjaro:
Code:
pip 20.0.2 from /usr/lib/python3.8/site-packages/pip (python 3.8)
If you see python 2.7, you should try to use pip3 instead:
Code:
pip3 install --user jupyterlab
I've successfully installed Jupyter lab using pipenv (it creates virtual environments for python projects):
1. Install pipenv with `sudo apt install pipenv`.
2. Open a terminal and cd to your project folder.
3. Run `pipenv --three` to create a new python3 virtual environment for your project.
4. Run `pipenv install jupyterlab` to install jupyterlab. This can take a few minutes to complete on the PineBook Pro.
5. Run `pipenv run jupyter lab` to start Jupyter lab.