ScottyLabs / HackerHelp

TartanHacks 2017 mentor request and dispatch system
1 stars 0 forks source link

pip not working properly #51

Closed seandkim closed 7 years ago

seandkim commented 7 years ago

Hacker name(s): Sean Physical location: Rangos Operating system(s): Mac Programming Langugage: Python

Description

I'm trying to use pip to download beautiful soup, but it keeps on downloading to python2 folders. I tried to uninstall python2 but couldn't get pip to link with python3. ### Screenshots
weihang7 commented 7 years ago

Try pip3.

seandkim commented 7 years ago

It says command not found

chrisying commented 7 years ago

Maybe try python3 -m pip install [package name]

seandkim commented 7 years ago
Collecting beautifulsoup
  Using cached BeautifulSoup-3.2.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/xx/qkxl6z5n4d748kscv5hhz3t00000gp/T/pip-build-vkd7vjm1/beautifulsoup/setup.py", line 22
        print "Unit tests have failed!"
                                      ^
    SyntaxError: Missing parentheses in call to 'print'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/xx/qkxl6z5n4d748kscv5hhz3t00000gp/T/pip-build-vkd7vjm1/beautifulsoup/
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
chrisying commented 7 years ago

try python3 -m pip install --upgrade pip first, it looks like the version of beautifulsoup you are trying to install isn't python3 supported.

chrisying commented 7 years ago

also try python3 -m pip install -U beautifulsoup4 (it's apparently a different version). @seandkim

seandkim commented 7 years ago

^That solved it. thank you.