IT/python 24

파이썬에서 pandas가 설치되지 않을 때

pip -install pandas를 눌렀는데 ERROR: Could not find a version that satisfies the requirement pandas (from versions: none) ERROR: No matching distribution found for pandas 이런 에러메시지가 나오면서 pandas가 설치되지 않으면 pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org pandas 와 같은 명령어를 누르면 설치가 된다. tensorflow도 위와 같은 에러메시지가 나올 때가 있는데 그건 32비트를 깔아서 그렇다. 64비트를 깔면 제대로 된다고 한다.

IT/python 2020.06.14

좀 더 색다른 python 워드클라우드, stylecloud

import stylecloud stylecloud.gen_stylecloud(file_path="lyrics.txt", icon_name="fas fa-candy-cane", palette='cartocolors.diverging.TealRose_7') python에서 WordCloud도 있지만 좀 더 색다른 워드클라우드를 해보고 싶다면 stylecloud도 좋은 선택지입니다. 코드를 보면 매우 간단합니다. 저는 Sting의 Englishman in NewYork 가사로 워드클라우드를 만들어 봤습니다. 위 python 코드를 실행시키면 python이 설치된 폴더에 stylecloud.png라는 파일이 생깁니다. 여기서 icon은 Font Awesome 아이콘인데 https://www.joydeepdeb..

IT/python 2020.06.10