时间能否重来一次 發表於 2019-8-28 23:18:00

deepin 15.11 成功安装 jupyter notebook

<h5 id="系统环境">系统环境:</h5>
<ul>
<li>OS:deepin 15.11(均为系统默认配置)</li>
<li>Anaconda Distribution 64位(x86)安装程序(517 MB)</li>
</ul>
<p>Jupyter 官方提供三种安装方式:conda、pip、python 能力有限使用 pip、python 的方式没有安装成功,尝试使用 Anaconda Distribution 库的 conda 命令在 deepin系统中实现自动化快速部署 jupyter notebook。</p>
<p>Jupyter 官方安装文档连接</p>
<p>conda 官方下载地址建议使用第三方工具下载很快然后导入到系统</p>
<p>conda 官方安装文档</p>
<hr>
<h4 id="安装过程">安装过程:</h4>
<p>1、安装 Anaconda Distribution</p>
<pre><code>sudo wget https://repo.anaconda.com/archive/Anaconda3-2019.07-Linux-x86_64.sh

bash Anaconda3-2019.07-Linux-x86_64.sh
</code></pre>
<pre><code>python@python-PC:~/Desktop$ bash Anaconda3-2019.07-Linux-x86_64.sh

Welcome to Anaconda3 2019.07

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
&gt;&gt;&gt; 回车
&gt;&gt;&gt; 省略大段说明
&gt;&gt;&gt; 回车
cryptography
    A Python library which exposes cryptographic recipes and primitives.

直到这里提示输入 yes

Do you accept the license terms?
&gt;&gt;&gt; yes
Anaconda3 will now be installed into this location:
/home/python/anaconda3

- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below

&gt;&gt;&gt; 回车
PREFIX=/home/python/anaconda3


</code></pre>
<p>2、等待安装过程结束。(不要离开电脑,初始化选项超时会默认为NO)</p>
<pre><code>zlib               pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3
zstd               pkgs/main/linux-64::zstd-1.3.7-h0b5b093_0


Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init?
&gt;&gt;&gt; yes    注意这里

no change   /home/python/anaconda3/condabin/conda
no change   /home/python/anaconda3/bin/conda
no change   /home/python/anaconda3/bin/conda-env
no change   /home/python/anaconda3/bin/activate
no change   /home/python/anaconda3/bin/deactivate
no change   /home/python/anaconda3/etc/profile.d/conda.sh
no change   /home/python/anaconda3/etc/fish/conf.d/conda.fish
no change   /home/python/anaconda3/shell/condabin/Conda.psm1
no change   /home/python/anaconda3/shell/condabin/conda-hook.ps1
no change   /home/python/anaconda3/lib/python3.7/site-packages/xontrib/conda.xsh
no change   /home/python/anaconda3/etc/profile.d/conda.csh
no change   /home/python/.bashrc
No action taken.
If you'd prefer that conda's base environment not be activated on startup,
   set the auto_activate_base parameter to false:

conda config --set auto_activate_base false

Thank you for installing Anaconda3!

===========================================================================

Anaconda and JetBrains are working together to bring you Anaconda-powered
environments tightly integrated in the PyCharm IDE.

PyCharm for Anaconda is available at:
https://www.anaconda.com/pycharm

</code></pre>
<p>3、立即生效.bashrc</p>
<pre><code>source ~/.bashrc
</code></pre>
<p>4、执行conda 安装 jupyter</p>
<pre><code>conda install jupyter
</code></pre>
<p>5、测试</p>
<pre><code>jupyter --version
jupyter notebook -h
</code></pre>
<p>conda 安装参考</p>
<h5 id="问题">问题</h5>
<p>1、没有执行自动初始化处理,重新执行 bash 提示目录存在</p>
<pre><code>Anaconda3 will now be installed into this location:
/home/python/anaconda3

- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below

&gt;&gt;&gt;

ERROR: File or directory already exists: '/home/python/anaconda3'
If you want to update an existing installation, use the -u option.


解决办法删除已安装的目录:

rm -fr /home/python/anaconda3/
</code></pre><br><br>
来源:https://www.cnblogs.com/kuikuixiaoxiangri/p/11427126.html
頁: [1]
查看完整版本: deepin 15.11 成功安装 jupyter notebook