Loading [MathJax]/jax/output/CommonHTML/config.js
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >宏宏的学习笔记Day3 Linux环境下的软件安装

宏宏的学习笔记Day3 Linux环境下的软件安装

原创
作者头像
咕咚咕叽
发布于 2024-04-15 13:06:40
发布于 2024-04-15 13:06:40
4550
举报

1.wget命令

下载miniconda至服务器

代码语言:zshell
AI代码解释
复制
(base) bio05@ecm-cefa:~/biosoft$ wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh
--2024-04-15 20:15:18--  https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh
Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.15.130, 2402:f000:1:400::2
Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 144041912 (137M) [application/octet-stream]
Saving to: ‘Miniconda3-latest-Linux-x86_64.sh’

Miniconda3-latest-L 100%[===================>] 137.37M  3.02MB/s    in 44s     

2024-04-15 20:16:03 (3.09 MB/s) - ‘Miniconda3-latest-Linux-x86_64.sh’ saved [144041912/144041912]

2.安装miniconda

代码语言:zshell
AI代码解释
复制
(base) bio05@ecm-cefa:~/biosoft$ bash Miniconda3-latest-Linux-x86_64.sh

Welcome to Miniconda3 py312_24.1.2-0

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 
END USER LICENSE AGREEMENT

This Anaconda End User License Agreement ("EULA") is between Anaconda, Inc., ("A
naconda"), and you ("You" or
"Customer"), the individual or entity acquiring and/or providing access to the A
naconda On-Premise Products. The EULA
governs your on-premise access to and use of Anaconda's downloadable Python and 
R distribution of conda, conda-build,
Python, and over 200 open-source scientific packages and dependencies ("Anaconda
 Distribution"); Anaconda's data science
and machine learning platform (the "Platform"); and Anaconda's related Software,
 Documentation, Content, and other
related desktop services, including APIs, through which any of the foregoing are
 provided to You (collectively, the
"On-Premise Products"). Capitalized terms used in these EULA and not otherwise d
efined herein are defined at
https://legal.anaconda.com/policies/en/?name=anaconda-legal-definitions.

AS SET FORTH IN SECTION 1 BELOW, THERE ARE VARIOUS TYPES OF USERS FOR THE ON-PRE
MISE PRODUCTS, THUS, EXCEPT WHERE
INDICATED OTHERWISE "YOU" SHALL REFER TO CUSTOMER AND ALL TYPES OF USERS. YOU AC
KNOWLEDGE THAT THIS EULA IS BINDING, AND
YOU AFFIRM AND SIGNIFY YOUR CONSENT TO THIS EULA, BY : (I) CLICKING A BUTTON OR 

Do you accept the license terms? [yes|no]
>>> yes

Miniconda3 will now be installed into this location:
/home/bio05/miniconda3

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

[/home/bio05/miniconda3] >>> 
PREFIX=/home/bio05/miniconda3
Unpacking payload ...
                                                                                
Installing base environment...


Downloading and Extracting Packages:


Downloading and Extracting Packages:

Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish to update your shell profile to automatically initialize conda?
This will activate conda on startup and change the command prompt when activated.
If you'd prefer that conda's base environment not be activated on startup,
   run the following command when conda is activated:

conda config --set auto_activate_base false

You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>> yes
no change     /home/bio05/miniconda3/condabin/conda
no change     /home/bio05/miniconda3/bin/conda
no change     /home/bio05/miniconda3/bin/conda-env
no change     /home/bio05/miniconda3/bin/activate
no change     /home/bio05/miniconda3/bin/deactivate
no change     /home/bio05/miniconda3/etc/profile.d/conda.sh
no change     /home/bio05/miniconda3/etc/fish/conf.d/conda.fish
no change     /home/bio05/miniconda3/shell/condabin/Conda.psm1
no change     /home/bio05/miniconda3/shell/condabin/conda-hook.ps1
no change     /home/bio05/miniconda3/lib/python3.12/site-packages/xontrib/conda.xsh
no change     /home/bio05/miniconda3/etc/profile.d/conda.csh
no change     /home/bio05/.bashrc
No action taken.
Thank you for installing Miniconda3!

3.激活miniconda

代码语言:zshell
AI代码解释
复制
source ~/.bashrc

4.查看服务器上安装的所有软件列表

conda list

代码语言:zshell
AI代码解释
复制
(base) bio05@ecm-cefa:~/biosoft$ conda list
# packages in environment at /home/bio05/miniconda3:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
_openmp_mutex             5.1                       1_gnu  
archspec                  0.2.1              pyhd3eb1b0_0  
boltons                   23.0.0          py312h06a4308_0  
brotli-python             1.0.9           py312h6a678d5_7  
bzip2                     1.0.8                h7b6447c_0  
c-ares                    1.19.1               h5eee18b_0  
ca-certificates           2023.12.12           h06a4308_0  
certifi                   2024.2.2        py312h06a4308_0  
cffi                      1.16.0          py312h5eee18b_0  
charset-normalizer        2.0.4              pyhd3eb1b0_0  
conda                     24.1.2          py312h06a4308_0  
conda-content-trust       0.2.0           py312h06a4308_0  
conda-libmamba-solver     23.12.0            pyhd3eb1b0_1  
conda-package-handling    2.2.0           py312h06a4308_0  
conda-package-streaming   0.9.0           py312h06a4308_0  
cryptography              41.0.7          py312hdda0065_0  
distro                    1.8.0           py312h06a4308_0  
expat                     2.5.0                h6a678d5_0  
fmt                       9.1.0                hdb19cb5_0  
icu                       73.1                 h6a678d5_0  
idna                      3.4             py312h06a4308_0  
jsonpatch                 1.32               pyhd3eb1b0_0  
jsonpointer               2.1                pyhd3eb1b0_0  
krb5                      1.20.1               h143b758_1  
ld_impl_linux-64          2.38                 h1181459_1  
libarchive                3.6.2                h6ac8c49_2  
libcurl                   8.5.0                h251f7ec_0  
libedit                   3.1.20230828         h5eee18b_0  
libev                     4.33                 h7f8727e_1  
libffi                    3.4.4                h6a678d5_0  
libgcc-ng                 11.2.0               h1234567_1  
libgomp                   11.2.0               h1234567_1  
libmamba                  1.5.3                haf1ee3a_0  
libmambapy                1.5.3           py312h2dafd23_0  
libnghttp2                1.57.0               h2d74bed_0  
libsolv                   0.7.24               he621ea3_0  
libssh2                   1.10.0               hdbd6064_2  
libstdcxx-ng              11.2.0               h1234567_1  
libuuid                   1.41.5               h5eee18b_0  
libxml2                   2.10.4               hf1b16e4_1  
lz4-c                     1.9.4                h6a678d5_0  
menuinst                  2.0.2           py312h06a4308_0  
ncurses                   6.4                  h6a678d5_0  
openssl                   3.0.13               h7f8727e_0  
packaging                 23.1            py312h06a4308_0  
pcre2                     10.42                hebb0a14_0  
pip                       23.3.1          py312h06a4308_0  
platformdirs              3.10.0          py312h06a4308_0  
pluggy                    1.0.0           py312h06a4308_1  
pybind11-abi              4                    hd3eb1b0_1  
pycosat                   0.6.6           py312h5eee18b_0  
pycparser                 2.21               pyhd3eb1b0_0  
pysocks                   1.7.1           py312h06a4308_0  
python                    3.12.1               h996f2a0_0  
readline                  8.2                  h5eee18b_0  
reproc                    14.2.4               h295c915_1  
reproc-cpp                14.2.4               h295c915_1  
requests                  2.31.0          py312h06a4308_1  
ruamel.yaml               0.17.21         py312h5eee18b_0  
setuptools                68.2.2          py312h06a4308_0  
sqlite                    3.41.2               h5eee18b_0  
tk                        8.6.12               h1ccaba5_0  
tqdm                      4.65.0          py312he106c6f_0  
truststore                0.8.0           py312h06a4308_0  
tzdata                    2023d                h04d1e81_0  
urllib3                   2.1.0           py312h06a4308_1  
wheel                     0.41.2          py312h06a4308_0  
xz                        5.4.5                h5eee18b_0  
yaml-cpp                  0.8.0                h6a678d5_0  
zlib                      1.2.13               h5eee18b_0  
zstandard                 0.19.0          py312h5eee18b_0  
zstd                      1.5.5                hc292b87_0  

5.设置镜像

代码语言:zhsell
AI代码解释
复制
(base) bio05@ecm-cefa:~$ # 使用北外的镜像
(base) bio05@ecm-cefa:~$ conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/bioconda/
(base) bio05@ecm-cefa:~$ conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge/
(base) bio05@ecm-cefa:~$ conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/free/
(base) bio05@ecm-cefa:~$ conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/
(base) bio05@ecm-cefa:~$ conda config --set show_channel_urls yes

6.安装fastqc软件

conda install fastqc -y

代码语言:zhsell
AI代码解释
复制
(base) bio05@ecm-cefa:~$ conda install fastqc -y
Channels:
 - https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
 - https://mirrors.bfsu.edu.cn/anaconda/pkgs/free
 - https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge
 - https://mirrors.bfsu.edu.cn/anaconda/cloud/bioconda
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/bio05/miniconda3

  added / updated specs:
    - fastqc


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    archspec-0.2.3             |     pyhd3eb1b0_0          47 KB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    ca-certificates-2024.3.11  |       h06a4308_0         127 KB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    conda-24.3.0               |  py312h06a4308_0         1.2 MB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    dbus-1.13.18               |       hb2f20db_0         504 KB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    fastqc-0.12.1              |       hdfd78af_0        11.1 MB  https://mirrors.bfsu.edu.cn/anaconda/cloud/bioconda
    font-ttf-dejavu-sans-mono-2.37|       hd3eb1b0_0         335 KB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    fontconfig-2.14.1          |       h4c34cd2_2         281 KB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    freetype-2.12.1            |       h4a9f257_0         626 KB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    gdbm-1.18                  |       hd4cb3f1_4         194 KB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    glib-2.78.4                |       h6a678d5_0         508 KB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    glib-tools-2.78.4          |       h6a678d5_0         115 KB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    libglib-2.78.4             |       hdc74915_0         1.5 MB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    libiconv-1.16              |       h7f8727e_2         736 KB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    libpng-1.6.39              |       h5eee18b_0         304 KB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    libxcb-1.15                |       h7f8727e_0         505 KB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    openjdk-11.0.13            |       h87a67e3_0       341.0 MB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    perl-5.34.0                |       h5eee18b_2        12.4 MB  https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
    ------------------------------------------------------------
                                           Total:       371.4 MB

The following NEW packages will be INSTALLED:

  dbus               anaconda/pkgs/main/linux-64::dbus-1.13.18-hb2f20db_0 
  fastqc             anaconda/cloud/bioconda/noarch::fastqc-0.12.1-hdfd78af_0 
  font-ttf-dejavu-s~ anaconda/pkgs/main/noarch::font-ttf-dejavu-sans-mono-2.37-hd3eb1b0_0 
  fontconfig         anaconda/pkgs/main/linux-64::fontconfig-2.14.1-h4c34cd2_2 
  freetype           anaconda/pkgs/main/linux-64::freetype-2.12.1-h4a9f257_0 
  gdbm               anaconda/pkgs/main/linux-64::gdbm-1.18-hd4cb3f1_4 
  glib               anaconda/pkgs/main/linux-64::glib-2.78.4-h6a678d5_0 
  glib-tools         anaconda/pkgs/main/linux-64::glib-tools-2.78.4-h6a678d5_0 
  libglib            anaconda/pkgs/main/linux-64::libglib-2.78.4-hdc74915_0 
  libiconv           anaconda/pkgs/main/linux-64::libiconv-1.16-h7f8727e_2 
  libpng             anaconda/pkgs/main/linux-64::libpng-1.6.39-h5eee18b_0 
  libxcb             anaconda/pkgs/main/linux-64::libxcb-1.15-h7f8727e_0 
  openjdk            anaconda/pkgs/main/linux-64::openjdk-11.0.13-h87a67e3_0 
  perl               anaconda/pkgs/main/linux-64::perl-5.34.0-h5eee18b_2 

The following packages will be UPDATED:

  archspec           pkgs/main::archspec-0.2.1-pyhd3eb1b0_0 --> anaconda/pkgs/main::archspec-0.2.3-pyhd3eb1b0_0 
  ca-certificates    pkgs/main::ca-certificates-2023.12.12~ --> anaconda/pkgs/main::ca-certificates-2024.3.11-h06a4308_0 
  conda              pkgs/main::conda-24.1.2-py312h06a4308~ --> anaconda/pkgs/main::conda-24.3.0-py312h06a4308_0 



Downloading and Extracting Packages:
                                                                                
Preparing transaction: done                                                     
Verifying transaction: done                                                     
Executing transaction: done   

7.查看当前conda环境

conda info -envs

(前面带*的就是当前激活的)

代码语言:zshell
AI代码解释
复制
(base) bio05@ecm-cefa:~$ conda info --envs
# conda environments:
#
base                  *  /home/bio05/miniconda3

8.创建名为rnaseq的conda环境,指定python版本是3

conda create -n rna-seq python=3 fastqc trimmomatic -y

代码语言:zshell
AI代码解释
复制
(base) bio05@ecm-cefa:~$ conda create -n rna-seq python=3 fastqc trimmomatic -y 
Channels:                                                                       
 - https://mirrors.bfsu.edu.cn/anaconda/pkgs/main                               
 - https://mirrors.bfsu.edu.cn/anaconda/pkgs/free                               
 - https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge                       
 - https://mirrors.bfsu.edu.cn/anaconda/cloud/bioconda                          
 - defaults                                                                     
Platform: linux-64                                                              
Collecting package metadata (repodata.json): done                               
Solving environment: done                                                       
                      
## Package Plan ##

  environment location: /home/bio05/miniconda3/envs/rna-seq

  added / updated specs:
    - fastqc
    - python=3
    - trimmomatic
代码语言:zshell
AI代码解释
复制
(base) bio05@ecm-cefa:~$ conda info --envs
# conda environments:
#
base                  *  /home/bio05/miniconda3
rna-seq                  /home/bio05/miniconda3/envs/rna-seq

9.激活新的conda环境

代码语言:zshell
AI代码解释
复制
(base) bio05@ecm-cefa:~$ conda activate rna-seq
(rna-seq) bio05@ecm-cefa:~$ fastqc
Exception in thread "main" java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
	at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:208)
	at java.desktop/java.awt.Window.<init>(Window.java:549)
	at java.desktop/java.awt.Frame.<init>(Frame.java:423)
	at java.desktop/java.awt.Frame.<init>(Frame.java:388)

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
暂无评论
推荐阅读
编辑精选文章
换一批
Day3-李泽平-Linux环境下的软件安装
目的:安装64位最新版本(Miniconda3-py39_24.1.2-0-Linux-x86_64.sh)
用户11040033
2024/03/25
3110
Day3-阿婷
(base) bio02@ecm-cefa:~$ conda remove fastqc -y
阿婷ating
2023/11/30
1980
Day3 linux安装生信软件
找后缀.sh的点击并复制下载链接(一定要.sh而不是.exe,sh是脚本脚本的意思,我因为搞了个.exe一直错 笑哭)
海雀
2024/03/06
3580
linux环境下的软件安装
进入网址:https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/
用户11155150
2024/06/09
4930
Day3_linux的软件安装
首先在浏览器中输入https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/,找到最新版本64位,右键复制链接,然后登录服务器,然后创建一个目录,在目录下在wget后将链接复制,点击Enter,下载过后,在bash后加上安装包名称,进行安装,按q跳过它们,按q不动的地方按回车,看到问问题,就回答一个yes,按回车,注意回答yes,不然就会失败。
用户11154325
2024/06/10
1560
Day3——Linux环境中的软件安装
1.通过miniconda 清华镜像uname -a务必通过此代码查看服务器位数查找适合自己的版本,注意区分X86_64与ppc64le的区别
掩扉先生
2023/10/22
2590
day5-linux环境下的软件安装
在https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/
瑹蘼不向阳
2024/05/12
1490
学习小组Day3笔记—linux环境下的软件安装
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/bioconda/
我一米七七a
2023/04/02
6350
学习小组Day3笔记—linux环境下的软件安装
Day-3 Linux环境下安装软件
1.进入https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/
用户11039713
2024/03/24
2200
PyTorch的安装与使用
PyTorch是一个非常常用的AI框架,主要归功于其简单易用的特点,深受广大科研人员的喜爱。在前面的一篇文章中我们介绍过制作PyTorch的Singularity镜像的方法,这里我们单独抽出PyTorch的安装和使用,再简单的聊一聊。
DechinPhy
2024/05/09
4520
PyTorch的安装与使用
day3-Linux软件安装
miniconda是conda的精华版本,里面包含了conda、python和基础包
于是没有洗头
2024/10/23
1630
day3-Linux软件安装
day3-乙醇-linux环境下的软件安装
作用就相当于App store,miniconda是conda的精华版,足够日常生信使用
用户10917298
2024/01/17
1780
学习小组DAY3-Creep
今天学习的是linux环境下的软件安装,因为花花老师的教程特别棒,所以操作上基本没出现特别难的地方。
用户10816509
2023/11/02
2630
day3-linux环境下的软件安装-土
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/bioconda/
用户10633738
2023/06/29
1580
conda安装pytorch1.10.1+paddlepaddle-gpu2.2.1+cuda10.2+cudnn7.6.5
参考: paddle安装指导 torch安装指导 TensorFlow 2.x GPU版在conda虚拟环境下安装步骤 pip/conda导出 requirements.txt 注意事项 pip安装pytorch1.10.1+paddlepaddle-gpu2.2.1+cuda10.2+cudnn7.6.5
Michael阿明
2022/03/10
1.4K0
DAY3-linux环境下的软件安装
用户10663401
2023/07/22
3140
生信星球 学习小组Day3笔记--Linux的软件安装 高小能
Conda 是 linux 系统中最方便快捷的下载器,两个版本:建议安装miniconda版
用户10633522
2023/06/28
3270
DAY3-Linux环境下的软件安装
Conda是一个开源的软件包管理系统和环境管理系统,主要用于Python程序,但也可以用于其他编程语言。它能够跨平台运行,支持多种操作系统,如Linux、OS X和Windows。Conda主要用于安装和管理软件包及其依赖关系,可以在不同环境中轻松切换,使得软件包的安装和管理更加方便。
用户11039705
2024/03/24
2010
生信入门课DAY3--向逸一
(下载链接https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh)
向11
2023/02/09
3900
DAY3-白雪
之后会出现more,是还有更多,让enter翻页的意思,持续按enter,第一个enter下来是空白行,不要担心继续往下按,直到出现
用户10300557
2023/01/11
4690
相关推荐
Day3-李泽平-Linux环境下的软件安装
更多 >
LV.0
这个人很懒,什么都没有留下~
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档