본문 바로가기

인터넷/모바일/머신러닝26

nvidia docker 재설치 sudo apt-get autoremove -y docker-engine \ && sudo apt-get purge docker-engine -y \ && sudo rm -rf /etc/docker/ \ && sudo rm -f /etc/systemd/system/multi-user.target.wants/docker.service \ && sudo rm -rf /var/lib/docker \ && sudo systemctl daemon-reload #sudo apt-get install -y docker-engine=1.12.6-0~raspbian-jessie apt-cache madison docker-ce sudo apt-get install docker-ce=19.03.0~ce-0~ubuntu 2023. 5. 10.
괜찮은 python용 progressive bar 프로그램 뺑뺑이를 돌리다보면, 얼마나 돌아가고 있는지 궁금할 때가 있다. 그럴 때 쓰는게 progressive bar. 인터넷을 뒤져서 2개를 찾았다. 하나는 jupyter notebook에서 쓸 수 있지만 예정 시간이 안 나오는거, 다른 하나는 jupyter에서는 사용할 수 없지만 예쁘고 & 예정 시간도 출력되는거... 선택은 알아서. 1. 예쁘고 & 예정 시간도 출력됨. 하지만, jupyter notebook에서 출력 안 됨. 1 2 3 4 5 6 7 8 from alive_progress import alive_bar import time max = 10000 with alive_bar(max) as bar: for i in range(max): time.sleep(.01) bar() cs 실행하면.. 2020. 2. 5.
vtable error. undefined 해결방법 g++ 4 이상일 때에는 -fvisibility=hidden -fvisibility-inlines-hidden을 on하게 되어있는데, 이 옵션들을 on하면, vtable 에서 함수들을 찾을 수 없다는 에러 메시지가 나오고, link도 당연히 안 된다. (이 옵션이 on이면 뭐가 좋긴한 것 같은데.. 잘은 모르겠음) 아래처럼 두 개의 옵션을 지우고, 모든 라이브러리를 재컴파일하면 문제 해결. ~/ACE/ACE_wrappers/include/makeinclude]vi platform_g++_common.GNU 1 2 3 4 5 6 7 8 9 10 11 12 13 # Take advantage of G++ (>= 4.x) visibility attributes to generate # improved shar.. 2019. 8. 7.
anaconda 환경에서 ImportError: No module named pandas 해결법. anaconda 환경 하에서 pip install 명령으로 pandas 모듈을 인스톨하였음에도 불구하고, python을 실행해서 import pandas 명령을 내리면, 'ImportError: No module named pandas' 라는 에러 메시지가 날 때가 있음. 문제점은 3가지로 나눌 수 있을 것 같음. 문제점 1. pandas 모듈이 정말 안 깔렸다. 또는 다른 버전이 깔렸다. 문제점 2. 환경 변수(path)가 잘못되어서, pip가 다른 곳에 모듈을 설치했다. 문제점 3. conda에서 conda create로 가상환경을 만들 때에 pip가 제대로 복사되지않았다. (제대로 복사가 안 된 이유는 모르겠다. anaconda 2019-7월 버전의 버그일 수도...) 그럼 해결 방법을 써보자. 문.. 2019. 8. 7.