본문 바로가기

python7

Python 에러잡기 : [SSL: CERTIFICATE_VERIFY_FAILED] pip로 무언가를 설치하려고 할때 SSL certificate verify failed 에러로 인해.. 골머리 앓지 않는 방법 적어둡니다. 1) 본인의 python 경로에서.. 아래 위치로 이동 ~~~\Python36\Lib\site-packages\pip\_vendor\requests 2) sessions.py 파일에서 self.verify = False로 설정 2) pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org 2020. 6. 2.
Python - MySQL (PyMySQL 설치, 기본 사용법 CRUD) Python. MySQL 기본 사용법 1. PyMySQL 설치 Python에서 MySQL을 사용하기 위해서는 먼저 PyMySQL 설치가 필요합니다. pip install PyMySQL 2. 테이블 생성 / 삭제 예제와 함께 해봅시다요~ (1) 테이블 생성 import pymysql.cursors def create_table(): conn = pymysql.connect(host=HOST, user=USER, password=PW, db=DB, charset='utf8mb4') sql = ''' CREATE TABLE USERS ( USER_ID VARCHAR(50) NOT NULL PRIMARY KEY, USER_NM VARCHAR(200) NOT NULL COMMENT '사용자명', TEL_NO VA.. 2020. 4. 23.
Anaconda, TensorFlow 설치 1. Anaconda 설치 https://www.anaconda.com/distribution/#download-section Anaconda Python/R Distribution - Free Download Anaconda Distribution is the world's most popular Python data science platform. Download the free version to access over 1500 data science packages and manage libraries and dependencies with Conda. www.anaconda.com 2. Conda 가상환경 생성 Anaconda Prompt 실행 후, 아래와 같이 입력한다. conda create .. 2020. 1. 29.
딥러닝실습을 위한 간단 개발환경 설정 (Git, Python) for Window 빠른 실습을 위한 간단 개발환경 설정 방법 :-) 사이트 참고 ▼https://github.com/udacity/deep-reinforcement-learning 1. Git 설치하기 for Window참고> http://dev-gabriel.tistory.com/21 2. Anaconda 설치하기참고> https://dwfox.tistory.com/67 3. 개발 가상환경 Setting 4. 관련 library 설치 1)open AI Gym 관련git clone https://github.com/openai/gymcd gympip install -e . 2) RL 관련 pkg 설치git clone https://github.com/udacity/deep-reinforcement-learning.git .. 2019. 1. 9.