설치 방법

pip install range-key-dict


사용법

from range_key_dict import RangeKeyDict


range_dict = RangeKeyDict({

(0.5, 104.12): 'apple',

(104.12, 232): 'tomato',

(232, 400): 'banana'

})


range_dict[50] # 'apple'

range_dict.get(300.51, 'none') # 'banana'

range_dict.get(1000, 'none') # 'none'


pip freeze > requirements.txt

conda update conda

conda install nb_conda


몇몇 패키지들이 설치가 안되는 경우가 있다.

증상 : Solving environment: /  만 뜨다가 그냥 종료.


이는 Windows Defender 때문에 일어나는 문제이다.

Windows Defender에 들어가서

방화벽 및 네트워크 보호에 도메인/개인/공용 네트워크를 모두 비활성화 시키면 해결된다.

'실습 > 오류 해결' 카테고리의 다른 글

Ubuntu 'killed' 오류  (0) 2019.10.24
anaconda SSL 관련 오류 해결  (15) 2019.10.18
pyinstaller PyQt5 오류  (0) 2018.10.12
Pytorch out of memory 오류  (0) 2018.08.30
[mujoco] command 'gcc' failed with exit status 1` 오류 해결  (0) 2018.08.13

+ Recent posts