Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't install scapy #37

Closed
Dmjmayham opened this issue Jan 25, 2017 · 3 comments
Closed

I can't install scapy #37

Dmjmayham opened this issue Jan 25, 2017 · 3 comments
Assignees
Labels

Comments

@Dmjmayham
Copy link

When I run sudo pip install scapy this is the output.

$ sudo pip install scapy
[sudo] password for local:
The directory '/home/local/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/local/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting scapy
Downloading scapy-2.3.3.tgz (1.4MB)
100% |████████████████████████████████| 1.4MB 174kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-_387cm2b/scapy/setup.py", line 36
os.chmod(fname, 0755)
^
SyntaxError: invalid token
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-57m3mly1/scapy/

This is without sudo

$ pip install scapy
Collecting scapy
Using cached scapy-2.3.3.tgz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-57m3mly1/scapy/setup.py", line 36
os.chmod(fname, 0755)
^
SyntaxError: invalid token
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-57m3mly1/scapy/

By the way I am running on Ubuntu Linux 16.04 LTS.

All help is very appreciated.
Thank You!

@iamianthomas
Copy link

iamianthomas commented Jan 25, 2017

@Dmjmayham I had same problem exit. Then type sudo apt-get install scapy; then once installed type python2.7 kickthemout.py.

@Dmjmayham
Copy link
Author

@iamianthomas Thank you this solved my problem perfectly! I should of thought of doing apt-get.

@iamianthomas
Copy link

iamianthomas commented Jan 25, 2017 via email

@k4m4 k4m4 mentioned this issue Mar 1, 2017
@KnifeBoss KnifeBoss mentioned this issue Mar 27, 2017
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants