Notice
Recent Posts
Recent Comments
Link
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

Astro Coke

[Windows] Python setup for Sub-Users 본문

Computer Setup

[Windows] Python setup for Sub-Users

astrodoo 2020. 7. 29. 20:04

서브 유저 아이디를 만들고 로그인을 했더니 python 실행이 안되었다.

> python

Fatal Python error: 
Py_Initialize: unable to load the file system codec 
ModuleNotFoundError: No module named 'encodings' Current thread 0x0000037c (most recent call first):

이것은 Environment Variables 에서 PATH 설정에 python (anaconda) 폴더가 포함이 안되어 있어서 발생할 수도 있지만,

또 다른 이유는 python 이 설치되어 있는 장소가 메인 유저의 홈 디렉토리라면 그 디렉토리를 다른 서브 유저들이 

접속 권한이 없다면 발생할 수 있다.

 

해결책은 간단히 

File Explorer를 열고 메인 유저의 홈 디렉토리의 "Properties > Security" 에서 해당 서브 유저들에게 접속 권한을 설정해 주면 된다.