Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Create the dependencies for installing the conda environment:
conda create --name pyem --clone base conda activate pyem
- Install the FFTW dependencies.
yum install fftw3 --installroot=/root/anaconda3/envs/pyem/lib/python3.8/site-packages wget http://fftw.org/fftw-3.3.8.tar.gz tar xvf fftw-3.3.8.tar.gz cd fftw-3.3.8 ./configure --prefix=/root/anaconda3/envs/pyem/lib/python3.8/site-packages/FFTW --enable-shared --enable-static --enable-fma --enable-neon make -j 32 make install pip3 install pyfftw --trusted-host mirrors.tools.huawei.com -i http://mirrors.tools.huawei.com/pypi/simple
- Install the dependencies of healpy, pathos, natsort, and numpy.
conda update --all conda install -c conda-forge healpy pathos conda install natsort numpy==1.20.1
- Decompress the pyem installation package.
tar xvf pyem-0.5.tar.gz
- Go to the directory generated after the decompression.
cd pyem-0.5
- Install pyem.
pip3 install --no-dependencies -e .
After the installation is successful, the message "Successfully installed pyem" is displayed.
- Modify the projection_subtraction.py file.
- Open the projection_subtraction.py file.
vi projection_subtraction.py
- Press i to enter the edit mode and delete version="projection_subtraction.py 2.1b" from line 291.
Before the modification:
291 parser = argparse.ArgumentParser(version="projection_subtraction.py 2.1b")
After the modification:
291 parser = argparse.ArgumentParser()
- Press Esc, type :wq!, and press Enter to save the settings and exit.
- Open the projection_subtraction.py file.
Parent topic: pyem v0.5 Porting Guide (CentOS 8.2)