How can I install python3-dev in Oracle Linux?
yum install python3-dev
is not working.
It gives a message:
No package python3-dev available.
I need python3-dev to convert a python script to Linux executable using Cython.
I tried to search rpm files, that also did not work.
friend, OL6 and OL7 repo havent python 3, only 2
then:
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
xz -d Python-3.6.5.tar.xz
tar -xvf Python-3.6.5.tar
cd Python-3.6.5
./configure
make
make test
sudo make install
if no step goes wrong, take a coffe, wait about 10 minutes in make test phase and be happy.
The hard way is with the following statements:
Note I used oraclelinux:7-slim docker container
yum -y install wget \
&& yum -y install gcc readline readline-devel \
&& yum -y install zlib zlib-devel \
&& yum -y install libffi-devel openssl-devel \
&& yum -y install tar gzip \
&& yum -y install make \
&& yum clean all
wget https://www.python.org/ftp/python/3.7.5/Python-3.7.5.tgz \
&& tar -xf Python-3.7.5.tgz \
&& cd Python-3.7.5 \
&& ./configure --enable-optimizations \
&& make \
&& make test
&& make install
And the easy way is:
yum update \
&& yum -y install python3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With