티스토리 뷰

반응형

Stack Overflow에 자주 검색, 등록되는 문제들과 제가 개발 중 찾아 본 문제들 중에서 나중에도 찾아 볼 것 같은 문제들을 정리하고 있습니다.

Stack Overflow에서 가장 먼저 확인하게 되는 가장 높은 점수를 받은 Solution과 현 시점에 도움이 될 수 있는 가장 최근에 업데이트(최소 점수 확보)된 Solution을 각각 정리하였습니다.

 

아래 word cloud를 통해 이번 포스팅의 주요 키워드를 미리 확인하세요.

Why can I not create a wheel in python?

파이썬에서 왜 휠(wheel)을 생성할 수 없을까요?

 문제 내용 

Here are the commands I am running:

제가 실행한 명령어는 다음과 같습니다.
$ python setup.py bdist_wheel
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'bdist_wheel'

$ pip --version
pip 1.5.6 from /usr/local/lib/python3.4/site-packages (python 3.4)

$ python -c "import setuptools; print(setuptools.__version__)"
2.1

$ python --version
Python 3.4.1

$ which python
/usr/local/bin/python

 

Also, I am running a mac with homebrewed python

그리고, 저는 홈브루 설치된 맥에서 파이썬을 실행하고 있습니다.

 

Here is my setup.py script: https://gist.github.com/cloudformdesign/4791c46fe7cd52eb61cd

여기 제 setup.py 스크립트가 있습니다: https://gist.github.com/cloudformdesign/4791c46fe7cd52eb61cd

 

I'm going absolutely crazy -- I can't figure out why this wouldn't be working.

정말 제 정신이 나갈 것 같습니다 -- 왜 이게 동작하지 않는지 알 수가 없습니다.

 

 

 

 높은 점수를 받은 Solution 

Install the wheel package first:

먼저 휠 패키지를 설치하세요.
pip install wheel

 

The documentation isn't overly clear on this, but "the wheel project provides a bdist_wheel command for setuptools" actually means "the wheel package...".

문서에서 명확하게 나와 있지는 않지만, "the wheel project provides a bdist_wheel command for setuptools"는 실제로 "the wheel package..."를 의미합니다.

 

 

 

 가장 최근 달린 Solution 

Update your pip first:

먼저 pip을 업데이트하세요.
pip install --upgrade pip

 

for Python 3:

Python 3를 사용하는 경우:
pip3 install --upgrade pip

 

 

출처 : https://stackoverflow.com/questions/26664102/why-can-i-not-create-a-wheel-in-python

반응형
댓글
공지사항
최근에 올라온 글