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

can't install requirements.txt #7

Closed
zaldhyx77 opened this issue Jan 7, 2017 · 2 comments
Closed

can't install requirements.txt #7

zaldhyx77 opened this issue Jan 7, 2017 · 2 comments
Assignees
Labels

Comments

@zaldhyx77
Copy link

zaldhyx77 commented Jan 7, 2017

[zaldhy77@asus kickthemout-0.1]$ sudo pip install -r requirements.txt

Collecting scapy (from -r requirements.txt (line 1))
  Downloading scapy-2.3.3.tgz (1.4MB)
    100% |████████████████████████████████| 1.4MB 125kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-xz4btw2v/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-xz4btw2v/scapy/

@k4m4 k4m4 assigned k4m4 and xdavidhu Jan 7, 2017
@k4m4 k4m4 changed the title can't install requirements.txt Can't install requirements.txt Jan 7, 2017
@k4m4
Copy link
Owner

k4m4 commented Jan 7, 2017

This is an error which most probably occurs due to the python configuration on your machine.

Try running the following:

$ pip3 install scapy-python3

If this doesn't solve the error, try downloading scapy using a different installation method (try here).
Let me know if there is still an issue then.

Generally, scapy is a bit of a pain in the back when it comes to mac & windows.

@k4m4 k4m4 changed the title Can't install requirements.txt can't install requirements.txt Jan 7, 2017
@xdavidhu
Copy link
Collaborator

xdavidhu commented Jan 7, 2017

Try running this to reinstall pip before installing the dependencies:

sudo apt-get purge python-pip && sudo apt-get install python-pip

and also with pip3:

sudo apt-get purge python3-pip && sudo apt-get install python3-pip

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