2014-01-16 2 views
1

안녕하세요 저는 초보자 파이썬 프로그래머입니다. 줄 단위 프로파일 링을 원하므로 line_profiler 패키지를 설치하려고했습니다. 하지만 작동하지 않습니다. 여기에 내가 한 일이 있습니다 :Python line_profiler installation

그런데 저는 Windows 8.1, 64 비트이고 Enthought Canopy를 사용하고 있습니다.

여기에서 Windows 설치 패키지를 얻었습니다 : https://pypi.python.org/pypi/line_profiler을 설치하십시오.

그것은 내가 이렇게해야) 내가 만들거나 사이 썬을, 나 필요로 할 필요가 없습니다 line_profiler 사이트)에 말한다 :

For IPython 0.11+, you can install it by editing the IPython configuration file ~/.ipython/profile_default/ipython_config.py to add the 'line_profiler' item to the extensions list:

c.TerminalIPythonApp.extensions = [ 'line_profiler', ]

내가 캐노피, 운이 다시 시작됩니다. 마법 명령 % lprun이 있어야합니다. 거기에 없어요.

나는 %의 load_ext의 line_profiler을 시도했지만이 메시지를 가지고 :

C:\Users\OEM\AppData\Local\Enthought\Canopy\User\lib\site-packages\line_profiler.py in() 10 import sys 11 ---> 12 from _line_profiler import LineProfiler as CLineProfiler 13 14

ImportError: DLL load failed: %1 is not a valid Win32 application.

다른 것들 : 나는 이것에 대한 setup.py를 찾았지만 C에 설치 될 것 같습니다 line_profiler 하나를 찾을 수 없습니다를 : \ Users \ OEM \ AppData \ Local \ Enthought \ Canopy \ User \ Lib \ site-packages 폴더에 있습니다.

어떤 도움을 주시면 감사하겠습니다. 모든 응답들에 대한

답변

0

잘 감사 :) 진지하게

, 난 전혀 설치하려면이 빌어 먹을 일을 가져올 수 없습니다. https://pypi.python.org/pypi/pprofile

그것은 즉시 설치, 나는 그것을 시도 먼저 가야 할 수있었습니다 :

그래서 난 그냥 다른 프로파일 러를 사용하고 있습니다. 그런 차이!

+0

감사합니다 그것을 위해,하지만 그냥 get "line_profiler-1.0b3-cp26-none-win32.whl은이 플랫폼에서 지원되는 휠이 아닙니다." 64 비트와 32 비트 버전을 모두 시도했는데 같은 오류가 발생했습니다. – davo36