Python 工具箱系列 (6):为jupyter notebook中添加虚拟环境

image

1
2
3
4
5
6
7
8
9
# 建立虚拟环境scrapy
mkvirtualenv scrapy
# 进入虚拟环境scrapy
workon scrapy
# 安装jupyter,具体操作略过
(scrapy) pip install jupyter
# 安装ipykernel,添加kernel
(scrapy) pip install ipykernel
(scrapy) python -m ipykernel install --user --name scrapy --display-name "Python2(scrapy)"
觉得还不错?赞助一下~
0%