我正在尝试在docker环境中的cenos7.4上安装python3.6.7。
step 0: yum install -y wget tar libffi-devel zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make initscripts
step 1: tar -zxvf python3.6.7_xxx.tar.gz
step 2: cd python3.6.7_xxx
step 3: ./configure prefix=/usr/local/python3
step 4: make
step 6: make install
在执行步骤6时,发生错误,日志为:
Could not install packages due to an EnvironmentError: [Errno 39] Directory not empty: '/tmp/pip-install-2le7y8cr/setuptools/pkg_resources'
错误后,找不到目录/tmp/pip-install-2le7y8cr/setuptools/pkg_resources
。