pip 및 쉬운 설치 명령 (MySQL-python 설치)은 아래 나열된 방대한 오류를 제공합니다.pip 및 easy_install을 사용하여 MySQL-python을 virtualenv에 설치할 때 레지스트리 오류가 발생했습니다.
나는이 사이트와 Google을 통해 지금 당장 답변을 찾고있었습니다. 반복적 인 대답은 python dev (pip install python-dev)를 설치하는 것입니다. 그러나 응답은 "전혀 배포가 없습니다"입니다.
누구든지 올바른 구문을 알고 있습니까? 또는 누군가 내가 잘못 가고있는 곳을 지적 할 정도로 친절 할 수 있습니다.
모든 도움을 주시면 대단히 감사하겠습니다. 감사합니다.
C:\virtualenvs\myvirtualenv2\Scripts\pip-script.py run on 04/13/11 16:28:18
Downloading/unpacking mySQL-python
Running setup.py egg_info for package mySQL-python
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "C:\virtualenvs\myvirtualenv2\build\mySQL-python\setup.py", line 15, in <module>
metadata, options = get_config()
File "setup_windows.py", line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
WindowsError: [Error 2] The system cannot find the file specified
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "C:\virtualenvs\myvirtualenv2\build\mySQL-python\setup.py", line 15, in <module>
metadata, options = get_config()
File "setup_windows.py", line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
WindowsError: [Error 2] The system cannot find the file specified
----------------------------------------
Command python setup.py egg_info failed with error code 1
Exception information:
Traceback (most recent call last):
File "C:\virtualenvs\myvirtualenv2\lib\site-packages\pip-1.0-py2.6.egg\pip\basecommand.py", line 126, in main
self.run(options, args)
File "C:\virtualenvs\myvirtualenv2\lib\site-packages\pip-1.0-py2.6.egg\pip\commands\install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "C:\virtualenvs\myvirtualenv2\lib\site-packages\pip-1.0-py2.6.egg\pip\req.py", line 980, in prepare_files
req_to_install.run_egg_info()
File "C:\virtualenvs\myvirtualenv2\lib\site-packages\pip-1.0-py2.6.egg\pip\req.py", line 216, in run_egg_info
command_desc='python setup.py egg_info')
File "C:\virtualenvs\myvirtualenv2\lib\site-packages\pip-1.0-py2.6.egg\pip\__init__.py", line 255, in call_subprocess
% (command_desc, proc.returncode))
InstallationError: Command python setup.py egg_info failed with error code 1
건배, 임 아이디어 "vcvarsall.bat 찾을 수 없습니다"로 실행? 컴파일러가 있지만 가상 디렉터리가 아닌 기본 디렉터리에 설치됩니다. – Stu
Ive도 다음을 시도했지만 오류 명령 'gcc'가 실패했습니다 : 해당 파일이나 디렉토리가 없습니다 1. sourceforge 에서 minGW32 설치 프로그램을 다운로드하십시오 2. 도구를 설치하고 설치할 구성 요소를 묻는 화면이 나타나면 "MinGW 기본 도구 ","g ++ 컴파일러 "및"MingW make "가 있습니다. 3. MinGW를 설치 한 후 경로 환경 변수 에 C : \ MinGW \ bin을 추가하십시오. 4. C : \ Python26 \ Lib \ distutils에 파일을 작성하고 distutils.cfg라고하십시오. 5.이 파일에 수행원: – Stu