인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

haha583's profile image
haha583

asked

Getting Started with Programming: Introduction to Python (Inflearn Original)

How to use Python Print (1-1): Let's print various things.

invalid syntax 오류 관련 질문

Written on

·

210

0

안녕하세요. Mac 을 사용하고 있는 수강생입니다.

저도, 다른 분들처럼 syntax오류가 발생하고 있습니다.

우선은, 아톰에서 아래 설명대로 하면 오류없이 실행은 가능한 상황입니다.

하지만, 아톰을 종료후 다시 킬때마다 아래의 과정을 입력해야만 오류없이 실행이 가능합니다.

그래서, 질문글들 중에 있는 아래 링크의 alias를 활용하려고하는데 bash_profile 폴더가 저의 Mac에는 없습니다 ㅜㅜ

https://dejavuqa.tistory.com/60

이런 경우에는 어떻게 해결해야할까요?

아톰을 여러번 삭제 후 다시 설치 했지만 근본해결이 되지 않아서 질문드립니다.

python

Answer 1

0

niceman님의 프로필 이미지
niceman
Instructor

안녕하세요.

mac에서 제가 bash쪽 수정한지가 오래되서 ㅠ.ㅠ

vim 으로 수정했던 것 같은데 bash_profile경로 잘 확인해보시고 다시 시도 부탁드려요.

중요한 설정파일이기 때문에 잘 찾아보시면 수정이 가능하실 거예요.

3

According to the bash man page, .bash_profile is executed for login shells, while .bashrc is executed for interactive non-login shells.

Mac OS X runs a login shell by default for each new terminal window, calling .bash_profile instead of .bashrc.

Setup your PATH variable in .bash_profile

vim ~/.bash_profile

correct PATH variable with below single line(which is working fine as per the question)

export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin
haha583's profile image
haha583

asked

Ask a question