Python - 윈디하나의 솔라나라
|
windy@wl ~/src $ wget https://www.python.org/ftp/python/3.12.6/Python-3.12.6.tar.xz
windy@wl ~/src $ tar xvfJ Python-3.12.6.tar.xz
windy@wl ~/src $ cd Python-3.12.6
windy@wl ~/src/Python-3.12.6 $ CC=gcc CXX=g++ ./configure PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/64/pkgconfig \
CFLAGS="-m64 -I/usr/local/include/ncursesw -I/usr/local/include -D_XOPEN_SOURCE=700" \
CPPFLAGS="-I/usr/local/include/ncursesw -I/usr/local/include" \
LDFLAGS="-m64 -L/usr/local/lib -lresolv -lsocket -lnsl -liconv -lncursesw" \
--prefix=/usr/local/python --with-openssl=/usr/local/ssl
...
configure:
If you want a release build with all stable optimizations active (PGO, etc),
please run ./configure --enable-optimizations
configure: WARNING:
Platform "x86_64-pc-solaris2.11" with compiler "gcc" is not supported by the
CPython core team, see https://peps.python.org/pep-0011/ for more information.
windy@wl ~/src/Python-3.12.6 # make -j 4
...
Checked 111 modules (31 built-in, 79 shared, 1 n/a on solaris-2.11-i86pc.64bit, 0 disabled, 0 missing, 0 failed on import) 1)
windy@wl ~/src/Python-3.12.6 $ sudo gmake install
1) 솔라리스에 설치할 수 없는 윈도관련 모듈(
winreg — Windows registry access,
msvcrt — Useful routines from the MS VC++ runtime,
winsound — Sound-playing interface for Windows
)
설치되었으면 아래와 같이 확인해보자.
windy@wl ~ $ /usr/local/python/bin/python3 Python 3.12.6 (main, Sep 9 2024, 00:00:00) [GCC 11.2.0] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> Ctrl+D
windy@wl ~ $ mkdir pythonvenv windy@wl ~ $ cd pythonvenv windy@wl ~/pythonvenv $ /usr/local/python/bin/python3 -m venv tutorial-env가상환경을 사용하려면 activate 스크립트를 실행하면 된다. 제대로 실행되었다면 프롬프트 앞에 가상환경 이름이 붙는다.
windy@wl ~/pythonvenv $ . tutorial-env/bin/activate (tutorial-env) windy@wl ~/pythonvenv $
(tutorial-env) windy@wl ~/pythonvenv $ pip install Pillow (tutorial-env) windy@wl ~/pythonvenv $ pip install requests아쉽게도 PyTorch 나 Numpy 가 설치안된다.
RSS ATOM XHTML 5 CSS3 |
Copyright © 2004-2024 Jo HoSeok. All rights reserved. |