easy_install-3 on RHEL8

Posted on

hello,I install rhel8,when run easy_install-3,it don't run properly,
return:

error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 2] No such file or directory: '/usr/local/lib/python3.6/site-packages/test-easy-install-10560.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/usr/local/lib/python3.6/site-packages/

This directory does not currently exist. Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).

it looks like easy_install-3 default --install-dir is not correct,it should be "/usr/lib/python3.6/site-packages/".

Responses