티스토리 뷰

구글링해서 아래와 같은 방법을 찼았으나 결론적으로는 안된다. 희한한에러들이 나니 아래방법은 쓰지말길 바란다. 그냥 전체 site-package 폴더를 복사하는 방법을 연구중이다.


https://pyinstaller.org/en/stable/installation.html

https://github.com/pyinstaller/pyinstaller/releases

Source code (zip) 다운로드 받았다.
https://github.com/pyinstaller/pyinstaller/archive/refs/tags/v5.2.zip
pyinstaller-5.2.zip 이 다운로드 받아졌다.

C:\Program Files\Python310\Lib\site-packages\pyinstaller-5.2\

여기에다 zip을 풀었고

python setup.py install

하니 아래와 같이 에러가 났다.

Error: Building wheels requires the 'wheel' package. Please 'pip install wheel' then try again.

무한 구글링을 하니

python -m pip download --only-binary :all: --dest . --no-cache <package-name>

이렇게 되어 있어서 그냥 <package-name>에 wheel을 쳐봤다.

python -m pip download --only-binary :all: --dest . --no-cache wheel

그랬더니 아래와 같은 파일이 다온로드 받아졌다.

wheel-0.37.1-py2.py3-none-any.whl

그래서 설치

pip install wheel

설치가 성공적인듯한 메시지가 떳다.

그래서 다시 pyinstaller 설치 시도

python setup.py install

성공적이 였다.
하지만 이건 오프라인설치가 아니라 온라인 설치였다.
그래서 다시 오프라인 설치를 시도
pip install wheel-0.37..whl --no-index

C:\Program Files\Python310\Lib\site-packages\pyinstaller-5.2>pyinstaller
usage: pyinstaller [-h] [-v] [-D] [-F] [--specpath DIR] [-n NAME] [--add-data <SRC;DEST or SRC:DEST>]
[--add-binary <SRC;DEST or SRC:DEST>] [-p DIR] [--hidden-import MODULENAME]
[--collect-submodules MODULENAME] [--collect-data MODULENAME] [--collect-binaries MODULENAME]
[--collect-all MODULENAME] [--copy-metadata PACKAGENAME] [--recursive-copy-metadata PACKAGENAME]
[--additional-hooks-dir HOOKSPATH] [--runtime-hook RUNTIME_HOOKS] [--exclude-module EXCLUDES]
[--key KEY] [--splash IMAGE_FILE] [-d {all,imports,bootloader,noarchive}]
[--python-option PYTHON_OPTION] [-s] [--noupx] [--upx-exclude FILE] [-c] [-w]
[-i <FILE.ico or FILE.exe,ID or FILE.icns or Image or "NONE">] [--disable-windowed-traceback]
[--version-file FILE] [-m <FILE or XML>] [--no-embed-manifest] [-r RESOURCE] [--uac-admin]
[--uac-uiaccess] [--win-private-assemblies] [--win-no-prefer-redirects] [--argv-emulation]
[--osx-bundle-identifier BUNDLE_IDENTIFIER] [--target-architecture ARCH]
[--codesign-identity IDENTITY] [--osx-entitlements-file FILENAME] [--runtime-tmpdir PATH]
[--bootloader-ignore-signals] [--distpath DIR] [--workpath WORKPATH] [-y] [--upx-dir UPX_DIR] [-a]
[--clean] [--log-level LEVEL]
scriptname [scriptname ...]

C:\Program Files\Python310\Lib\site-packages\pyinstaller-5.2>pyinstaller --version
5.2

온라이 pc에서는 되었는데 offline pc에서는
PyInstaller cannot check fir assembly dependencies.
Please install pywin33-ctypes.

pip install pywin33-ctypes.

애러가 났다.



wheel-0.37
0.03MB
pyinstaller-5.2
4.20MB
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함