如何在没有sudo的情况下在Linux上安装Python 3.7依赖项

时间:2019-07-13 06:31:49

标签: linux python-3.x install

我正在尝试从Red Hat Enterprise Linux 6上的源代码构建Python 3.7.4。

首先,我从源代码构建了OpenSSL 1.1.1

$ ./config --prefix=/tools7/openssl --openssldir=/tools7/ssl

成功。然后我尝试构建Python:

$ LDFLAGS="-L/tools7/openssl/lib" ./configure --prefix=/tools7/python3 --enable-optimizations --with-openssl=/tools7/openssl
$ make

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_uuid                                                          
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc                  atexit                pwd                
time                                                           


Failed to build these modules:
_ctypes                                                        

1:我尚不清楚为什么构建_uuid失败。有什么建议吗?

$ find /usr/include -name uuid.h
/usr/include/pgsql/server/utils/uuid.h
/usr/include/linux/uuid.h

2:使安装失败

$ make install
ModuleNotFoundError: No module named '_ctypes'
make: *** [install] Error 1

我一直在寻找解决方案,他们说“使用apt /等添加依赖项”。我没有sudo,所有建议都需要它。

_ctypes的依赖性是什么?如何在不使用sudo的情况下安装它们?

0 个答案:

没有答案