2014-11-25 5 views
1

저는 Pyinstaller 설치 방법을 이해하려고합니다. 아마도 몇 시간 동안이 일에 매달릴 것이기 때문에 누군가 내 제안을 할 수있을 것입니다. pip를 사용하여 pyinstaller를 설치할 수 없습니다.

나는 (내가 다른 소프트웨어를 설치할 수 있어요) 제대로 내 경로 변수를 설정할 수 있지만 일반적인 명령이 작동하지 않습니다

pip install pyinstaller 

이 오류

if sys.maxint > 2L ** 32: 

       ^

    SyntaxError: invalid syntax 

는 다음에 출력 ...

------------------------------------------------------------ 
C:\Python34\Scripts\pip run on 11/26/14 00:09:32 
Downloading/unpacking pyinstaller 
    Getting page https://pypi.python.org/simple/pyinstaller/ 
    URLs to search for versions for pyinstaller: 
    * https://pypi.python.org/simple/pyinstaller/ 
    Analyzing links from page https://pypi.python.org/simple/pyinstaller/ 
    Found link https://pypi.python.org/packages/source/P/PyInstaller/PyInstaller-2.1.tar.gz#md5=248531f6fc94b0ffb02473321496d6d0 (from https://pypi.python.org/simple/pyinstaller/), version: 2.1 
    Found link https://pypi.python.org/packages/source/P/PyInstaller/PyInstaller-2.1.zip#md5=3eb18a454311707ab7808d881e677329 (from https://pypi.python.org/simple/pyinstaller/), version: 2.1 
    Found link https://pypi.python.org/packages/source/P/PyInstaller/pyinstaller-2.0.tar.bz2#md5=c62dd506bcde230d87ea11a1c316b590 (from https://pypi.python.org/simple/pyinstaller/), version: 2.0 
    Found link https://pypi.python.org/packages/source/P/PyInstaller/pyinstaller-2.0.zip#md5=19350c07632e4deef5f4ecf64a556637 (from https://pypi.python.org/simple/pyinstaller/), version: 2.0 
    Skipping link http://www.pyinstaller.org (from https://pypi.python.org/simple/pyinstaller/); not a file 
    Skipping link http://www.pyinstaller.org/wiki#Downloads (from https://pypi.python.org/simple/pyinstaller/); not a file 
    Skipping link https://sourceforge.net/projects/pyinstaller/files/ (from https://pypi.python.org/simple/pyinstaller/); not a file 
    Not searching http://www.pyinstaller.org (from https://pypi.python.org/simple/pyinstaller/) for files because external urls are disallowed. 
    Not searching http://www.pyinstaller.org (from https://pypi.python.org/simple/pyinstaller/) for files because external urls are disallowed. 
    Not searching http://www.pyinstaller.org (from https://pypi.python.org/simple/pyinstaller/) for files because external urls are disallowed. 
    Not searching http://www.pyinstaller.org (from https://pypi.python.org/simple/pyinstaller/) for files because external urls are disallowed. 
    Not searching http://www.pyinstaller.org/wiki#Downloads (from https://pypi.python.org/simple/pyinstaller/) for files because external urls are disallowed. 
    Not searching http://www.pyinstaller.org/wiki#Downloads (from https://pypi.python.org/simple/pyinstaller/) for files because external urls are disallowed. 
    Not searching https://sourceforge.net/projects/pyinstaller/files/ (from https://pypi.python.org/simple/pyinstaller/) for files because external urls are disallowed. 
    Not searching https://sourceforge.net/projects/pyinstaller/files/ (from https://pypi.python.org/simple/pyinstaller/) for files because external urls are disallowed. 
    Using version 2.1 (newest of versions: 2.1, 2.1, 2.0, 2.0) 
    Downloading from URL https://pypi.python.org/packages/source/P/PyInstaller/PyInstaller-2.1.tar.gz#md5=248531f6fc94b0ffb02473321496d6d0 (from https://pypi.python.org/simple/pyinstaller/) 
    Running setup.py (path:C:\Users\Michael\AppData\Local\Temp\pip_build_Michael\pyinstaller\setup.py) egg_info for package pyinstaller 
    Traceback (most recent call last): 
     File "<string>", line 17, in <module> 
     File "C:\Users\Michael\AppData\Local\Temp\pip_build_Michael\pyinstaller\setup.py", line 18, in <module> 
     from PyInstaller import get_version 
     File "C:\Users\Michael\AppData\Local\Temp\pip_build_Michael\pyinstaller\PyInstaller\__init__.py", line 32, in <module> 
     from PyInstaller import compat 
     File "C:\Users\Michael\AppData\Local\Temp\pip_build_Michael\pyinstaller\PyInstaller\compat.py", line 129 
     if sys.maxint > 2L ** 32: 
         ^
    SyntaxError: invalid syntax 
    Complete output from command python setup.py egg_info: 
    Traceback (most recent call last): 

    File "<string>", line 17, in <module> 

    File "C:\Users\Michael\AppData\Local\Temp\pip_build_Michael\pyinstaller\setup.py", line 18, in <module> 

    from PyInstaller import get_version 

    File "C:\Users\Michael\AppData\Local\Temp\pip_build_Michael\pyinstaller\PyInstaller\__init__.py", line 32, in <module> 

    from PyInstaller import compat 

    File "C:\Users\Michael\AppData\Local\Temp\pip_build_Michael\pyinstaller\PyInstaller\compat.py", line 129 

    if sys.maxint > 2L ** 32: 

        ^

SyntaxError: invalid syntax 

---------------------------------------- 
Cleaning up... 
    Removing temporary dir C:\Users\Michael\AppData\Local\Temp\pip_build_Michael... 
Command python setup.py egg_info failed with error code 1 in C:\Users\Michael\AppData\Local\Temp\pip_build_Michael\pyinstaller 
Exception information: 
Traceback (most recent call last): 
    File "c:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main 
    status = self.run(options, args) 
    File "c:\Python34\lib\site-packages\pip\commands\install.py", line 278, in run 
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) 
    File "c:\Python34\lib\site-packages\pip\req.py", line 1229, in prepare_files 
    req_to_install.run_egg_info() 
    File "c:\Python34\lib\site-packages\pip\req.py", line 325, in run_egg_info 
    command_desc='python setup.py egg_info') 
    File "c:\Python34\lib\site-packages\pip\util.py", line 697, in call_subprocess 
    % (command_desc, proc.returncode, cwd)) 
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in C:\Users\Michael\AppData\Local\Temp\pip_build_Michael\pyinstaller 
+3

저는 그것이 특정 버전의 Python과 호환되지 않는다고 생각합니다. 또한 관련 http://stackoverflow.com/questions/26215685/pyinstaller-not-install-for-python3 – OMGtechy

+1

프로젝트는 아직 파이썬 3과 호환되지 않습니다. –

답변

4

github에서 pyinstaller python3 브랜치를 사용해보십시오.

pip3 install https://github.com/pyinstaller/pyinstaller/archive/python3.zip 
+0

URL이 죽은 것처럼 보입니다 ... – shuttle87

+0

아마도 관련이 있습니다 지점에 대한 링크가 죽어있다 : https://github.com/pyinstaller/pyinstaller/issues/1417 – shuttle87

관련 문제