deepin 15.11 成功安裝 jupyter notebook


系統環境:
  • OS:deepin 15.11(均為系統默認配置)
  • Anaconda Distribution 64位(x86)安裝程序(517 MB)

Jupyter 官方提供三種安裝方式:conda、pip、python 能力有限使用 pip、python 的方式沒有安裝成功,嘗試使用 Anaconda Distribution 庫的 conda 命令在 deepin系統中實現自動化快速部署 jupyter notebook。

Jupyter 官方安裝文檔連接

conda 官方下載地址 建議使用第三方工具下載很快然后導入到系統

conda 官方安裝文檔


安裝過程:

1、安裝 Anaconda Distribution

sudo wget https://repo.anaconda.com/archive/Anaconda3-2019.07-Linux-x86_64.sh

bash Anaconda3-2019.07-Linux-x86_64.sh
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
>>> 回車
>>> 省略大段說明
>>> 回車
cryptography
    A Python library which exposes cryptographic recipes and primitives.

直到這里提示輸入 yes

Do you accept the license terms? [yes|no]
[no] >>> 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

[/home/python/anaconda3] >>> 回車
PREFIX=/home/python/anaconda3


2、等待安裝過程結束。(不要離開電腦,初始化選項超時會默認為NO)

  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? [yes|no]
[no] >>> 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

3、立即生效.bashrc

source ~/.bashrc

4、執行conda 安裝 jupyter

conda install jupyter

5、測試

jupyter --version
jupyter notebook -h

conda 安裝參考

問題

1、沒有執行自動初始化處理,重新執行 bash 提示目錄存在

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

[/home/python/anaconda3] >>> 

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/


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM