Jump to content

BS4 refuses to install?

LightCode Gaming
Go to solution Solved by fizzlesticks,
3 minutes ago, LightCode Gaming said:

"'pip' is not recognized as an internal or external command, operable program, or batch file."

Does it need to be in the python folder when I do it?

 

 

In the Python/Scripts/ folder.

So I just downloaded python3.5 for windows and I went to get the BS4 module, but it keeps refusing to install, saying "RESTART: C:\Users\<name changed for security>\Downloads\beautifulsoup4-4.4.1\beautifulsoup4-4.4.1\setup.py"

Any idea what I'm doing wrong?

GIGABYTE Z97MX-G516GB DDR3 | I5 4690k @ 4.4ghz | 1TB SSHD, 500GB HDD, 128GB SSD | GTX 1070 8GB | Corsair Graphite 230 | EVGA 650W | Hyper 212 EVO

 

Cinebench R15: 636(all cores), 127FPS

 

Link to comment
Share on other sites

Link to post
Share on other sites

Use pip instead of doing it manually.

 

pip install bs4

 

If you're already doing that, post the full error.

1474412270.2748842

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, fizzlesticks said:

Use pip instead of doing it manually.

 

pip install bs4

 

If you're already doing that, post the full error.

 

pip install?
I was running the setup.py through python3 like it told me to.

GIGABYTE Z97MX-G516GB DDR3 | I5 4690k @ 4.4ghz | 1TB SSHD, 500GB HDD, 128GB SSD | GTX 1070 8GB | Corsair Graphite 230 | EVGA 650W | Hyper 212 EVO

 

Cinebench R15: 636(all cores), 127FPS

 

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, LightCode Gaming said:

pip install?
I was running the setup.py through python3 like it told me to.

pip is a package manager that comes with Python. It downloads and installs packages for you and for whatever reason often works when running a setup file manually fails.

1474412270.2748842

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, fizzlesticks said:

pip is a package manager that comes with Python. It downloads and installs packages for you and for whatever reason often works when running a setup file manually fails.

 

Ok... So how do I use it to get BS4? I'm new to the whole python3 thing. 

GIGABYTE Z97MX-G516GB DDR3 | I5 4690k @ 4.4ghz | 1TB SSHD, 500GB HDD, 128GB SSD | GTX 1070 8GB | Corsair Graphite 230 | EVGA 650W | Hyper 212 EVO

 

Cinebench R15: 636(all cores), 127FPS

 

Link to comment
Share on other sites

Link to post
Share on other sites

9 minutes ago, LightCode Gaming said:

Ok... So how do I use it to get BS4? I'm new to the whole python3 thing. 

If you let Python add its scripts folder to the path when it installed just use the command

pip install bs4

If that can't find pip you'll need to navigate to the scripts folder inside where ever you installed Python and run that command from there.

1474412270.2748842

Link to comment
Share on other sites

Link to post
Share on other sites

"SytnaxError: Invalid syntax"
Says install is invalid?

GIGABYTE Z97MX-G516GB DDR3 | I5 4690k @ 4.4ghz | 1TB SSHD, 500GB HDD, 128GB SSD | GTX 1070 8GB | Corsair Graphite 230 | EVGA 650W | Hyper 212 EVO

 

Cinebench R15: 636(all cores), 127FPS

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, LightCode Gaming said:

"SytnaxError: Invalid syntax"
Says install is invalid?

Sorry, run the command in the command line, not inside the Python prompt.

1474412270.2748842

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, fizzlesticks said:

Sorry, run the command in the command line, not inside the Python prompt.

"'pip' is not recognized as an internal or external command, operable program, or batch file."

Does it need to be in the python folder when I do it?

 

 

GIGABYTE Z97MX-G516GB DDR3 | I5 4690k @ 4.4ghz | 1TB SSHD, 500GB HDD, 128GB SSD | GTX 1070 8GB | Corsair Graphite 230 | EVGA 650W | Hyper 212 EVO

 

Cinebench R15: 636(all cores), 127FPS

 

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, LightCode Gaming said:

"'pip' is not recognized as an internal or external command, operable program, or batch file."

Does it need to be in the python folder when I do it?

 

 

In the Python/Scripts/ folder.

1474412270.2748842

Link to comment
Share on other sites

Link to post
Share on other sites

12 minutes ago, fizzlesticks said:

In the Python/Scripts/ folder.

Thank you! :D

 

GIGABYTE Z97MX-G516GB DDR3 | I5 4690k @ 4.4ghz | 1TB SSHD, 500GB HDD, 128GB SSD | GTX 1070 8GB | Corsair Graphite 230 | EVGA 650W | Hyper 212 EVO

 

Cinebench R15: 636(all cores), 127FPS

 

Link to comment
Share on other sites

Link to post
Share on other sites

You need to run pip in Windows using the command (at the command line): python3 -m pip [commands].  So to install Beautiful Soup 4 (I assume that's what you mean by bs4), the command is python3 -m pip install beautifulsoup4.  This lets you run it from inside any folder, as long as Python added itself to your PATH variable when you installed it (if you can type just "python3" at the command line and get into an interactive Python session, then it added itself).

 

It's definitely a good idea to learn to use pip.  It makes it so, so much easier to deal with installing and uninstalling and keeping up to date all of your various Python libraries (but they really need to add a bloody "upgrade-all" option already).  Here's the official documentation for how to use it: https://docs.python.org/3/installing/

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×