강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

awry92님의 프로필 이미지
awry92

작성한 질문수

프로그래밍, 데이터 과학을 위한 파이썬 입문

아톰오류

작성

·

160

0

D:\workspace\python_mooc\lab_1_windows\windows>atom arithmetic_function.py

'atom'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는

배치 파일이 아닙니다.

아톰오류라서 첫번째과제부터 힘들어요 

뭐가 문제인걸까요?

D:\workspace\python_mooc\lab_1_windows\windows>python

Python 3.7.4 (default, Aug  9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32

Warning:

This Python interpreter is in a conda environment, but the environment has

not been activated.  Libraries may fail to load.  To activate this environment

please see https://conda.io/activation

Type "help", "copyright", "credits" or "license" for more information.

>>> import arithmetic_funcion

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

ModuleNotFoundError: No module named 'arithmetic_funcion'

>>> arithmetic_function.addition(5,8)

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

NameError: name 'arithmetic_function' is not defined

이런거만 자꾸 뜨는데 아예 모르겠어요 ㅠㅠ 

답변 1

0

TeamLab님의 프로필 이미지
TeamLab
지식공유자

첫번째로 실행전에 

conda activate base 

를 먼저 실행시키고 python을 실행시켜보시기 바랍니다.

두번째로 `arithmetic_function` 을 뜨위기 위해서는 현재 실행하는 폴더에 `arithmetic_function` 파일이 존재해야 합니다. 파일이 존재하는지 확인 부탁드립니다.

atom이 안될 경우 vs code를 설치를 하는 것이 좋을거 같습니다. 몇일내로 VS code를 설치하는 방법을 올려드리겠습니다.

감사합니다.

awry92님의 프로필 이미지
awry92

작성한 질문수

질문하기