인터넷이 차단된 환경에서 뭔가 환경 구성을 하려고 하면 wheel 파일로 하는데.

wheel 파일 설치를 위한 pip도 없는 경우가 있다 -_-;


wheel을 어떻게 설치 하지라고 뒤져보면 다들 pip로 해서 wheel을 하라는데 ㅋ

그걸 모르는 건 아니라서 -_-;


이리저리 구글을 뒤져 봤더니 역시 답이

https://stackoverflow.com/questions/36132350/install-python-wheel-file-without-using-pip


# 일단 pip wheeel파일은 있어야 한다.
# wget으로 받든 받아서 ftp로 집어 넣든 받는 과장은 생략 하고
# setuptools wheel을 설치한다면 다음과 같이 할 수 있다.
# pip wheel은 pip-9.0.3-py2.py3-none-any.whl이고
# setuptools wheel은 setuptools-39.0.1-py2.py3-none-any.whl이다.
$ python pip-9.0.3-py2.py3-none-any.whl/pip install --no-index setuptools-39.0.1-py2.py3-none-any.whl
Processing ./setuptools-39.0.1-py2.py3-none-any.whl
Installing collected packages: setuptools
Successfully installed setuptools-39.0.1
# pip없이 pip wheel로 pip
$ python pip-9.0.3-py2.py3-none-any.whl/pip install --no-index pip-9.0.3-py2.py3-none-any.whl

wheel파일을 통해 바로 명령어를 사용하는 것인데 !

이렇게 하여 잘 설치는 완료 물론 이렇게 해서 pip도 설치 가능하다

pip wheel을 통해 pip wheel을 설치 -ㅅ-;


+ Recent posts