简体   繁体   中英

In aws ec2, sudo: apt-get: command not found error

I have created an instance in amazon Linux. and I want to install python-dev. for this I was using sudo apt-get install python-dev or any other package. but it throws me the command not found error. instead of apt-get, I was used yum command but that is also not working.

I have created a flask application and I am using FileZilla and putty. I am running application (python files) using putty. I have install pycrypto but then also it is showing no module name. so somewhere I learned that I have install package python-dev. for that purpose I was using apt-get command.

Amazon linux is based on redhat distribution. So you should yum install [package name] instead of apt-get'. the command apt-get'. the command apt-get command is used in debian` based distribution.

You can use yum search [package name] to search for packages by name.

hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM