linux上安装bluesky的步骤

1、设备上安装的操作系统如下:

orangepi@orangepi5b:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy

2、在用户家目录下创建一个目录miniconda3目录,并且进入此目录:

orangepi@orangepi5b:~$ mkdir miniconda3
orangepi@orangepi5b:~$ cd miniconda3/

3、从anaconda官网下载Miniconda3-latest-Linux-aarch64.sh:

orangepi@orangepi5b:~/miniconda3$ ls
Miniconda3-latest-Linux-aarch64.sh

4、以下命令快速地安装minconda程序:

orangepi@orangepi5b:~/miniconda3$  bash Miniconda3-latest-Linux-aarch64.sh -b -u -p ~/miniconda3/
PREFIX=/home/orangepi/miniconda3
Unpacking payload ...

Installing base environment...


Downloading and Extracting Packages:


Downloading and Extracting Packages:

Preparing transaction: done
Executing transaction: done
installation finished.

5、在安装后,初始化你新安装地minconda。以下命令对bash shell进行初始化:

orangepi@orangepi5b:~/miniconda3$ bin/conda init bash
no change     /home/orangepi/miniconda3/condabin/conda
no change     /home/orangepi/miniconda3/bin/conda
no change     /home/orangepi/miniconda3/bin/conda-env
no change     /home/orangepi/miniconda3/bin/activate
no change     /home/orangepi/miniconda3/bin/deactivate
no change     /home/orangepi/miniconda3/etc/profile.d/conda.sh
no change     /home/orangepi/miniconda3/etc/fish/conf.d/conda.fish
no change     /home/orangepi/miniconda3/shell/condabin/Conda.psm1
no change     /home/orangepi/miniconda3/shell/condabin/conda-hook.ps1
no change     /home/orangepi/miniconda3/lib/python3.11/site-packages/xontrib/conda.xsh
no change     /home/orangepi/miniconda3/etc/profile.d/conda.csh
modified      /home/orangepi/.bashrc

==> For changes to take effect, close and re-open your current shell. <==

orangepi@orangepi5b:~/miniconda3$ source ~/.bashrc

6、使用conda创建一个全新的软件环境:

(base) orangepi@orangepi5b:~/miniconda3$ bin/conda create -n bluesky-tutorials python=3.7
Channels:
 - defaults
Platform: linux-aarch64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/orangepi/miniconda3/envs/bluesky-tutorials

  added / updated specs:
    - python=3.7


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    certifi-2022.12.7          |   py37hd43f75c_0         149 KB
    openssl-1.1.1w             |       h2f4d8fa_0         3.7 MB
    pip-22.3.1                 |   py37hd43f75c_0         2.7 MB
    python-3.7.16              |       h89984f6_0        44.8 MB
    setuptools-65.6.3          |   py37hd43f75c_0         1.1 MB
    wheel-0.38.4               |   py37hd43f75c_0          63 KB
    ------------------------------------------------------------
                                           Total:        52.5 MB

The following NEW packages will be INSTALLED:

......

Proceed ([y]/n)? y


Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate bluesky-tutorials
#
# To deactivate an active environment, use
#
#     $ conda deactivate

7、激活以上创建的软件环境:

(base) orangepi@orangepi5b:~/miniconda3$ conda activate bluesky-tutorials
(bluesky-tutorials) orangepi@orangepi5b:~/miniconda3$

8、需要git。你可以使用conda安装此软件:

(bluesky-tutorials) orangepi@orangepi5b:~/miniconda3$ conda install git
Channels:
 - defaults
Platform: linux-aarch64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/orangepi/miniconda3/envs/bluesky-tutorials

  added / updated specs:
    - git


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    curl-8.2.1                 |       h581cc77_0          85 KB
    expat-2.5.0                |       h419075a_0         151 KB
    gdbm-1.18                  |       hf59d7a7_4         205 KB
    gettext-0.21.0             |       h0cce8dc_1         3.3 MB
    git-2.40.1                 | pl5340h0779aa8_1        13.1 MB
    krb5-1.20.1                |       ha2725d6_1         1.5 MB
    libcurl-8.2.1              |       h79326fa_0         415 KB
    libnghttp2-1.52.0          |       h5192db0_1         730 KB
    libssh2-1.10.0             |       h581cc77_2         315 KB
    perl-5.34.0                |       h998d150_2        12.5 MB
    ------------------------------------------------------------
                                           Total:        32.2 MB

The following NEW packages will be INSTALLED:

 ......


Proceed ([y]/n)? Y


Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

9、确保pip,setuptools和numpy是最新的。这帮你在以下步骤中某些陷阱:

(bluesky-tutorials) orangepi@orangepi5b:~/miniconda3$  python -m pip install --upgrade pip setuptools numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
......
Installing collected packages: setuptools, pip, numpy
  Attempting uninstall: setuptools
    Found existing installation: setuptools 65.6.3
    Uninstalling setuptools-65.6.3:
      Successfully uninstalled setuptools-65.6.3
  Attempting uninstall: pip
    Found existing installation: pip 22.3.1
    Uninstalling pip-22.3.1:
      Successfully uninstalled pip-22.3.1
Successfully installed numpy-1.21.6 pip-24.0 setuptools-68.0.0

10、安装pyepics, jupyter和matplotlib:

(bluesky-tutorials) orangepi@orangepi5b:~/miniconda3$ python -m pip install jupyter matplotlib  pyepics bluesky -i https://pypi.tuna.tsinghua.edu.cn/simple

11、复制仓库:

(bluesky-tutorials) orangepi@orangepi5b:~/miniconda3$ git clone https://github.com/bluesky/tutorials

12、安装所需条件:

(bluesky-tutorials) orangepi@orangepi5b:~/miniconda3/tutorials$ python -m pip install -r binder/requirements-dev.txt
(bluesky-tutorials) orangepi@orangepi5b:~/miniconda3/tutorials$ python -m pip install -e ./bluesky-tutorial-utils  -i https://pypi.tuna.tsinghua.edu.cn/simple
(bluesky-tutorials) orangepi@orangepi5b:~/miniconda3/tutorials$ python -m pip install bluesky   -i https://pypi.tuna.tsinghua.edu.cn/simple
(bluesky-tutorials) orangepi@orangepi5b:~/miniconda3/tutorials$ python -m pip install databroker   -i https://pypi.tuna.tsinghua.edu.cn/simple
(bluesky-tutorials) orangepi@orangepi5b:~/miniconda3/tutorials$ python -m pip install ophyd   -i https://pypi.tuna.tsinghua.edu.cn/simple

13、启动jupyter

(bluesky-tutorials) orangepi@orangepi5b:~/miniconda3/tutorials$ jupyter notebook

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值