일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- urllib
- ubuntu
- 리눅스
- 맛집
- flutter
- ASP
- GIT
- javascript
- PER
- tensorflow
- Linux
- MySQL
- node.js
- 다이어트
- python
- Unity
- 유니티
- 라즈베리파이
- PyQt5
- swift
- IOS
- port
- pandas
- sqlite
- mssql
- 함수
- PyQt
- Excel
- MS-SQL
- 날짜
목록랭귀지/python (251)
아미(아름다운미소)
빈 Sequence(String / Tuple / List)는 False 값을 가집니다. if not xxx: print("List xxx is Empty")
예) Undefined variable from import: randn 이런류의 에러발생시 Window -> Preferences -> PyDev -> Editor -> Code Analysis -> Undefined -> Undefined Variable From Import -> Ignore 이클립스 재시작
pip uninstall -y numpy pip uninstall -y setuptools pip install setuptools pip install numpy
pip이란 python으로 작성된 패키지의 설치 및 관리를 해주는 프로그램입니다. pip은 Python 2.x용, pip3는 Python 3.x용 프로그램입니다. apt-get install python-pip apt-get install python3-pip 예제) pip bs4 pandas lxml pip3 bs4pandas lxml
Linux에서 설치 python 2.X sudo apt-get install python-pip python 3.X sudo apt-get install python3-pip MAC에서 설치 sudo easy_install pip
soup = BeautifulSoup(html, "html.parser") soup = BeautifulSoup(html, 'html.parser', from_encoding='euc-kr')
pip install beautifulsoup You're trying to run a very old release of Beautiful Soup under Python 3 "You're trying to run a very old release of Beautiful Soup under Python 3. This will not work.""Please use Beautiful Soup 4, available through the pip package 'beautifulsoup4'." pip install beautifulsoup4
1. 기본 python 버전을 확인합니다. $python --version 2. 기본 Python의 위치(PATH)를 확인합니다. $which python 3. 변경할 새로운 Python 3.X 의 위치(PATH)를 확인합니다. $which python3 4. 아래 명령어를 사용하여 디폴트 파이썬을 바꿔줍니다. $sudo ln -sf [new_python_path] [privious_python_path]
pyqt5 레이블 배경색 self.label = QtWidgets.QLabel(self) self.label.setGeometry(QtCore.QRect(10, 350, 280, 30)) self.label.setObjectName("conditionListlabel1") self.label.setStyleSheet('color:navy;background:#ffff99;') self.label.setText(" 글씨색 navy 배경색 #ffff99 적용 ")
pyinstaller No module named pkg_resources.py2_warn 환경(윈도우7, 아나콘다3 : 파이썬3.7 가상환경) 에러메세지(Pyinstaller 에러 시(Version 3.7)) Pyinstaller 에러 시(Version 3.7) 삭제 후 재설치 pip uninstall pyinstaller pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip