저는 이제 Windows 7 (64 비트) Lenovo t61p 노트북에 Python 2.6을 설치했습니다.Windows 7, 64 비트에서 easy_install을 사용하는 데 문제가 있습니다. (python.exe를 찾을 수 없습니다)
나는 Sphinx 및 nose를 다운로드 분명히 제대로 (적어도 오류가 설치 중에보고되지 않았다)
python setup.py install
를 사용하여 설치했습니다.
pymongo을 설치하려고하는데 easy_install
을 사용하고 있지만별로 성공하지 못했습니다. easy_install
이 전혀 작동하지 않는 것 같습니다. 내가 관리자로 easy_install
을 실행
C:\>easy_install
Cannot find Python executable C:\Program Files\Python26\python.exe
경로 C:\Program Files\Python26\python.exe
가 올바른지입니다.
상태가 '해결됨'이지만 관련있는 것으로 보이는 this bug report on bugs.python.org이 발견되었습니다.
잘못된 정보가 있습니까? 문제를 진단하기위한 조언, 힌트 또는 팁을 추가로 알려 주시면 감사하겠습니다.
편집는 :
C:\Users\Rune Ibsen\Documents\Downloads\pymongo-1.4>python setup.py install
running install
running bdist_egg
running egg_info
writing pymongo.egg-info\PKG-INFO
writing top-level names to pymongo.egg-info\top_level.txt
writing dependency_links to pymongo.egg-info\dependency_links.txt
reading manifest file 'pymongo.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pymongo.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
building 'pymongo._cbson' extension
Traceback (most recent call last):
File "setup.py", line 166, in <module>
"doc": doc})
File "C:\Program Files\Python26\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Program Files\Python26\lib\distutils\dist.py", line 975, in run_commands
self.run_command(cmd)
File "C:\Program Files\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "C:\Program Files\Python26\lib\site-packages\setuptools-0.6c9-py2.6.egg\setuptools\command\install.py", line 76, in run
File "C:\Program Files\Python26\lib\site-packages\setuptools-0.6c9-py2.6.egg\setuptools\command\install.py", line 96, in do_egg_install
File "C:\Program Files\Python26\lib\distutils\cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "C:\Program Files\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "C:\Program Files\Python26\lib\site-packages\setuptools-0.6c9-py2.6.egg\setuptools\command\bdist_egg.py", line 174, in run
File "C:\Program Files\Python26\lib\site-packages\setuptools-0.6c9-py2.6.egg\setuptools\command\bdist_egg.py", line 161, in call_command
File "C:\Program Files\Python26\lib\distutils\cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "C:\Program Files\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "C:\Program Files\Python26\lib\site-packages\setuptools-0.6c9-py2.6.egg\setuptools\command\install_lib.py", line 20, in run
File "C:\Program Files\Python26\lib\distutils\command\install_lib.py", line 113, in build
self.run_command('build_ext')
File "C:\Program Files\Python26\lib\distutils\cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "C:\Program Files\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "setup.py", line 107, in run
build_ext.run(self)
File "C:\Program Files\Python26\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "C:\Program Files\Python26\lib\distutils\command\build_ext.py", line 449, in build_extensions
self.build_extension(ext)
File "setup.py", line 117, in build_extension
build_ext.build_extension(self, ext)
File "C:\Program Files\Python26\lib\distutils\command\build_ext.py", line 499, in build_extension
depends=ext.depends)
File "C:\Program Files\Python26\lib\distutils\msvc9compiler.py", line 448, in compile
self.initialize()
File "C:\Program Files\Python26\lib\distutils\msvc9compiler.py", line 358, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Program Files\Python26\lib\distutils\msvc9compiler.py", line 274, in query_vcvarsall
raise ValueError(str(list(result.keys())))
ValueError: [u'path']
C:\Users\Rune Ibsen\Documents\Downloads\pymongo-1.4>
PS : 나는 이전에 파이썬 3.1 설치하지만 pymongo 3.1을 지원하는지 확실하지이기 때문에 나중에 2.6을 설치 :이 pymongo를 설치하려고 할 때받는 스택 트레이스입니다.
PPS : 나는 python setup.py install
접근 방식을 사용하여 pymongo를 설치하려고 시도했으나,보기 흉한 스택 추적 결과가 나오므로 easy_install이 나를 대신 처리하도록 노력할 것이라고 생각했습니다.
PPPS는 : 파이썬, easy_install을, 계란 등
32 비트 Python을 설치하면 문제가 해결됩니다. 이제 easy_install을 사용하여 설치하고 python setup.py를 사용하여 설치하는 두 가지 방법 모두 정상적으로 작동합니다. 고맙습니다. – Rune
http://www.lfd.uci.edu/~gohlke/pythonlibs/#setuptools – endolith