(base) muyun@muyun:~/Downloads$ bash eman2.91_sphire1.4_sparx.linux64.sh
Welcome to EMAN2-SPHIRE-SPARX combined
EMAN2-SPHIRE-SPARX will now be installed into this location:
/home/muyun/eman2-sphire-sparx
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/muyun/eman2-sphire-sparx] >>>
PREFIX=/home/muyun/eman2-sphire-sparx
Unpacking payload ...
Collecting package metadata (current_repodata.json): done
Solving environment: done
安装完毕 conda初始化
installation finished.
Do you wish the installer to initialize EMAN2-SPHIRE-SPARX
by running conda init? [yes|no]
[no] >>> yes
no change /home/muyun/eman2-sphire-sparx/condabin/conda
no change /home/muyun/eman2-sphire-sparx/bin/conda
no change /home/muyun/eman2-sphire-sparx/bin/conda-env
no change /home/muyun/eman2-sphire-sparx/bin/activate
no change /home/muyun/eman2-sphire-sparx/bin/deactivate
no change /home/muyun/eman2-sphire-sparx/etc/profile.d/conda.sh
no change /home/muyun/eman2-sphire-sparx/etc/fish/conf.d/conda.fish
no change /home/muyun/eman2-sphire-sparx/shell/condabin/Conda.psm1
no change /home/muyun/eman2-sphire-sparx/shell/condabin/conda-hook.ps1
no change /home/muyun/eman2-sphire-sparx/lib/python3.7/site-packages/xontrib/conda.xsh
no change /home/muyun/eman2-sphire-sparx/etc/profile.d/conda.csh
modified /home/muyun/.bashrc
==> For changes to take effect, close and re-open your current shell. <==
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
验证:
(base) muyun@muyun:~/Downloads$ conda activate /home/muyun/eman2-sphire-sparx
(/home/muyun/eman2-sphire-sparx) muyun@muyun:~/Downloads$ conda list
(/home/muyun/eman2-sphire-sparx) muyun@muyun:~/eman2-sphire-sparx/bin$ python
Python 3.7.9 (default, Aug 31 2020, 12:42:55)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import EMAN2
>>> print(EMAN2.print(EMANVERSION))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'EMAN2' has no attribute 'print'
>>> print(EMAN2.EMANVERSION)
EMAN 2.91 final
from EMAN2 import *
img = EMData("testOK.mrc", 0)
img.write_image("copy.mrc") #write a copy of the image on the disk
img.read_image("testOK2.mrc", 0)
img.write_image("copy2.mrc") #write a copy of the image on the disk