程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Shengxin experiment record (Part1) -- Python interpreter specifying virtual environment for jupyter

編輯:Python

Learning notes , For reference only , If there is a mistake, it must be corrected


by Jupyter Specifies the of the virtual environment Python Interpreter

introduction

Last week, I began to do the experiment of student letter , In order not to interfere with the original environment of the computer , The whole virtual environment ( Please refer to Django From theory to practice (part1)– A virtual environment ), After configuring the experimental environment , I don't know how to Jupyter Notebook Of the virtual environment specified in python Interpreter , After searching for information ( by Jupyter Notebook Specifies the of the virtual environment Python Interpreter ), Solving questions , Write down this .

Implementation steps

First , Open my virtual environment :

In a virtual environment stagate_env Install in ipykernel library :

pip install ipykernel

If you download a package , Very slow , Even slow enough to report an error , You can download it using the image , For example, I often use Tsinghua mirror :

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ipykernel

towards jupyter Add virtual environment to , Name it python37:

python -m ipykernel install --python37

open jupyter notebook, You can see New Drop down menu , More python37.

Create good after , We can start running the experiment .


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved