Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux System Getting Started Learning: Fix ImportError: No module named scapy.all     - Port Telnet command to detect the remote host is turned on (Linux)

- Java rewrite the hashcode method (Programming)

- Ubuntu 14.10 Apache installation and configuration (Server)

- CentOS 7 Add yum source (Linux)

- Difference Docker mirror and containers (Server)

- Large site architecture study notes (Server)

- How to migrate MySQL to MariaDB under linux (Database)

- RabbitMQ user roles and access control (Linux)

- How to modify the Emacs Major Mode Shortcuts (Linux)

- how to quickly find a file on Linux system (Linux)

- MySQL innodb_table_stats table does not exist solution (Database)

- Linux fixes fatal error: x264.h: No such file or directo (Linux)

- Linux MultiPath software implementation instructions (Linux)

- Linux System Getting Started Learning: Repair (Linux)

- Linux command in the dialog whiptail (Linux)

- Compile and install GCC 4.8.1 + GDB 7.6.1 + Eclipse in CentOS 6.4 in (Linux)

- Two alert log ORA Errors (Database)

- A deep understanding of Java enum (Programming)

- Nginx1.8 version upgrade method AMH4.2 Free manually compile (Server)

- CentOS 7.0 Enable iptables firewall (Linux)

  Linux System Getting Started Learning: Fix ImportError: No module named scapy.all
  Add Date : 2017-08-31      
  Question: When I run a Python application, the emergence of this prompt message "ImportError: No module named scapy.all". How can I fix this error to import it?

Scapy written in Python is a flexible packet generator and sniffer program. Use Scapy, you can complete the creation of any data packet sent to the network, data is read from the network packet dump file or convert data packets and so on. Use Scapy generic packet processing capability, you can easily get the job done like SYN scans, TCP Trace Route and OS fingerprint detection and the like. You can also Import, Scapy will be integrated into other tools.

The import error indicates: Scapy you have not installed on your Linux system. The following describes an installation.

Scapy to install Debian, Ubuntu or Linux Mint

$ Sudo apt-get install python-scapy
Scapy to install Fedora or CentOS / RHEL

On CentOS / RHEL, you first need to enable EPEL repository.

$ Sudo yum install scapy
Source Installation Scapy

If your Linux version does not provide Scapy package, or you want to try the latest Scapy, you can manually use source packages installed.

Download the latest version of Scapy, and installed in accordance with the following procedure.

$ Unzip scapy-latest.zip
$ Cd scapy-2. *
$ Sudo python setup.py install

How to set up EPEL repository on CentOS

If you are using CentOS or RHEL, it is strongly recommended that you configure EPEL (Extra Packages for Enterprise Linux) repository on your system. EPEL is a community effort to create a repository of high-quality add-on free software packages for RHEL- based distributions. Once you set up EPEL repository, you can use yum command to install any of close to 7,000 EPEL packages.

In order to enable EPEL repository on your CentOS system, you need to check CentOS version. To do that, run the following command.

$ Cat / etc / RedHat-release
CentOS release 6.3 (Final)
Then install a corresponding EPEL release RPM package as follows. Note that the EPEL release RPM does not depend on the underlying processor architecture (eg, 32-bit / 64-bit x86, ppc, sparc, alpha, etc), so no need to pay attention to processor architecture difference.

Set up EPEL on CentOS 7

. Starting from CentOS 7, EPEL release RPM package is available in "extras" repo Therefore, simply use yum command to set up EPEL repository on these platforms:

$ Sudo yum install epel-release
Set up EPEL on CentOS 6 or Earlier

For earlier versions of CentOS, you can use rpm command to download and install a RPM file manually as follows.

For CentOS / RHEL 6. *:

$ Sudo rpm -Uvh http://mirrors.kernel.org/Fedora-epel/6/i386/epel-release-6-8.noarch.rpm
For CentOS / RHEL 5. *:

$ Sudo rpm -Uvh http://mirrors.kernel.org/fedora-epel/5/i386/epel-release-5-4.noarch.rpm
During installation, you may see the following warning, which indicates that EPEL's GPG key is missing.

warning: /var/tmp/rpm-tmp.3TKM2G: Header V3 RSA / SHA256 Signature, key ID 0608b895: NOKEY
The EPEL's official GPG key is found in / etc / pki / rpm-gpg. Go ahead and import the GPG key as follows.

$ Sudo sudo rpm --import / etc / pki / rpm-gpg / RPM-GPG-KEY-EPEL-6 (for CentOS 6)
$ Sudo sudo rpm --import / etc / pki / rpm-gpg / RPM-GPG-KEY-EPEL-7 (for CentOS 7)
To verify that EPEL repository has been set up successfully, run the following command to list all available repositories on your system.

$ Yum repolist
- Novice Advanced Ubuntu7.10 configured IP address (Linux)
- Java garbage collection and heap memory layout (Programming)
- Talking about the implementation and the JVM garbage collection mechanism (Programming)
- The correct way of logical backup mysqldump (Database)
- Java memory area Explanation (Programming)
- Linux maximum number of threads and limit the number of queries the current thread (Linux)
- OpenJDK7 source compiler installation on CentOS 6.5 (Linux)
- Git uses a small mind (Linux)
- MongoDB start under Linux (Database)
- GAMIT baseline solution using batch were counted (Linux)
- Oracle 10g in the unique and index problems (Database)
- Linux system installation and usage instructions Wetty (Linux)
- Linux System Getting Started Learning: Disable Ubuntu Apport internal error reporting procedures (Linux)
- Install Rubinius testing Ubuntu 14.04 native threads (Linux)
- Manually compile Hadoop 2.6.0 under Ubuntu 14.04 (Server)
- ORA-04091 and Compound Trigger (Oracle 11g) (Database)
- After the first remote installation GlassFish Web to remotely access their back office management system error solution appears (Server)
- Intruder tools Knark Analysis and Prevention Linux environment (Linux)
- Puppet 3.5 Source package Installation and Configuration (Server)
- linux smartd [FAILED] appears at startup (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.