본문 바로가기

프로그래밍/python14

selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally 구글 chromedriver centos7에서 사용시 다음과 같이 오류가 발생할 때selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)근본적으로 크롬 2.9버젼을 쓰면 발생하는 오류다 [추가 소스 부분]option.. 2019. 2. 25.
pyinstaller를 이용한 tensorflow-gpu exe 파일 만들기 pyinstaller를 이용한 tensorflow-gpu exe 파일 만들기 어찌하다 보니 Tensorflow와 Keras를 이용한 감성분석 프로그램을 만들게 되었다.(회사의 요구사항) 감성분석을 어디다 찰떡 같이 써먹을지 예상은 안돼지만... 고객이 해달라니 뭐... 어찌 어찌 구글 신과 다른 분들의 도음으로 모델을 만들고 프로그램을 구현 했는데 고객님께서 exe 파일로 만들어 달라고 하신다. 결국은 pyinstaller를 이용해서 exe를 만들었다. pip install pyinstaller pyinstaller file.py 일반적으로 EXE 파일이 만들어진다. 하지만 tensorflow-gpu 를 만들고 exe를 실행하면 error 가 발생 rs.py", line 627, in exec_modul.. 2018. 11. 9.
Python DataFrame To excel with hyperlink Python DataFrame 에서 엑셀 파일로 추출 할때 하이퍼 링크 건 채로 추출하는 법 데이터를 추출해야 하는 일이 있는데 엑셀로 추출 할 때 그냥 추출하면 텍스트로 추출되는 경우가 있다. 엑셀 파일을 열어 해당 컬럼을 더블클릭하고 다시 엔터를 치면 자동으로 링크가 걸리긴 하는데... 그 많은 파일을 언제 다.... 그래서 방법을 찾아 보았다. ```def make_hyperlink(value): return '=HYPERLINK("%s", "%s")' % (value.format(value), value)``` 위는 하이터 링크 형태로 만들어 주는 함수```df['resutl_column_name'] = df['target_column_name'].apply(lambda x: make_hyperl.. 2018. 9. 27.
debian python3.6 package 설치 debian python3 설치 $ sudo nano /etc/apt/sources.list # add deb http://ftp.de.debian.org/debian testing main $ echo 'APT::Default-Release "stable";' | sudo tee -a /etc/apt/apt.conf.d/00local $ sudo apt-get update $ sudo apt-get -t testing install python3.6 $ python3.6 -V 2018. 9. 5.
ImportError: No module named 'tkinter' python에서 그래프 모듈인 matplotlib을 사용하려고PIP에서 인스톨하고 사용하려면다음과 같은 에러가 뜬다.ImportError: No module named 'tkinter'우분투는 간단히apt-get install python3-tk나 dev-tk를 한다면 된다고 나와 있다.하자만 centos에서는?yum provides '*/tkinter' yum install python35u-tkinter-3.5.4-1.ius.centos7.x86_64해주면 되겠다. 2018. 2. 20.
Centos에서 yum으로 python3 설치 yum install -y https://centos7.iuscommunity.org/ius-release.rpm yum install python35u yum install python35u-setuptools easy_install-3.5 pip 2018. 2. 20.