問題タブ [jupyter-lab]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - Install jupyterlab in pip3 throws 'TypeError: expected string or bytes-like object'
Background
I was trying to install Jupyter Lab using
pip3 install jupyterlab
, and it threw the same error.I did not figure it out. Found a workaround using
pip2 install jupyterlab
-- it worked, but clearly was a bandaid fix.tried running
import pandas as pd
in the python3 notebook (inside jupyter lab); module was not found.I am using Cygwin as my linux emulator on a PC.
I prefer python3.x over python 2.7.
My attempts to resolve the issue
Similar reported JupyterLab post - I found this post here: Import pandas on jupyter ipython notebook fails, but I believe the author is using anaconda (which I am not) and the Type Error is different.
I found a post relevant to my TypeError, but that's for a code he's writing: Getting a TypeError: expected string or bytes-like object.
I have a hard time interpreting the Traceback, but here it is below:
Why is the version returned not a string or byte? Is there a bug in my python 3.6 package itself? I am thinking about opening up those files in the traceback to see if I can debug it, but I thought I should ask for help before attempting something that sounds a little ridiculous, imo.
Other things I have tried
pip2 install --upgrade pip
- this returns a message saying pip in python2.7 is up-to-date.
Traceback (pip2):
pip3 install --upgrade pip
- this returns the same TypeError above
Traceback (pip3): see the first Traceback
pip version and python site output