Notes on installing pipenv on Mac

After installing Homebrew ...

Installing Python 3.8.1

--Install with pyenv. (Confirm)

$ brew update
$ brew install pyenv
$ pyenv install --list
Select the latest installable version. (This time,"3.8.1"To)
$ pyenv install 3.8.1

--Check the version of python used by default. (Because it is still 3.7.4)

$ pyenv versions
  system
* 3.7.4 (set by /Users/myname/.pyenv/version)
  3.8.1

--Switch with the pyenv global command to use the installed 3.8.1.

$ pyenv global 3.8.1
$ pyenv versions
  system
  3.7.4
* 3.8.1 (set by /Users/myname/.pyenv/version)

--If you check the version, it is 3.8.1.

$ python -V
Python 3.8.1

Install pip (just check it because it comes with Python 3)

$ pip install --upgrade pip
$ pip -V
pip 20.0.2 from /Users/myname/.pyenv/versions/3.8.1/lib/python3.8/site-packages/pip (python 3.8)

Installing Pipenv

-(Because if you do not do pip install pipenv, the pipenv included in the old 3.7.4 will be used.)

$ pip install pipenv
$ pipenv --version
pipenv, version 2018.11.26

Then edit bash_profile to get through the path of pyenv.

$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile

(^ω^)

Recommended Posts

Notes on installing pipenv on Mac
Notes on installing dlib on mac
Notes on installing Python on Mac
Notes on installing PycURL
Notes on installing Anaconda 3 on Windows
Notes on installing Python on CentOS
Notes on installing Python using PyEnv
Notes on installing Ubuntu 18.04 on the XPS 15 7590
(Beginner) Notes on using pyenv on Mac
Notes for installing Sublime Text on Ubuntu
Notes on Flask
Notes on building Python and pyenv on Mac
python on mac
Check! Troubleshooting when installing PyObjc on Mac
Notes on installing Caffe in CPU mode on Mac OSX 10.11 (El Captain)
Notes on installing Python3 and using pip on Windows7
Install Tensorflow on Mac
Install pyenv on mac
Notes on neural networks
Pyenv + virtualenv on Mac
Celery notes on Django
Install Ansible on Mac
Install Python on Mac
Install Python 3 on Mac
numba installation on mac
Installing pandas on python2.6
Run OpenMVG on Mac
Install Python 3.4 on Mac
Installing pyenv on ubuntu 16.04
Install Caffe on Mac
Install mecab on mac
Notes on using Alembic
Install mecab-python on Mac
Try deepdream on Mac
Notes on SciPy.linalg functions
Instructions for installing CUDA 7.5 on Mac (El Capitan) + Homebrew
Installing Python 3 on Mac and checking basic operation Part 1
Minimum notes when using Python on Mac (Homebrew edition)
Notes on tf.function and Tracing
Pyramid + mongodb environment on Mac
Install pygame on python3.4 on mac
Notes on * args and ** kargs
Notes on defining PySide slots (2)
[Django] Notes on using django-debug-toolbar
Notes on pyenv and Atom
Notes on defining PySide slots
Install numba on your Mac
[Python] Notes on data analysis
Handling of python on mac
Update python on Mac to 3.7-> 3.8
Install pandas 0.14 on python3.4 [on Mac]
Notes on optimization using Pytorch
Notes on studying multidimensional scaling
Install Django on your Mac
Pyenv on Mac OSX Mavericks
Install pillow on Mac OSX 10.9
[Mac] Tips: Install pyquery on Mac [pyquery]
Use matplot libwidget on mac
Memo on Mac OS X
Catalina on Mac and pyenv
Notes on imshow () in OpenCV