linux安装jupyter主题出现jt命令未找到
pip3 install jupyterythemes正常命令安装安装在:‘/home/username/.local/lib/python3.6/site-packages/jupyterthemes/init.py’但是这样安装会出现jt命令未找到推测原因是:import syssys.path[’’, ‘/usr/lib/python36.zip’, ‘/usr/lib/...
pip3 install jupyterythemes
正常命令安装安装在:
‘/home/username/.local/lib/python3.6/site-packages/jupyterthemes/init.py’
但是这样安装会出现jt命令未找到
推测原因是:
import sys
sys.path
[’’, ‘/usr/lib/python36.zip’, ‘/usr/lib/python3.6’, ‘/usr/lib/python3.6/lib-dynload’, ‘/home/zqgu/.local/lib/python3.6/site-packages’, ‘/usr/local/lib/pyt
hon3.6/dist-packages’, ‘/usr/lib/python3/dist-packages’]
一共有这么多的python3 包安装环境。
经过查找发现
sudo -H python3 -m pip install jupyterthemes
可以使得jt命令有效
但是jupyterthemes安装环境是在
/usr/lib/python3/dist-packages
安装包的地方不同。目前还在学习中,对于这些不同包的位置不同,敬请指正。
参考:
https://stackoverflow.com/questions/50009119/jupyter-notebook-jt-command-not-found?newreg=3ed79ac5c79742cbbc840c4010c612a3
更多推荐
所有评论(0)