2017-09-14 6 views
1

팬더 0.19의 업데이트 된 기능을 사용하고 싶습니다. 그러나 Azure ML 스튜디오에서는 팬더 0.18을 Anaconda 4.0 번들의 일부로 사용합니다. "Execute Python Script"구성 요소에서 사용되는 버전을 업데이트하는 방법이 있습니까?Azure ML Studio에서 판다를 버전 0.19로 업데이트

+0

아나콘다 4.0의 어떤 버전의 파이썬을 사용하셨습니까? 2.7 또는 3.5? –

+0

Python 버전 3.5 – user4446237

+0

안녕하세요. 진전이 있습니까? 내 대답이 도움이됩니까? –

답변

1

Execute Python Script에 팬더 라이브러리 버전을 업데이트하는 방법을 보여 드리기 위해 아래 단계를 제공합니다. 1

단계 : 당신이 그것을하지 않은 경우 명령 pip install virtualenv 먼저 설치하여 system.Please의 독립적 인 파이썬 런타임 환경을 만들기 위해 virtualenv 구성 요소를 사용합니다.

성공적으로 설치 한 경우 python/Scripts 파일에서 볼 수 있습니다.

enter image description here

2 단계 : 독립적 인 파이썬 런타임 환경을 만들기 위해 commad를 실행합니다.

enter image description here

3 단계 : 다음

이 명령을 닫지 마십시오 (그것을 놓치지 마세요,이 단계가 중요하다) 폴더를 활성화 생성 된 디렉토리의 스크립트로 이동 이 명령 창에서 외부 라이브러리를 다운로드하려면 pip install pandas==0.19을 사용하십시오.

4 단계

enter image description here는 : lib 디렉토리/사이트 패키지의 모든 파일이 압축 패키지에 폴더를 압축 (내가 전화 했어 그것은 팬더 - 패키지 여기)

enter image description here

5 단계 : Azure Machine Learning WorkSpace DataSet에 zip 패키지를 업로드하십시오.

enter image description here

특정 단계는 Technical Notes를 참조하십시오.

성공 후에는 데이터 집합 목록

enter image description here

6 단계에 업로드 된 패키지를 볼 수 : 실행] 파이썬 스크립트 모듈 방식 azureml_main의 해상력하기 전에 제거해야 이전 pandas 모듈 &의 종속성은 다음 코드로 다시 pandas을 가져옵니다.

import sys 
import pandas as pd 
print(pd.__version__) 
del sys.modules['pandas'] 
del sys.modules['numpy'] 
del sys.modules['pytz'] 
del sys.modules['six'] 
del sys.modules['dateutil'] 
sys.path.insert(0, '.\\Script Bundle') 
for td in [m for m in sys.modules if m.startswith('pandas.') or m.startswith('numpy.') or m.startswith('pytz.') or m.startswith('dateutil.') or m.startswith('six.')]: 
    del sys.modules[td] 
import pandas as pd 
print(pd.__version__) 
# The entry point function can contain up to two input arguments: 
# Param<dataframe1>: a pandas.DataFrame 
# Param<dataframe2>: a pandas.DataFrame 
def azureml_main(dataframe1 = None, dataframe2 = None): 

그런 다음 당신은 업로드 된 zip 파일에서 새 버전 0.19.0를 인쇄, 먼저 이전 버전 0.14.0를 인쇄, 아래와 같이 로그에서 결과를 볼 수 있습니다.

[Information]   0.14.0 
[Information]   0.19.0 

이러한 스레드를 참조 수 : Access blob file using time stamp in Azurereload with reset을.

희망이 있으면 도움이됩니다.

+0

@ user4446237 진행 상황이 있습니까? –

0

Azure Machine Learning Workbench는 Docker를 사용하여 환경을 설정하는 데있어 훨씬 더 많은 유연성을 제공합니다. 나는 그 도구를 사용하는 것으로 옮겼다.

관련 문제