Run the make command to compile the files:.The -enabled-shared option is used to build a shared library instead of a static library. If you are installing Python 3.8 in any other location, then you must specify the path using the -prefix option. configure -enable-shared -prefix=īy default, Python can be installed in any one of the following locations: If you are installing to a custom location, run the following command:.If you are installing to the standard location, run the following command.Run one of the following command to start installing Python 3.8 Change directory to where you decompressed the Python 3.8 package: cd /temp/Python-3.8.12ģ. Download Python 3.8 and decompress the package by running the following commands:Ĭd /temp curl -O tar -zxvf Python-3.8.12.tgzĢ.If you are interested to install python3.8 to a custom location then perform the following steps on your machine.īefore installing Python 3.8, you must install the necessary developer tools and packages such as gcc, make, Openssl-devel, Bzip2-devel, Libffi-devel, and Zlib-devel yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel -y The output will be: Python 3.8.6 Install Python3.8 to a custom location Now let’s verify the Python3 version as follows: python3 -version or just type python3 Just type the serial number of the version you want to use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |