[Anaconda][Linux] Redhat install anaconda with python36

  • OS Version: Redhat 7.7
  • Python Version: 3.6.8
  • Anaconda Version: 2019.07


cd ~/
bash Anaconda3-2019.07-Linux-x86_64.sh

but, you probably will get this kind of error message,

[60669] Error loading Python lib '/tmp/_MEI9OJcJw/libpython3.6m.so.1.0': dlopen: /tmp/_MEI9OJcJw/libpython3.6m.so.1.0: failed to map segment from shared object: Operation not permitted
ERROR: could not extract tar starting at offset 000000000000020980+9231072+2

the reason is the tmp directory have noexec permission, we can check the mount of permission.

mount | grep /tmp

/dev/mapper/tmp on /tmp type xfs (rw,nosuid,nodev,noexec,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/var_tmp on /var/tmp type xfs (rw,relatime,seclabel,attr2,inode64,noquota)

you can see /tmp directory do not have exec permission, so we have to make a temparory directory for anaconda's install.

mkdir TMPconda
mkdir ~/.conda
TMP=~/TMPconda bash Anaconda3-2019.07-Linux-x86_64.sh

Sometimes .conda directory won't be created, so the environments.txt file will create failed. To prevent that you can create directory by yourself.


Unable to install 2019.07, but can install 2019.03. Error "could not extract tar starting at offset..." #11154

Anaconda Troubleshooting

Add a Comment