Windows 10: 安装Anaconda和Jupyter

This tutorial contains two parts,first it is to download Anaconda (A package manager tool, which contains conda command, then it is  to use conda commmand to intall jupyter.

 

PART 1   ANACONDA

1.DOWNLOAD

From  https://www.anaconda.com/distribution/ choose Python 3.7 version, then you will get a document named 'Anaconda3'.

2.OPEN

Find a file called 'Anaconda Prompt', and open it, then you will get a window as the following.

You can check the Anaconda version to see if it is intalled properly. Use the conmmand below.

conda --version

3.CREAT ENVIROMENT

Normally, we would like to creat a new enviroment(folder) to start our work, you can use the following command to creat a new work path.(Folder name'snowflakes' and install a package 'biopython' into it)

conda create --name snowflakes biopython

Then we need to activate the new enviroment(change the basic work path).

conda activate snowflakes    (for conda versions on or later than 4.6)


activate snowflakes   (for conda versions prior to 4.6)


************************************
conda update conda  (You can always use this command to update versions )


After activation, you enviroment will change to the following.

By now, we have successfully installed Anaconda.

Detailed and offiicial turorial reference: https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html

 

 

PART 2  JUPYTER

Use the following command to install jupyter.

conda install -c conda-forge jupyterlab

Then checkthe version of it to check if it has been installed.

jupyter notebook --version

Once it shows a proper version, use the following command , and it will automatically open jupyter in your browser。

jupyter lab

*****ATTENTION****

If it returns  'implementerror' error, go and find a folder in called 'tornado', then get into 'platform'.(C:\Users\Pc\Anaconda3\envs\snowflakes\Lib\site-packages\tornado\platform)

Find a file called 'asyncio.py',open it using txt. Add the following code after 'import asyncio'.

asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

Save it and try jupyter opening command again.

 

For detailed tutorial :https://jupyterlab.readthedocs.io/en/stable/getting_started/installation.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值