7

Azure Machine Learning Studio를 테스트하려고합니다.Azure Machine Learning Studio의 jupyter notebook에 TensorFlow를 설치하는 방법

TensorFlow를 사용하고 싶지만 Jupyter 노트북에는 설치되어 있지 않습니다.

노트북에서 TensorFlow, Theano, Keras 등과 같은 일부 학습 라이브러리를 어떻게 사용할 수 있습니까? 당신이 발견으로, 활성 사용자가 푸른에서 site-packages 디렉토리에 쓸 수있는 권한이 없습니다

Collecting tensorflow 
    Downloading tensorflow-0.12.0rc0-cp34-cp34m-manylinux1_x86_64.whl (43.1MB) 
    100% |################################| 43.1MB 27kB/s 
Collecting protobuf==3.1.0 (from tensorflow) 
    Downloading protobuf-3.1.0-py2.py3-none-any.whl (339kB) 
    100% |################################| 348kB 3.7MB/s 
Collecting six>=1.10.0 (from tensorflow) 
    Downloading six-1.10.0-py2.py3-none-any.whl 
Requirement already satisfied: numpy>=1.11.0 in /home/nbcommon/anaconda3_23/lib/python3.4/site-packages (from tensorflow) 
Requirement already satisfied: wheel>=0.26 in /home/nbcommon/anaconda3_23/lib/python3.4/site-packages (from tensorflow) 
Requirement already satisfied: setuptools in /home/nbcommon/anaconda3_23/lib/python3.4/site-packages/setuptools-27.2.0-py3.4.egg (from protobuf==3.1.0->tensorflow) 
Installing collected packages: six, protobuf, tensorflow 
    Found existing installation: six 1.9.0 
    DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project. 
    Uninstalling six-1.9.0: 
     Successfully uninstalled six-1.9.0 
    Rolling back uninstall of six 
Exception: 
Traceback (most recent call last): 
    File "/home/nbcommon/anaconda3_23/lib/python3.4/site-packages/pip/basecommand.py", line 215, in main 
    status = self.run(options, args) 
    File "/home/nbcommon/anaconda3_23/lib/python3.4/site-packages/pip/commands/install.py", line 342, in run 
    prefix=options.prefix_path, 
    File "/home/nbcommon/anaconda3_23/lib/python3.4/site-packages/pip/req/req_set.py", line 784, in install 
    **kwargs 
    File "/home/nbcommon/anaconda3_23/lib/python3.4/site-packages/pip/req/req_install.py", line 851, in install 
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix) 
    File "/home/nbcommon/anaconda3_23/lib/python3.4/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files 
    isolated=self.isolated, 
    File "/home/nbcommon/anaconda3_23/lib/python3.4/site-packages/pip/wheel.py", line 345, in move_wheel_files 
    clobber(source, lib_dir, True) 
    File "/home/nbcommon/anaconda3_23/lib/python3.4/site-packages/pip/wheel.py", line 329, in clobber 
    os.utime(destfile, (st.st_atime, st.st_mtime)) 
PermissionError: [Errno 1] Operation not permitted 

답변

3

: 나는 다음과 같은 오류가 발생했습니다,

!pip install tensorflow 

그러나 :

나는이 시도 Machine Learning Studio 노트북. 기본 작업 디렉토리와 같은 쓰기 권한이있는 다른 디렉토리에 패키지를 설치하고 거기에서 가져 오기를 시도 할 수 있지만 다음과 같은 번거로운 옵션을 권장합니다.

Azure Notebooks은 tensorflow, theano 및 keras를 설치할 수있는 별도의 Jupyter Notebook 서비스입니다. AML Studio의 노트북과 마찬가지로이 노트북은 귀하의 계정에 계속 유지됩니다. 기본 단점은 예를 들어 작업 공간을 통해 작업 공간에 액세스하려는 경우 Python azureml 패키지를 설치하려면 연결을 설정하려면 provide your workspace id/authorization token해야합니다. (Azure ML Studio에서는이 값이 현재 작업 공간에서 자동으로로드됩니다. 그렇지 않으면 Azure Notebooks가 AML Studio에서만 수행하는 모든 작업을 수행 할 수 있다고 생각합니다.

관련 문제