What to do if you get an Undefined error when trying to use pip with pyenv

When I tried to use python after a long time, I started using pyenv as usual, but After entering the pip command to include a package

/usr/local/Cellar/pyenv/20141211/libexec/pyenv-exec: line 47: /Users/username/.pyenv/versions/3.4.2/bin/pip: Undefined error: 0

What an error I got, so how to deal with it.

environment

OS X Yosemite 10.10.5 Use brew

approach

Update pyenv with homebrew and It was fixed by ʻuninstall → ʻinstall the version of python that is already included.

pyenv uninstall version name
pyenv install version name

It may not be necessary to update pyenv separately.

Reinstalling with just ʻinstall without doing ʻuninstall did not fix it.

Recommended Posts

What to do if you get an Undefined error when trying to use pip with pyenv
What to do if you get an error when installing python with pyenv
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if you get an error when trying to load mnist
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get an error when importing matplotlib in Python (Mac)
I get an error when trying to install maec 4.0.1.0 with pip
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you get an error when running "certbot renew" in CakePHP environment
What to do if pyenv install does not proceed with an error
What to do if an error occurs when importing numpy with VScode
What to do if you get Could not fetch URL 443 with pip
What to do if you get a must override `get_config` error when trying to model.save in Keras
What to do if you get a Permission denied (public key) error when trying to pull on Github
[AWS] What to do when you want to pip with Lambda
What to do when an error occurs with import _ssl
EC2 / Amazon Linux2: What to do if you get an "unable to execute'gcc': No such file or directory" error with pip install
What to do if you get an "unknown service" error from your gRPC server
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you run python in IntelliJ and end with an error
What to do if you can't install pyaudio with pip #Python
[Beanstalk] What to do when an error occurs with import uuid
What to do if you get an Undefined error:'Module_six_moves_urllib_parse' object has no attribute'urlencode' on MacOS
What to do if you get the error RuntimeError: Python is not installed as a framework when trying to use matplitlib and pylab in Python 3.3
What to do if you couldn't send an email to Yahoo with Python.
What to do if you get lost in file reference with FileNotFoundError
What to do if you get a TypeError with numpy min, max
What to do if you can't install with pip in babun environment
What to do if you get an error saying c compiler cannot create executables in configure
What to do if you get an error when vagrant up when you enable public_network or private_network on Vagrant + Arch Linux → Install netctl
[Python] What to do if an error occurs in pip (pyinstaller, pyautogui, etc.)
What to do if you get a "No versions found" error in pipenv
What to do if you get angry with swapon failed: Operation not permitted
What to do if you get an error like'Qstring' has already been set to version 1 using mne python
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
What to do if you get angry with "Value Error: unknown local: UTF-8" in python manage.py syncdb
If you get a long error when tabbing an interactive shell with Anaconda
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
How to install and use pyenv, what to do if you can't switch python versions
What to do if you don't want to use Japanese column names when using ortoolpy.logistics_network
What to do if you get "coverage unknown" in Coveralls
What to do if you can't sort files with subscripts
What to do if you get a Call with too many input arguments error at DoAndReturn in a golang test
What to do if a communication error occurs due to proxy when installing with package management of pip, npm, gem
What to do if you get Swagger-codegen in python and Import Error: No module named
What to do if you get a minus zero in Python
What to do if you can't build your project with Maven
What to do if you can't use the trash in Lubuntu 18.04.
What to do when you get "I can't see the site !!!!"
If you should have pip installed but get an Import error
When I get an error with PyInstaller
What to do if you get angry if you don't have libxml / xmlversion.h when installing lxml on CentOS
What to do if you can't find well with grep's -f option
What to do if you can't use scikit grid search in Python
What to do if you get angry in TensorFlow v2 without attribute'app'
What to do if you get stuck during Anaconda installation on Linux
[Python] What to do when an error related to SSL authentication is returned
What to do when psycopg2 throws an error when pipenv lock under Pipenv environment
What to do if you get "The session could not be opened" when installing CentOS on VirtualBox
[Django] What to do if an Integrity Error occurs when registering data from the management site to the database
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda