2013-08-25 6 views
6

VS에서 IronPython 솔루션에 PRAW 패키지를 추가하고 싶지만 엉덩이에 통증이 있음을 증명합니다. 다음 단계를 수행합니다.Python 패키지 설치 - IronPython

  • IronPython 환경을 마우스 오른쪽 단추로 클릭하고 Python 패키지를 선택하십시오.
  • pip를 사용하여 "Praw"에 입력하십시오.
  • 나는 pip를 설치해야한다는 메시지를받습니다.

내가 다음 참조 : AttributeError : '모듈'개체가 어떤 속성 '_getframe'Traceback이 없습니다 (마지막으로 가장 최근에 호출) 다음 존재를 설치 실패에 대한 이유와

Installing 'pip' package manager. 
Downloading distribute from https://go.microsoft.com/fwlink/?LinkID=306663 
Installing from distribute-0.6.45 
Before install bootstrap. 
Scanning installed packages 
Setuptools installation detected at c:\program files (x86)\ironpython 2.7\lib\site-packages\setuptools-0.6c11-py2.7.egg 
Egg installation 
Already patched. 
running install 
Traceback (most recent call last): 
    File "setup.py", line 147, in <module> 
    File "C:\Program Files (x86)\IronPython 2.7\Lib\distutils\core.py", line 151, in setup 
    File "C:\Program Files (x86)\IronPython 2.7\Lib\distutils\dist.py", line 952, in run_commands 
    File "C:\Program Files (x86)\IronPython 2.7\Lib\distutils\dist.py", line 971, in run_command 
    File "c:\users\mj\appdata\local\temp\ptvs-9jvsvw-pip_downloader\distribute-0.6.45\setuptools\command\install.py", line 63, in run 
AttributeError: 'module' object has no attribute '_getframe'Traceback (most recent call last): 
    File "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.0\pip_downloader.py", line 47, in <module> 
    File "C:\Program Files (x86)\IronPython 2.7\Lib\subprocess.py", line 512, in check_call 
subprocess.CalledProcessError: Command '['C:\\Program Files (x86)\\IronPython 2.7\\ipy64.exe', 'setup.py', 'install']' returned non-zero exit status 1 
'pip' failed to install. Exit code: 1 

어떻게이 문제를 해결할 수 있습니까? pip와 ironpython을 다른 방법으로 설치하는 방법이 있습니까? pip를 사용하지 않아도 패키지/라이브러리를 설치할 수 있습니까? Python 2.7 용 Pip을 통해 패키지를 설치할 수 있습니다.

+0

시도의 easy_install을합니다. 귀하의 문제가 도움이 될지 모르겠지만, Google 검색 나를 준 다음 : http://blog.jdhardy.ca/2008/08/easyinstall-on-ironpython.html – Rohit

+0

이것은 나에게도 문제가됩니다. 아직 해결책을 찾지 못했습니다! –

답변

3

IronPython을 명령 줄 옵션 -X:FullFrames과 함께 실행해야합니다. VS에서 설정하는 방법은 잘 모르겠습니다.

은 아마 당신은 수동으로 실행할 수 있습니다

C:\path\to\ipy64.exe -X:FullFrames path\to\pip.py install whaterver_you_want 
+2

여전히 "객체의 속성이 없습니다. _getframe ' – MickJuice

+2

패키지를 설치하는 것이 CPython 환경에서만 작동하는 것으로 보입니다. 코드를 살펴본 결과 자체 버전의 pip가 있고 배포하는 것으로 보입니다.하지만 분명히 여전히' –

+0

Viktor에게 감사드립니다. IronPython과 관련하여 일반 Python을 사용하고 신경 쓰지 않기로 결정했습니다. IP의 주된 이유는 내가 사용하기를 원했기 때문입니다. 넷 dlls 내가 그들에게 더 익숙하지만으로 생각하지만, 파이썬 라이브러리를 사용하여 내 안락 영역에서 나를 얻을 수 있고 더 많은 것을 배울 수 있습니다. 당신의 도움을 주셔서 감사합니다. – MickJuice