-
Notifications
You must be signed in to change notification settings - Fork 0
Build Python Environment
Tao Chen edited this page Feb 12, 2019
·
5 revisions
$ sudo ./configure --prefix=/usr/local/pythons
$ sudo make
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_dbm _gdbm _ssl
_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 _lzma
For lzma, download source package xz-5.2.4 (there might be problems if use other versions of xz) which in /home/tao/packages/xz-5.2.4.tar.gz, and unzip it by tar xzf xz-5.2.4.tar.gz.
tao@r2d2:/home/envs/packages/xz-5.2.4$ ./configure --prefix=/home/envs/local
XZ Utils 5.2.4
...
tao@r2d2:/home/envs/packages/xz-5.2.4$ make -j4 & make install
Rebuild Python
tao@r2d2:/home/envs/packages/Python-3.7.2$ ./configure --prefix=/home/envs/pythons LDFLAGS="-L/home/envs/local/lib"