[PYTHON] Options when installing libraries that cannot be piped with pyenv

background

I tried to run the latest release version of ninix-aya that is persistently continuing with Docker, but I could not install ghosts well with Python3.4, so it seems that it is being developed for 3.3, so I introduced pyenv.

GPyGObject used in ninix-aya must be manually inserted in pip except for Windows platforms.

problem

Even if you can change the python command to any version with pyenv, the ./configure && make system will be put in / usr / local etc. by default. With this, even if you can easily change the python version with pyenv, you will end up building every time.

Solution

Use pyenv prefix

I solved it by using the pyenv prefix of the command that is only on the python uninstall method installed on the official page of pyenv.

./configure --prefix=$(pyenv prefix)

Specify like this.

Summary

Perhaps using Virtualenv solves this problem, but I haven't used it so far because it's annoying.

Recommended Posts

Options when installing libraries that cannot be piped with pyenv
Import libraries that cannot be pip installed with PyCharm
Parallel computing (pathos) when dealing with objects that cannot be pickled
Items that cannot be imported with sklearn
When Html cannot be output with Jupyter Notebook
Investigation when import cannot be done with python
PIL cannot be installed by virtualenv with pyenv
[android] When AVD cannot be used with permission denied
Causes when python version cannot be changed using pyenv
Solution when the image cannot be displayed with tkinter [python]
Problem that pip install cannot be done with pyenv + Yosemite (error: command'clang' failed with exit status 1)
When Times New Roman cannot be used with matplotlib (Ubuntu)
When USB cannot be formatted
Examples and solutions that cannot be optimized well with scipy.optimize.least_squares
List of libraries to install when installing Python using Pyenv
When pydub cannot be installed
Precautions when installing tensorflow with anaconda
Set python compile options with pyenv
Measures that pip install cannot be done with pycharm or import ssl cannot be done
Address to the bug that node.surface cannot be obtained with python3 + mecab
Specify options when running flake8 with flycheck
A struggle when installing pyenv on Cygwin
A workaround when installing pyAudio with pip.
Python modules with "-(hyphen)" cannot be removed
Be careful when running CakePHP3 with PHP7.2
Solution when aws-cli cannot be executed on Mac virtual environment (after installing Python 3.8)
About the matter that localhost: 4040 cannot be accessed after running Spark with Docker
What to do if you get an error when installing python with pyenv