% pyenv --version
pyenv 2.3.3
% type pyenv
pyenv is a shell function from /Users/hotohara/.zshrc
% pyenv version
3.9.11 (set by /Users/hotohara/.pyenv/version)
% pyenv versions
system
3.8.5
3.8.6
3.9.1
* 3.9.11 (set by /Users/hotohara/.pyenv/version)
3.10.3
% pyenv install 3:latest
Downloading Python-3.11.0b5.tar.xz...
Installed Python-3.11.0b5 to /Users/hotohara/.pyenv/versions/3.11.0b5
% pyenv versions
system
3.8.5
3.8.6
3.9.1
* 3.9.11 (set by /Users/hotohara/.pyenv/version)
3.10.3
3.11.0b5
% pipenv install --python 3.10
% pipenv install numpy pandas matplotlib
% cat Pipfile
[source]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
numpy = "*"
pandas = "*"
matplotlib = "*"
[dev-packages]
[requires]
python_version = "3.10
% pipenv run python ch03/sigmoid.py
% pipenv shell
(deep-learning-from-scratch) % cd ch03
(deep-learning-from-scratch) % python --version
Python 3.10.6
(deep-learning-from-scratch) % python mnist_show.py
(deep-learning-from-scratch) % exit
コメント