在centos 7.4上安装python 3.6.7时,由于EnvironmentError而无法安装软件包

时间:2020-05-21 11:37:01

标签: python-3.x

我正在尝试在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

0 个答案:

没有答案