![]() The below lines will be a good try for this error:Įxport PYTHONPATH=/usr/local/lib/python3. ![]() Well, there could be another reason – the command ‘python3.7‘ is not able to find PYTHON installation path. The problem might be due to multiple Python installations on your machine and the command ‘python3.7‘ might be referring to libraries that belong to a different version of Python. ![]() Here’s the complete error message: # python3.7įatal Python error: Py_Initialize: Unable to get the locale encodingĬurrent thread 0x00007ff41bf46700 (most recent call first): To avoid the error below, export these paths:Įxport PYTHONHOME=/usr/local/lib/python3.7/Įxport PYTHONPATH=/usr/local/lib/python3.7/ Posible errors: Now if you check: python -version and pip -version you'll see 3.7 Place this into ~/.bashrc and ~/.bash_aliases file: alias python=python3.7Īfter adding the above in the file, run source ~/.bashrc and source ~/.bash_aliases ![]() To change this with a simple safe way would be to use an alias. If you type: python -version it's most likely to give you 2.7 or other different than 3.7. Pip should have been installed with this installation as well. Pull down Python 3.7, build, and install wget Sudo apt-get install -y build-essential \ ![]() sudo apt-get install build-essential libssl-dev libffi-dev python-dev. Install requirements # You can copy/paste it on the terminal: setup few more packages and development tools. First than anything make sure you have uninstall and clean all other python installation tries if you've done any, otherwise the build might fail. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |