• Home
  • About
    • Sangyeop-kim photo

      Sangyeop-kim

      데이터 광부

    • Learn More
    • Email
    • Github
  • Blog
  • Paper-review

파이참 서버 연결하기.

06 Jun 2020

Reading time ~1 minute

파이참 서버 연결하기

  1. 가상환경 만들기 : conda create -n env_name python=3.6
💡
conda activate 오류 CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. conda update 하기 : conda update -n base conda

이후에 필요한 패키지들을 설치해줍니다.

2. File → New Project → 디렉토리 선택

3. File → Settings → Project:name → Project Interpreter → 아래 화살표 클릭한 이후 Show All → '+' Add

4. SSH Interpreter → Host, port Username 등록 → password

5. Interpreter 등록하기 → 가상환경 경로의 python과 연결 해야함.

home/Username/anaconda3/envs/가상환경이름/bin/python

6. Sync folders 지정하기 (Remote Path에 원하는 위치 지정)

하단의 automatic 체크 or 나중에 Tools - Deployment - Automatic Upload 클릭해주기

7. 3번 화면으로 돌아오면 Project Interpreter가 있음!! → OK 누르면 세팅 완료

8. test를 해보자.

tensorflow와 torch를 1번에서 미리 받았기 때문에 다음과 같이 테스트를 진행.

import tensorflow as tf
import torch
def test() :
	return 1
print(tf.__version__)
print(torch.__version__)

잘 돌아간다.



Share Tweet +1