Submit Search
Upload
Python仮想環境構築の基礎と ツールの比較
•
1 like
•
1,180 views
cocodrips
Follow
最近のpython仮想環境について勉強したのでまとめました。勉強しながら作ったので間違っていることを書いてる可能性があります。 Typoが複数あったけどuploadしなおさない」
Read less
Read more
Technology
Report
Share
Report
Share
1 of 29
Download now
Download to read offline
Recommended
Containerd internals: building a core container runtime
Containerd internals: building a core container runtime
Docker, Inc.
OpenStack Quantum Intro (OS Meetup 3-26-12)
OpenStack Quantum Intro (OS Meetup 3-26-12)
Dan Wendlandt
Application-Based Routing
Application-Based Routing
HungWei Chiu
CloudStack Architecture
CloudStack Architecture
CloudStack - Open Source Cloud Computing Project
実践! Argo cd & rollouts による canary release(cndt2021)
実践! Argo cd & rollouts による canary release(cndt2021)
HayatoOkuma1
Scaling up task processing with Celery
Scaling up task processing with Celery
Nicolas Grasset
IPv4/IPv6 移行・共存技術の動向
IPv4/IPv6 移行・共存技術の動向
Yuya Rin
NATとNAPTを混在するのはやめような
NATとNAPTを混在するのはやめような
nemumu
Recommended
Containerd internals: building a core container runtime
Containerd internals: building a core container runtime
Docker, Inc.
OpenStack Quantum Intro (OS Meetup 3-26-12)
OpenStack Quantum Intro (OS Meetup 3-26-12)
Dan Wendlandt
Application-Based Routing
Application-Based Routing
HungWei Chiu
CloudStack Architecture
CloudStack Architecture
CloudStack - Open Source Cloud Computing Project
実践! Argo cd & rollouts による canary release(cndt2021)
実践! Argo cd & rollouts による canary release(cndt2021)
HayatoOkuma1
Scaling up task processing with Celery
Scaling up task processing with Celery
Nicolas Grasset
IPv4/IPv6 移行・共存技術の動向
IPv4/IPv6 移行・共存技術の動向
Yuya Rin
NATとNAPTを混在するのはやめような
NATとNAPTを混在するのはやめような
nemumu
LinuxをインストールしてWebサーバーを立ち上げてみよう
LinuxをインストールしてWebサーバーを立ち上げてみよう
Masataka Tsukamoto
Gcpで多言語対応チャットボット作ってみた
Gcpで多言語対応チャットボット作ってみた
Ryo Takano
10GbE時代のネットワークI/O高速化
10GbE時代のネットワークI/O高速化
Takuya ASADA
Plan 9のお話
Plan 9のお話
Ryousei Takano
SDK for NFC Starter Kit(2) 使ってみる
SDK for NFC Starter Kit(2) 使ってみる
Hirokuma Ueno
Ethernetの受信処理
Ethernetの受信処理
Takuya ASADA
네이버 오픈세미나 백엔드_아키텍쳐
네이버 오픈세미나 백엔드_아키텍쳐
NAVER D2
NumPyが物足りない人へのCython入門
NumPyが物足りない人へのCython入門
Shiqiao Du
K8s beginner 2_advanced_ep02_201904221130_post
K8s beginner 2_advanced_ep02_201904221130_post
Inho Kang
OpenStackを使用したGPU仮想化IaaS環境 事例紹介
OpenStackを使用したGPU仮想化IaaS環境 事例紹介
VirtualTech Japan Inc.
BuildKitによる高速でセキュアなイメージビルド
BuildKitによる高速でセキュアなイメージビルド
Akihiro Suda
How to run P4 BMv2
How to run P4 BMv2
Kentaro Ebisawa
Vyatta 改造入門
Vyatta 改造入門
Masakazu Asama
Ingressの概要とLoadBalancerとの比較
Ingressの概要とLoadBalancerとの比較
Mei Nakamura
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Simplilearn
Knative, Serverless on Kubernetes, and Openshift
Knative, Serverless on Kubernetes, and Openshift
Chris Suszyński
MAP 実装してみた
MAP 実装してみた
Masakazu Asama
How Sentry can help us with bugs
How Sentry can help us with bugs
Erison Silva
Deno Deployと組み合わせるのに Upstashをおすすめしたい.pdf
Deno Deployと組み合わせるのに Upstashをおすすめしたい.pdf
虎の穴 開発室
DPDKによる高速コンテナネットワーキング
DPDKによる高速コンテナネットワーキング
Tomoya Hibi
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
The University of Queensland
Python Dependency Management - PyconDE 2018
Python Dependency Management - PyconDE 2018
Patrick Muehlbauer
More Related Content
What's hot
LinuxをインストールしてWebサーバーを立ち上げてみよう
LinuxをインストールしてWebサーバーを立ち上げてみよう
Masataka Tsukamoto
Gcpで多言語対応チャットボット作ってみた
Gcpで多言語対応チャットボット作ってみた
Ryo Takano
10GbE時代のネットワークI/O高速化
10GbE時代のネットワークI/O高速化
Takuya ASADA
Plan 9のお話
Plan 9のお話
Ryousei Takano
SDK for NFC Starter Kit(2) 使ってみる
SDK for NFC Starter Kit(2) 使ってみる
Hirokuma Ueno
Ethernetの受信処理
Ethernetの受信処理
Takuya ASADA
네이버 오픈세미나 백엔드_아키텍쳐
네이버 오픈세미나 백엔드_아키텍쳐
NAVER D2
NumPyが物足りない人へのCython入門
NumPyが物足りない人へのCython入門
Shiqiao Du
K8s beginner 2_advanced_ep02_201904221130_post
K8s beginner 2_advanced_ep02_201904221130_post
Inho Kang
OpenStackを使用したGPU仮想化IaaS環境 事例紹介
OpenStackを使用したGPU仮想化IaaS環境 事例紹介
VirtualTech Japan Inc.
BuildKitによる高速でセキュアなイメージビルド
BuildKitによる高速でセキュアなイメージビルド
Akihiro Suda
How to run P4 BMv2
How to run P4 BMv2
Kentaro Ebisawa
Vyatta 改造入門
Vyatta 改造入門
Masakazu Asama
Ingressの概要とLoadBalancerとの比較
Ingressの概要とLoadBalancerとの比較
Mei Nakamura
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Simplilearn
Knative, Serverless on Kubernetes, and Openshift
Knative, Serverless on Kubernetes, and Openshift
Chris Suszyński
MAP 実装してみた
MAP 実装してみた
Masakazu Asama
How Sentry can help us with bugs
How Sentry can help us with bugs
Erison Silva
Deno Deployと組み合わせるのに Upstashをおすすめしたい.pdf
Deno Deployと組み合わせるのに Upstashをおすすめしたい.pdf
虎の穴 開発室
DPDKによる高速コンテナネットワーキング
DPDKによる高速コンテナネットワーキング
Tomoya Hibi
What's hot
(20)
LinuxをインストールしてWebサーバーを立ち上げてみよう
LinuxをインストールしてWebサーバーを立ち上げてみよう
Gcpで多言語対応チャットボット作ってみた
Gcpで多言語対応チャットボット作ってみた
10GbE時代のネットワークI/O高速化
10GbE時代のネットワークI/O高速化
Plan 9のお話
Plan 9のお話
SDK for NFC Starter Kit(2) 使ってみる
SDK for NFC Starter Kit(2) 使ってみる
Ethernetの受信処理
Ethernetの受信処理
네이버 오픈세미나 백엔드_아키텍쳐
네이버 오픈세미나 백엔드_아키텍쳐
NumPyが物足りない人へのCython入門
NumPyが物足りない人へのCython入門
K8s beginner 2_advanced_ep02_201904221130_post
K8s beginner 2_advanced_ep02_201904221130_post
OpenStackを使用したGPU仮想化IaaS環境 事例紹介
OpenStackを使用したGPU仮想化IaaS環境 事例紹介
BuildKitによる高速でセキュアなイメージビルド
BuildKitによる高速でセキュアなイメージビルド
How to run P4 BMv2
How to run P4 BMv2
Vyatta 改造入門
Vyatta 改造入門
Ingressの概要とLoadBalancerとの比較
Ingressの概要とLoadBalancerとの比較
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Knative, Serverless on Kubernetes, and Openshift
Knative, Serverless on Kubernetes, and Openshift
MAP 実装してみた
MAP 実装してみた
How Sentry can help us with bugs
How Sentry can help us with bugs
Deno Deployと組み合わせるのに Upstashをおすすめしたい.pdf
Deno Deployと組み合わせるのに Upstashをおすすめしたい.pdf
DPDKによる高速コンテナネットワーキング
DPDKによる高速コンテナネットワーキング
Similar to Python仮想環境構築の基礎と ツールの比較
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
The University of Queensland
Python Dependency Management - PyconDE 2018
Python Dependency Management - PyconDE 2018
Patrick Muehlbauer
20120524 english lt2_pythontoolsfortesting
20120524 english lt2_pythontoolsfortesting
Kazuhiro Oinuma
The state of PyPy
The state of PyPy
m_r_e
Take a Stroll in the Bazaar
Take a Stroll in the Bazaar
Myles Braithwaite
DevOps of Python applications using OpenShift (Italian version)
DevOps of Python applications using OpenShift (Italian version)
Francesco Fiore
Python+gradle
Python+gradle
Stephen Holsapple
Pipfile, pipenv, pip… what?!
Pipfile, pipenv, pip… what?!
Ivan Chernoff
Workshop For pycon13
Workshop For pycon13
Steven Pousty
PyCon AU 2012 - Debugging Live Python Web Applications
PyCon AU 2012 - Debugging Live Python Web Applications
Graham Dumpleton
Python 2 is dead! Drag your old code into the modern age
Python 2 is dead! Drag your old code into the modern age
Becky Smith
Christian Strappazzon - Presentazione Python Milano - Codemotion Milano 2017
Christian Strappazzon - Presentazione Python Milano - Codemotion Milano 2017
Codemotion
Software Quality Assurance Tooling - Wintersession 2024
Software Quality Assurance Tooling - Wintersession 2024
Henry Schreiner
TYPO3 8 is here - how we keep EXT:solr uptodate with the TYPO3 core
TYPO3 8 is here - how we keep EXT:solr uptodate with the TYPO3 core
timohund
The devops approach to monitoring, Open Source and Infrastructure as Code Style
The devops approach to monitoring, Open Source and Infrastructure as Code Style
Julien Pivotto
Tp install anything
Tp install anything
Alessandro Franceschi
Deployment and Continous Integration of a Zope/Plone application
Deployment and Continous Integration of a Zope/Plone application
Julien Pivotto
Software Quality Assurance Tooling 2023
Software Quality Assurance Tooling 2023
Henry Schreiner
Python Projects at Neova
Python Projects at Neova
Sandip Chaudhari
Princeton Wintersession: Software Quality Assurance Tooling
Princeton Wintersession: Software Quality Assurance Tooling
Henry Schreiner
Similar to Python仮想環境構築の基礎と ツールの比較
(20)
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
Python Dependency Management - PyconDE 2018
Python Dependency Management - PyconDE 2018
20120524 english lt2_pythontoolsfortesting
20120524 english lt2_pythontoolsfortesting
The state of PyPy
The state of PyPy
Take a Stroll in the Bazaar
Take a Stroll in the Bazaar
DevOps of Python applications using OpenShift (Italian version)
DevOps of Python applications using OpenShift (Italian version)
Python+gradle
Python+gradle
Pipfile, pipenv, pip… what?!
Pipfile, pipenv, pip… what?!
Workshop For pycon13
Workshop For pycon13
PyCon AU 2012 - Debugging Live Python Web Applications
PyCon AU 2012 - Debugging Live Python Web Applications
Python 2 is dead! Drag your old code into the modern age
Python 2 is dead! Drag your old code into the modern age
Christian Strappazzon - Presentazione Python Milano - Codemotion Milano 2017
Christian Strappazzon - Presentazione Python Milano - Codemotion Milano 2017
Software Quality Assurance Tooling - Wintersession 2024
Software Quality Assurance Tooling - Wintersession 2024
TYPO3 8 is here - how we keep EXT:solr uptodate with the TYPO3 core
TYPO3 8 is here - how we keep EXT:solr uptodate with the TYPO3 core
The devops approach to monitoring, Open Source and Infrastructure as Code Style
The devops approach to monitoring, Open Source and Infrastructure as Code Style
Tp install anything
Tp install anything
Deployment and Continous Integration of a Zope/Plone application
Deployment and Continous Integration of a Zope/Plone application
Software Quality Assurance Tooling 2023
Software Quality Assurance Tooling 2023
Python Projects at Neova
Python Projects at Neova
Princeton Wintersession: Software Quality Assurance Tooling
Princeton Wintersession: Software Quality Assurance Tooling
More from cocodrips
スマホでDeepLearning実践入門(α版)
スマホでDeepLearning実践入門(α版)
cocodrips
チームメイトのためにdocstringを書こう! pyconjp2019
チームメイトのためにdocstringを書こう! pyconjp2019
cocodrips
Docstringを書こう!
Docstringを書こう!
cocodrips
Python update in 2018 #ll2018jp
Python update in 2018 #ll2018jp
cocodrips
C++と仲良くなるためのn問 ~ポインタ編~ #ladiescpp
C++と仲良くなるためのn問 ~ポインタ編~ #ladiescpp
cocodrips
Simple is better than complex. ~私がPythonを愛する理由~
Simple is better than complex. ~私がPythonを愛する理由~
cocodrips
ポインタ渡しと参照渡し
ポインタ渡しと参照渡し
cocodrips
女性のためのC++コミュニティ Ladies++
女性のためのC++コミュニティ Ladies++
cocodrips
強くなるためのプログラミング -プログラミングに関する様々なコンテストとそのはじめ方-#pyconjp
強くなるためのプログラミング -プログラミングに関する様々なコンテストとそのはじめ方-#pyconjp
cocodrips
Pythonではじめる競技プログラミング
Pythonではじめる競技プログラミング
cocodrips
More from cocodrips
(10)
スマホでDeepLearning実践入門(α版)
スマホでDeepLearning実践入門(α版)
チームメイトのためにdocstringを書こう! pyconjp2019
チームメイトのためにdocstringを書こう! pyconjp2019
Docstringを書こう!
Docstringを書こう!
Python update in 2018 #ll2018jp
Python update in 2018 #ll2018jp
C++と仲良くなるためのn問 ~ポインタ編~ #ladiescpp
C++と仲良くなるためのn問 ~ポインタ編~ #ladiescpp
Simple is better than complex. ~私がPythonを愛する理由~
Simple is better than complex. ~私がPythonを愛する理由~
ポインタ渡しと参照渡し
ポインタ渡しと参照渡し
女性のためのC++コミュニティ Ladies++
女性のためのC++コミュニティ Ladies++
強くなるためのプログラミング -プログラミングに関する様々なコンテストとそのはじめ方-#pyconjp
強くなるためのプログラミング -プログラミングに関する様々なコンテストとそのはじめ方-#pyconjp
Pythonではじめる競技プログラミング
Pythonではじめる競技プログラミング
Recently uploaded
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Mark Simos
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
LoriGlavin3
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
LoriGlavin3
How to write a Business Continuity Plan
How to write a Business Continuity Plan
Databarracks
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
Alan Dix
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Lars Bell
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
HarshalMandlekar2
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Lorenzo Miniero
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
gvaughan
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
LoriGlavin3
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
Pixlogix Infotech
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
Nathaniel Shimoni
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
Fwdays
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Stephanie Beckett
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
Raghuram Pandurangan
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Lonnie McRorey
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
DianaGray10
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
Dilum Bandara
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
Nicole Novielli
Recently uploaded
(20)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
How to write a Business Continuity Plan
How to write a Business Continuity Plan
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
Python仮想環境構築の基礎と ツールの比較
1.
Python 1
2.
5,6 pyenv virtualenv Python pyenv-virtualenv 2
3.
3
4.
• SysML • pyenv-virtualenv •
Python 4 @cocodrips
5.
Python 3STEP
6.
1. Python 2. 3. 6 Python 3STEP
7.
Python • ‣ : ProjectA:
Python >= 3.6 ProjectB: Python >= 3.5 • pyenv 7
8.
• ‣ : ProjectA: Tensorflow
== 1.15.0 ProjectB: Tensorflow >= 2.1.0 • app docker 8
9.
• ‣ pip requirements.txt ‣ pip
freeze ‣ requirements/dev.txt — autopep8 / flake8 … requirements/tests.txt — pytest … requirements/prod.txt • 9
10.
Python
11.
pip • PyPI Python • pip
freeze > requirements.txt 11 O
12.
venv • Python3.3 python3 -m
venv /path/to/environment • activate ( ) source /path/to/environment/bin/activate 12 O
13.
3rdParty
14.
pyenv • ‣ — pyenv
install 3.8.1 ‣ — pyenv local 3.8.1 • • (3.8.1) 14 O
15.
pipenv • • requirements.txt Pipfile
/ Pipfile.lock ‣ npm / bundler ‣ requirements.txt • Pipfile Python (PEP) 15 O O
16.
pipenv • ‣ pipenv —python
<python path> • activate (shell ) ‣ pipenv shell 16 O O
17.
pipenv • pipenv ‣ Pipfile pipenv
install requirements ‣ pipenv install —dev autopep8 ‣ Pipfile.lock pipenv sync ‣ pipfile pipenv install 17 O O
18.
poetry • Python project.toml •
setup.py • npm / bundler poetry.lock • 18 O O
19.
poetry 19 O O
20.
poetry • poetry ‣ (
) — pyproject.toml poetry new < > • activate ‣ poetry shell • ‣ pyenv local new, install ( pipenv ) 20 O O
21.
poetry • poetry ‣ pyproject.toml poetry
add requirements ‣ poetry add —dev autopep8 ‣ pyproject.tml poetry install ‣ poetry build 21 O O
22.
( ) Anaconda •
STEP • • 22 O O O
23.
( ) pyenv-virtualenv • activate • pyenv
virtualenv < > <env > • activate pyenv local <env > 23 O O
24.
Python Before ——>
After
25.
(before) pyenv-virtualenv +
pip • activate ( ) • (tf2), (tf1) • … 25
26.
(after) pyenv +
poetry • pyenv • ‣ python ‣ • pipenv • pip pipenv / poetry 26
27.
28.
28 2020 Python -
Qiita
29.
• Pipfile →
pipenv • requirements.txt → pip + venv • PyPI → poetry • → • — → pip+venv / pipenv 29
Download now