본문 바로가기
반응형

파이썬4

Mac OS M3 + Python 3.10 + Anaconda3 + LangChain + OpenAI requirements(파일 첨부함. Attaching the file for you below) 최근 생성형 AI API를 활용해 애플리케이션을 개발하려 했는데, dependency 충돌로 어려움을 겪었다.I recently attempted to develop an application using generative AI APIs but faced challenges with dependency conflicts. 특히 기존 Python 3.9 환경에서 시작했으나, 설치 과정 중 numpy의 C-extension 문제와 여러 가지 사건을 겪으면서, 시간을 절약할 수 있도록 requirements 파일을 정리해 두기로 결심했다.In particular, I started with a Python 3.9 environment but encountered issues with numpy’s C-exte.. 2025. 1. 9.
create conda env by yml file in windows | 윈도우에서 yml파일로 아나콘다 환경설정 하기 책을 통하여 공부하신다거나 github에 있는 소스로 공부하실 경우 많은 분들이 해당 환경설정에 대해서 yml파일을 만들어 올려놓는 경우가 많습니다. If you study by book or GitHub source, the author or repository owner may provide yml file that includes the environment of the programming file. 간단하게 아래와 같이 "conda env create -f 파일명"을 타이핑하시면 환경설징이 완료됩니다~ If so, just type "conda env create -f FileName' simply~ FYI: 파일 안의 Name 으로 새로운 가상환경이 생성됩니다. According to the .. 2023. 7. 26.
Numpy - Transposed Matrix(전치행렬), Reverse Matrix(역행렬), and Vector usage Here is an example to explain the matrix of Numpy Library 넘피 라이브러리의 매트릭스에 대해서 쉽게 눈으로보며 넘어갈 수 있게 만든 예제입니다. import numpy as np import pandas as pd a = np.matrix([[1,2], [3,4]]) # = ('1 2;3 4') a.T : create the transposed matrix of a print(a.I) # np.matrix.I => a.I : create the reverse matrix of a Results created by np.matrix can see them below with transposed matrix, and reverse matrix. np.matrix .. 2022. 6. 28.
Amazon daily return analysis(아마존 일일 수익률 분석): z-score Through Python, we can easily approach the some of stock market data. 파이썬 라이브러리를 통하여 주식시장의 데이터를 쉽게 접근할 수 있습니다. First of all, import libraries. 1. yfinance: Although this is not the official library, Yahoo finance library provides various data for free! 2. Pandas: This library offers various analytics functions and the performance of functions are much better than the original Python library beca.. 2022. 6. 23.
728x90
반응형