Linux Tutorial
(venv) [localhost]$sudo pip install -r requirements.txt
got the below error,
Running setup.py install for netifaces ... error ERROR: Command errored out with exit status 1: command: /home/user/testing/venv/bin/python3 -u -c 'import sys, cwd: /tmp/pip-install-t6b37ctn/netifaces/ Complete output (16 lines): running install running build running build_ext checking for getifaddrs...not found. checking for getnameinfo...not found. checking for socket IOCTLs...not found. checking for optional header files...none found. checking whether struct sockaddr has a length field...no. checking which sockaddr_xxx structs are defined...none! checking for routing socket support...no. checking for sysctl(CTL_NET...) support...no. checking for netlink support...no. building 'netifaces' extension gcc -pthread -Wno-unused-result unable to execute 'gcc': No such file or directory error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /
Tried to install netifaces using python3-netifaces using yum install,
(venv) [localhost]$ sudo yum install python3-netifaces
Installation is inprogress,
Fedora Modular 29 - x86_64 8.2 kB/s | 8.1 kB 00:00 Fedora Modular 29 - x86_64 - Updates 7.2 kB/s | 7.1 kB 00:00 Fedora 29 - x86_64 - Updates 7.5 kB/s | 6.3 kB 00:00 Fedora 29 - x86_64 9.3 kB/s | 8.2 kB 00:00 google-chrome 7.0 kB/s | 1.3 kB 00:00 Dependencies resolved. ============================================================================================================================================================================= Package Architecture Version Repository Size ============================================================================================================================================================================= Installing: python3-netifaces x86_64 0.10.6-5.fc29 fedora 23 k Transaction Summary ============================================================================================================================================================================= Install 1 Package Total download size: 23 k Installed size: 43 k Is this ok [y/N]: y Downloading Packages: python3-netifaces-0.10.6-5.fc29.x86_64.rpm 28 kB/s | 23 kB 00:00 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 12 kB/s | 23 kB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : python3-netifaces-0.10.6-5.fc29.x86_64 1/1 Running scriptlet: python3-netifaces-0.10.6-5.fc29.x86_64 1/1 Verifying : python3-netifaces-0.10.6-5.fc29.x86_64 1/1 Installed: python3-netifaces-0.10.6-5.fc29.x86_64 Complete!
Finally tried with pip3 and able to setup the project and install all the required packages and tools,
(venv) [localhost]$ sudo pip3 install -r requirements.txt
Linux Tutorial
Privacy Policy | Copyright2020 - All Rights Reserved. | Contact us | Report website issues in Github | Facebook page | Google+ page