내에서 맥 OS X에 어떤 모듈 이름 setuptools.command : 여기ImportError를보기 : VIRTUALENV 내 맥 OSX에 파이썬 PIP 패키지 (장고 나머지 프레임 워크 문서, <a href="https://pypi.python.org/pypi/drfdocs/" rel="nofollow noreferrer"><code>drfdocs</code></a>)를 설치하려고 VIRTUALENV
이 핍 관련 버전이 없습니다 , 파이썬, easy_install을 : 나는 다른 스택 오버플로에서의 각종 수정을 시도
$ pip install drfdocs
Downloading/unpacking drfdocs
Downloading drfdocs-0.0.11.tar.gz (771kB): 771kB downloaded
Running setup.py (path:/Users/me/.virtualenvs/test/build/drfdocs/setup.py) egg_info for package drfdocs
Traceback (most recent call last):
File "<string>", line 3, in <module>
ImportError: No module named setuptools.command
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 3, in <module>
ImportError: No module named setuptools.command
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /Users/me/.virtualenvs/test/build/drfdocs
Storing debug log for failure in /Users/me/.pip/pip.log
가응답 : 여기
$ virtualenv --version
1.11.4
$ mkvirtualenv test
New python executable in test/bin/python
Installing setuptools, pip...done.
(test)$ python --version; which python
Python 2.7.10
/Users/me/.virtualenvs/test/bin/python
(test)$ pip --version; which pip
pip 1.5.4 from /Users/me/.virtualenvs/test/lib/python2.7/site-packages (python 2.7)
/Users/me/.virtualenvs/test/bin/pip
(test)$ easy_install --version; which easy_install
setuptools 2.2
/Users/me/.virtualenvs/test/bin/easy_install
(test)$ python -c "import setuptools.command; print setuptools.command"
<module 'setuptools.command' from '/Users/me/.virtualenvs/test/lib/python2.7/site-packages/setuptools/command/__init__.pyc'>
그리고 오류 발생,하지만 아무도 효과가 없습니다.
$ pip install -U setuptools
도 도움이되지 않았습니다.
편집 : 요청으로 :
(test)$ python -c "import setuptools; print setuptools.__file__; print setuptools.__version__"
/Users/me/.virtualenvs/test/lib/python2.7/site-packages/setuptools/__init__.pyc
2.2
편집 # 2 : 지금 내가 pip==8.1.2
에있어 너무 pip install pip --upgrade
을 시도했다. 이 비록 일어나는 이유
(test)$ python
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import setuptools
>>> exit()
(test)$ pip --version
pip 8.1.2 from /Users/me/.virtualenvs/test/lib/python2.7/site-packages (python 2.7)
(test)$ pip install drfdocs
Collecting drfdocs
Using cached drfdocs-0.0.11.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named setuptools
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/kc/00fkv5q91vz815b2jycc8cv40000gn/T/pip-build-olnkAD/drfdocs/
아직도 이해가되지 않습니다 : 내가 설치하려고 할 때
는 지금은 약간 다른 오류가 발생합니다.
'pip freeze' 때, 결과에서 setuptools를 볼 수 있습니까? –
파이썬 대화 형 셸에서이 스 니펫의 출력은 무엇입니까? 'import setuptools; setuptools .__ file__; setuptools .__ version__' –
@ Justin : 아니에요. 내 "테스트"virtualenv에 대해서만 "wsgiref == 0.1.2"가 표시됩니다. – lollercoaster