﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3ABrita%2FConfigs%2FPyenv</id>
	<title>利用者:Brita/Configs/Pyenv - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3ABrita%2FConfigs%2FPyenv"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Brita/Configs/Pyenv&amp;action=history"/>
	<updated>2026-12-05T23:29:26Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Brita/Configs/Pyenv&amp;diff=151669&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Brita/Configs/Pyenv&amp;diff=151669&amp;oldid=prev"/>
		<updated>2018-06-28T21:17:23Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 21:17時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Brita/Configs/Pyenv&amp;diff=151668&amp;oldid=prev</id>
		<title>2018年4月21日 (土) 17:51にwiki&gt;Britaによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Brita/Configs/Pyenv&amp;diff=151668&amp;oldid=prev"/>
		<updated>2018-04-21T17:51:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=pyenv - managing Python versions and dependencies=&lt;br /&gt;
&lt;br /&gt;
Pyenv is a tool that allows installing and managing several python versions and environments for different projects with their own set of dependencies.&lt;br /&gt;
This is useful when having multiple projects using python.&lt;br /&gt;
&lt;br /&gt;
pyenv copies python versions, flavors and environments into a local folder which then can be selected from a directory using shims.&lt;br /&gt;
&lt;br /&gt;
[https://github.com/yyuu/pyenv Read more].&lt;br /&gt;
&lt;br /&gt;
==Installing==&lt;br /&gt;
See https://github.com/yyuu/pyenv-installer&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configuring==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pyenv install 3.6.2  # installs a new python version (-l to list all possibilities first after pyenv update)&lt;br /&gt;
pyenv virtualenvs  #shows you the list of existing virtualenvs&lt;br /&gt;
pyenv version  #shows python version that will be applied to the newly created venv&lt;br /&gt;
pyenv virtualenv [2.7] venv-name  # creates new venv with optional specific version&lt;br /&gt;
pyenv local 3.6.2  # associate this folder with a version  without a virtualenv&lt;br /&gt;
pyenv local venv-name  # associates the new venv with the directory&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: https://github.com/yyuu/pyenv/blob/master/COMMANDS.md&lt;br /&gt;
&lt;br /&gt;
==Updating==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# check for new python versions and flavors (check with pyenv install -l)&lt;br /&gt;
pyenv update&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# check for outdated python pip dependencies:&lt;br /&gt;
pip list --outdated&lt;br /&gt;
&lt;br /&gt;
# update all pip requirements:&lt;br /&gt;
pip freeze --local | grep -v &amp;#039;^\-e&amp;#039; | cut -d = -f 1  | xargs pip install -U&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using Pyenv with Blender==&lt;br /&gt;
* Install the Python version that Blender currently requires and setup a virtual environment for it:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pyenv install 3.6.2&lt;br /&gt;
pyenv virtualenv 3.6.2 venv-blender&lt;br /&gt;
pyenv local venv-blender # run from the build directory&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install Blender&amp;#039;s Python dependencies in the new virtual environment:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pip install numpy requirements&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Set the path for the pyenv python directory before running CMake:&lt;br /&gt;
&lt;br /&gt;
Blender&amp;#039;s cmake configuration will fail if it does not find Python 3.6, so setting the path is useful if the OS doesn&amp;#039;t have Python3. If the configuration already run once, then the values can simply be changed.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
export PYTHON_ROOT_DIR=$HOME/.pyenv/versions/3.6.2&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example for the final values, notice that the paths refer the venv for the installed packages, otherwise they refer the generic python version:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cmake&amp;quot;&amp;gt;&lt;br /&gt;
PYTHON_EXECUTABLE:FILEPATH=/home/stitch/.pyenv/versions/3.6.2/bin/python3.6m&lt;br /&gt;
PYTHON_INCLUDE_CONFIG_DIR:PATH=/home/stitch/.pyenv/versions/3.6.2/include/python3.6m&lt;br /&gt;
PYTHON_INCLUDE_DIR:PATH=/home/stitch/.pyenv/versions/3.6.2/include/python3.6m&lt;br /&gt;
PYTHON_LIBPATH:PATH=/home/stitch/.pyenv/versions/3.6.2/lib&lt;br /&gt;
PYTHON_LIBRARY:FILEPATH=/home/stitch/.pyenv/versions/3.6.2/lib/libpython3.6m.a&lt;br /&gt;
PYTHON_LINKFLAGS:STRING=-Xlinker -export-dynamic&lt;br /&gt;
PYTHON_VERSION:STRING=3.6&lt;br /&gt;
PYTHON_NUMPY_PATH:PATH=/home/stitch/.pyenv/versions/venv-blender/lib64/python3.6/site-packages&lt;br /&gt;
PYTHON_NUMPY_INCLUDE_DIRS:PATH=/home/stitch/.pyenv/versions/venv-blender/lib64/python3.6/site-packages/numpy/core/include&lt;br /&gt;
PYTHON_REQUESTS_PATH:PATH=/home/stitch/.pyenv/versions/venv-blender/lib64/python3.6/site-packages&lt;br /&gt;
PYTHON_SITE_PACKAGES:FILEPATH=/home/stitch/.pyenv/versions/venv-blender/lib64/python3.6/site-packages&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>wiki&gt;Brita</name></author>
		
	</entry>
</feed>