<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Python &#8211; KGG Studio</title>
	<atom:link href="https://blog.kggstudio.com/category/dev/python/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.kggstudio.com</link>
	<description>개발자 테크 블로그</description>
	<lastBuildDate>Tue, 14 Apr 2026 13:38:16 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://blog.kggstudio.com/wp-content/uploads/2025/05/cropped-K-1-32x32.png</url>
	<title>Python &#8211; KGG Studio</title>
	<link>https://blog.kggstudio.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">244941309</site>	<item>
		<title>uv (of Python env)</title>
		<link>https://blog.kggstudio.com/uv-of-python/</link>
					<comments>https://blog.kggstudio.com/uv-of-python/#respond</comments>
		
		<dc:creator><![CDATA[TimTam]]></dc:creator>
		<pubDate>Tue, 14 Apr 2026 13:38:16 +0000</pubDate>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">https://blog.kggstudio.com/?p=466</guid>

					<description><![CDATA[프로젝트에 가상환경 만들기 가상환경 비활성화 아무 메시지가없으면 비활성화가 잘된것이고 이미 비활성화 되있으면 아래명령어를 찾을수 없다고 나온다. 가상환경 활성화 여부 확인 기본적으로는 터미널에서 가상환경이 표시가되지만, 터미널에 테마적용등으로 가상환경이 표시가 안되는경우도 있습니다. 1회성 가상환경 세팅 아래처럼 설치하면 가상환경 초기화 없이 1회성으로 설치됨 uv로부터 프로젝트 관리받기 conda에 있는 가상환경 uv로 바꾸기 먼저 아래처럼 requirements.txt 파일을 만듬]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">프로젝트에 가상환경 만들기</h2>



<pre class="wp-block-code"><code># 1. 프로젝트 폴더로 이동
cd your_project_folder

# 2. uv 가상환경 생성 (.venv 폴더가 생성됨)
uv venv --python 3.10  # 원하는 파이썬 버전 지정 가능

# 3. 가상환경 활성화 (맥/리눅스)
source .venv/bin/activate</code></pre>



<h2 class="wp-block-heading">가상환경 비활성화</h2>



<p>아무 메시지가없으면 비활성화가 잘된것이고 이미 비활성화 되있으면 아래명령어를 찾을수 없다고 나온다.</p>



<pre class="wp-block-code"><code>deactivate</code></pre>



<h2 class="wp-block-heading">가상환경 활성화 여부 확인</h2>



<p>기본적으로는 터미널에서 가상환경이 표시가되지만, 터미널에 테마적용등으로 가상환경이 표시가 안되는경우도 있습니다.</p>



<ul class="wp-block-list">
<li><strong>성공 시:</strong> <code>/Users/사용자이름/프로젝트경로/.venv/bin/python</code> 처럼 내가 만든 폴더 안의 경로가 뜹니다.</li>



<li><strong>실패 시:</strong> <code>/opt/homebrew/bin/python</code>이나 <code>/usr/bin/python</code> 같은 시스템 경로가 뜹니다.</li>
</ul>



<pre class="wp-block-code"><code>which python</code></pre>



<h2 class="wp-block-heading">1회성 가상환경 세팅</h2>



<p>아래처럼 설치하면 가상환경 초기화 없이 1회성으로 설치됨</p>



<pre class="wp-block-code"><code># requirements.txt 기반으로 광속 설치
uv pip install -r requirements.txt</code></pre>



<h2 class="wp-block-heading">uv로부터 프로젝트 관리받기</h2>



<pre class="wp-block-code"><code>uv init
uv add -r requirements.txt</code></pre>



<h2 class="wp-block-heading">conda에 있는 가상환경 uv로 바꾸기</h2>



<p>먼저 아래처럼 requirements.txt 파일을 만듬</p>



<pre class="wp-block-code"><code># 1. 기존 콘다 환경 활성화
conda activate your_env_name

# 2. pip를 이용해 의존성 리스트 생성 (conda list보다 호환성이 좋음)
pip list --format=freeze > requirements.txt</code></pre>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.kggstudio.com/uv-of-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">466</post-id>	</item>
	</channel>
</rss>
