• 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

  1. sudo wget https://repo.anaconda.com/archive/Anaconda3-2019.07-Linux-x86_64.sh
  2. bash Anaconda3-2019.07-Linux-x86_64.sh
  1. python@python-PC:~/Desktop$ bash Anaconda3-2019.07-Linux-x86_64.sh
  2. Welcome to Anaconda3 2019.07
  3. In order to continue the installation process, please review the license
  4. agreement.
  5. Please, press ENTER to continue
  6. >>> 回车
  7. >>> 省略大段说明
  8. >>> 回车
  9. cryptography
  10. A Python library which exposes cryptographic recipes and primitives.
  11. 直到这里提示输入 yes
  12. Do you accept the license terms? [yes|no]
  13. [no] >>> yes
  14. Anaconda3 will now be installed into this location:
  15. /home/python/anaconda3
  16. - Press ENTER to confirm the location
  17. - Press CTRL-C to abort the installation
  18. - Or specify a different location below
  19. [/home/python/anaconda3] >>> 回车
  20. PREFIX=/home/python/anaconda3

2、等待安装过程结束。(不要离开电脑,初始化选项超时会默认为NO)

  1. zlib pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3
  2. zstd pkgs/main/linux-64::zstd-1.3.7-h0b5b093_0
  3. Preparing transaction: done
  4. Executing transaction: done
  5. installation finished.
  6. Do you wish the installer to initialize Anaconda3
  7. by running conda init? [yes|no]
  8. [no] >>> yes 注意这里
  9. no change /home/python/anaconda3/condabin/conda
  10. no change /home/python/anaconda3/bin/conda
  11. no change /home/python/anaconda3/bin/conda-env
  12. no change /home/python/anaconda3/bin/activate
  13. no change /home/python/anaconda3/bin/deactivate
  14. no change /home/python/anaconda3/etc/profile.d/conda.sh
  15. no change /home/python/anaconda3/etc/fish/conf.d/conda.fish
  16. no change /home/python/anaconda3/shell/condabin/Conda.psm1
  17. no change /home/python/anaconda3/shell/condabin/conda-hook.ps1
  18. no change /home/python/anaconda3/lib/python3.7/site-packages/xontrib/conda.xsh
  19. no change /home/python/anaconda3/etc/profile.d/conda.csh
  20. no change /home/python/.bashrc
  21. No action taken.
  22. If you\'d prefer that conda\'s base environment not be activated on startup,
  23. set the auto_activate_base parameter to false:
  24. conda config --set auto_activate_base false
  25. Thank you for installing Anaconda3!
  26. ===========================================================================
  27. Anaconda and JetBrains are working together to bring you Anaconda-powered
  28. environments tightly integrated in the PyCharm IDE.
  29. PyCharm for Anaconda is available at:
  30. https://www.anaconda.com/pycharm

3、立即生效.bashrc

  1. source ~/.bashrc

4、执行conda 安装 jupyter

  1. conda install jupyter

5、测试

  1. jupyter --version
  2. jupyter notebook -h

conda 安装参考

1、没有执行自动初始化处理,重新执行 bash 提示目录存在

  1. Anaconda3 will now be installed into this location:
  2. /home/python/anaconda3
  3. - Press ENTER to confirm the location
  4. - Press CTRL-C to abort the installation
  5. - Or specify a different location below
  6. [/home/python/anaconda3] >>>
  7. ERROR: File or directory already exists: \'/home/python/anaconda3\'
  8. If you want to update an existing installation, use the -u option.
  9. 解决办法删除已安装的目录:
  10. rm -fr /home/python/anaconda3/

版权声明:本文为kuikuixiaoxiangri原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/kuikuixiaoxiangri/p/11427126.html