What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"

If pyenv is installed and the version of python is changed, it seems that amazon-linux-extras cannot be used as shown below. So I'll make it usable.

Current error

$ amazon-linux-extras
/home/ec2-user/.pyenv/versions/3.7.0/bin/python: No module named amazon_linux_extras

solution

Click here for those who have python 3.7.0 in pyenv.

ln -s /lib/python2.7/site-packages/amazon_linux_extras ~/.pyenv/versions/3.7.0/lib/python3.7/site-packages/

Click here for those who have python 3.7.5 in pyenv.

ln -s /lib/python2.7/site-packages/amazon_linux_extras ~/.pyenv/versions/3.7.5/lib/python3.7/site-packages/

For other versions, please refer to this and rewrite. Now you can use the code around "amazon-linux-extras". ✌️

Recommended Posts

What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
What to do if you get Swagger-codegen in python and Import Error: No module named
What to do if yum breaks
What to do if Linux VLC can no longer rotate
ImportError: No module What to do when you are told
What to do when ModuleNotFoundError: No module named'XXX' occurs in Python
What to do if you can't pipenv shell
Note: What to do if pip install fails
What to do if mod_fcgid cannot resolve UnicodeEncodeError
What to do if rails s doesn't work
What to do if No Python documentation found for ... appears in pydoc
What to do if pip cannot be installed
What to do if Docker-sync suddenly stops working
What to do if you get a "No versions found" error in pipenv
What to do if pip install fails in Xcode 5.1
What to do if you can't pip install mysqlclient
What to do if SciPy installation fails on CentOS
What to do if a UnicodeDecodeError occurs in pip
pipenv shell is no longer available ... what to do?
What to do if sys / cdefs.h does not exist
What to do if pyenv is not enabled (zsh)
Resolve No module named tkinter
What to do if you get `No kernel for language python found` in Hydrogen
[Python] What to do when No module named'pyproj.datadir' appears when Exe is done with PyInstaller
What to do if ʻarguments [0] .scrollIntoView ();` fails in python selenium
What to do if the package dependency cannot be repaired
What to do if you are addicted to Windows character code
What to do if pip gives a DistributionError in Homebrew
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 a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do if package installation fails when deploying to heroku
What to do if `pip install matplotlib` fails on Mac
What to do if you can't log in as root
What to do if you can't use WiFi on Linux
What to do if pip install mysqlclient fails on MacOS
What to do if you lose your EC2 key pair
What to do if you get an Undefined error:'Module_six_moves_urllib_parse' object has no attribute'urlencode' on MacOS
If you can't use Beautiful Soup 4 after updating to Python 3.5. ImportError: No module named bs4
What to do with Magics install
'lambda_function': No module named When'selenium' appears
What to do with PYTHON release?
What to do to get tensorflow-gpu to work
How to resolve ModuleNotFoundError: No module named XXX in Jupyter Notebook
What to do if Python doesn't work on Git for Windows
What to do if you can't install pyaudio with pip #Python
What to do if intellisense doesn't work with Anaconda + VSCode + Tensorflow2.1
What to do if python says "fatal error:'stdio.h' file not found"
What to do if you get a UnicodeDecodeError with pip install
What to do if Insecure Platform Warning appears when running Python
What to do if "Unnamed: 0" is added in to_csv-> read_csv in pandas
What to do if you can't build your project with Maven
What to do if PyAudio cannot be installed on Python 3.7, 3.8, 3.9 on Windows
What to do if you can't use the trash in Lubuntu 18.04.
Django: What to do if TemplateDoesNotExist at / admin / after setting templates
What to do if grep: empty (sub) expression appears on Mac grep
When lambda-uploader says No module named xxxx.
What to do if you can't find well with grep's -f option
What to do if there is a decimal in python json .dumps