bs4 python module issue
up vote
0
down vote
favorite
When I run the command:
python checker.py capture.xml indication NULL
I get the error:
Traceback (most recent call last): File "checker.py", line 1, in
ModuleNotFoundError: No module named 'bs4'
so I decided install bs4 in Python 24 but when I do:
pip install bs4
I get this message:
Requirement already satisfied: bs4 in c:program
filespython36libsite-packages Requirement already satisfied:
beautifulsoup4 in c:program filespython36libsite-packages (from
bs4) You are using pip version 9.0.1, however version 18.1 is
available. You should consider upgrading via the 'python -m pip
install --upgrade pip' command.
so indeed, the module is in that folder so I added c:program filespython36lib to the path environment variable just in case, but I'm getting the same thing.
Any idea on how to solve this, please?
windows python xml python3
add a comment |
up vote
0
down vote
favorite
When I run the command:
python checker.py capture.xml indication NULL
I get the error:
Traceback (most recent call last): File "checker.py", line 1, in
ModuleNotFoundError: No module named 'bs4'
so I decided install bs4 in Python 24 but when I do:
pip install bs4
I get this message:
Requirement already satisfied: bs4 in c:program
filespython36libsite-packages Requirement already satisfied:
beautifulsoup4 in c:program filespython36libsite-packages (from
bs4) You are using pip version 9.0.1, however version 18.1 is
available. You should consider upgrading via the 'python -m pip
install --upgrade pip' command.
so indeed, the module is in that folder so I added c:program filespython36lib to the path environment variable just in case, but I'm getting the same thing.
Any idea on how to solve this, please?
windows python xml python3
1
So which version of python are you running? Python 2.4 or python 3.6? You have to add the executable to the path, then ensure the pip bootstrap is on. Then you should call the apropiate pip for the apropiate version.
– dmb
Nov 20 at 12:56
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
When I run the command:
python checker.py capture.xml indication NULL
I get the error:
Traceback (most recent call last): File "checker.py", line 1, in
ModuleNotFoundError: No module named 'bs4'
so I decided install bs4 in Python 24 but when I do:
pip install bs4
I get this message:
Requirement already satisfied: bs4 in c:program
filespython36libsite-packages Requirement already satisfied:
beautifulsoup4 in c:program filespython36libsite-packages (from
bs4) You are using pip version 9.0.1, however version 18.1 is
available. You should consider upgrading via the 'python -m pip
install --upgrade pip' command.
so indeed, the module is in that folder so I added c:program filespython36lib to the path environment variable just in case, but I'm getting the same thing.
Any idea on how to solve this, please?
windows python xml python3
When I run the command:
python checker.py capture.xml indication NULL
I get the error:
Traceback (most recent call last): File "checker.py", line 1, in
ModuleNotFoundError: No module named 'bs4'
so I decided install bs4 in Python 24 but when I do:
pip install bs4
I get this message:
Requirement already satisfied: bs4 in c:program
filespython36libsite-packages Requirement already satisfied:
beautifulsoup4 in c:program filespython36libsite-packages (from
bs4) You are using pip version 9.0.1, however version 18.1 is
available. You should consider upgrading via the 'python -m pip
install --upgrade pip' command.
so indeed, the module is in that folder so I added c:program filespython36lib to the path environment variable just in case, but I'm getting the same thing.
Any idea on how to solve this, please?
windows python xml python3
windows python xml python3
asked Nov 20 at 9:56
itd
133
133
1
So which version of python are you running? Python 2.4 or python 3.6? You have to add the executable to the path, then ensure the pip bootstrap is on. Then you should call the apropiate pip for the apropiate version.
– dmb
Nov 20 at 12:56
add a comment |
1
So which version of python are you running? Python 2.4 or python 3.6? You have to add the executable to the path, then ensure the pip bootstrap is on. Then you should call the apropiate pip for the apropiate version.
– dmb
Nov 20 at 12:56
1
1
So which version of python are you running? Python 2.4 or python 3.6? You have to add the executable to the path, then ensure the pip bootstrap is on. Then you should call the apropiate pip for the apropiate version.
– dmb
Nov 20 at 12:56
So which version of python are you running? Python 2.4 or python 3.6? You have to add the executable to the path, then ensure the pip bootstrap is on. Then you should call the apropiate pip for the apropiate version.
– dmb
Nov 20 at 12:56
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
It seems likely that your python
command is referencing Python 2.4 (or some other installation of Python), while pip
is referencing the version of pip
installed with Python 3.6 in e.g. C:Program FilesPython36. You can double-check the location of the python.exe
called from the command line with where python
.
Assuming the location returned by where python
isn't e.g. C:Program FilesPython36python.exe
, I would suggest checking both your User PATH and System Path environment variables. Make sure that e.g. C:Program FilesPython36
is present and remove any similar references to alternate Python installations.
The other (non-destructive) option is to simply specify the full path to the python.exe
you wish to use e.g.:
"C:Program FilesPython36python.exe" checker.py capture.xml indication NULL
Notes
Since you have Python 3.6 installed, you may have the Python Launcher for Windows installed as well. If this is the case, you can try replacing
python
with e.g.py -3.6
like so:
py -3.6 checker.py capture.xml indication NULL
I have made some assumptions about capitalization in the paths above. Obviously, you should use whatever capitalization suits your installation.
While I don't believe this is relevant to answering your particular question, as a tip I would suggest installing Python into a directory without spaces (i.e. not C:Program Files). This can help eliminate potential problems with file or folder paths in the future.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
It seems likely that your python
command is referencing Python 2.4 (or some other installation of Python), while pip
is referencing the version of pip
installed with Python 3.6 in e.g. C:Program FilesPython36. You can double-check the location of the python.exe
called from the command line with where python
.
Assuming the location returned by where python
isn't e.g. C:Program FilesPython36python.exe
, I would suggest checking both your User PATH and System Path environment variables. Make sure that e.g. C:Program FilesPython36
is present and remove any similar references to alternate Python installations.
The other (non-destructive) option is to simply specify the full path to the python.exe
you wish to use e.g.:
"C:Program FilesPython36python.exe" checker.py capture.xml indication NULL
Notes
Since you have Python 3.6 installed, you may have the Python Launcher for Windows installed as well. If this is the case, you can try replacing
python
with e.g.py -3.6
like so:
py -3.6 checker.py capture.xml indication NULL
I have made some assumptions about capitalization in the paths above. Obviously, you should use whatever capitalization suits your installation.
While I don't believe this is relevant to answering your particular question, as a tip I would suggest installing Python into a directory without spaces (i.e. not C:Program Files). This can help eliminate potential problems with file or folder paths in the future.
add a comment |
up vote
0
down vote
accepted
It seems likely that your python
command is referencing Python 2.4 (or some other installation of Python), while pip
is referencing the version of pip
installed with Python 3.6 in e.g. C:Program FilesPython36. You can double-check the location of the python.exe
called from the command line with where python
.
Assuming the location returned by where python
isn't e.g. C:Program FilesPython36python.exe
, I would suggest checking both your User PATH and System Path environment variables. Make sure that e.g. C:Program FilesPython36
is present and remove any similar references to alternate Python installations.
The other (non-destructive) option is to simply specify the full path to the python.exe
you wish to use e.g.:
"C:Program FilesPython36python.exe" checker.py capture.xml indication NULL
Notes
Since you have Python 3.6 installed, you may have the Python Launcher for Windows installed as well. If this is the case, you can try replacing
python
with e.g.py -3.6
like so:
py -3.6 checker.py capture.xml indication NULL
I have made some assumptions about capitalization in the paths above. Obviously, you should use whatever capitalization suits your installation.
While I don't believe this is relevant to answering your particular question, as a tip I would suggest installing Python into a directory without spaces (i.e. not C:Program Files). This can help eliminate potential problems with file or folder paths in the future.
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
It seems likely that your python
command is referencing Python 2.4 (or some other installation of Python), while pip
is referencing the version of pip
installed with Python 3.6 in e.g. C:Program FilesPython36. You can double-check the location of the python.exe
called from the command line with where python
.
Assuming the location returned by where python
isn't e.g. C:Program FilesPython36python.exe
, I would suggest checking both your User PATH and System Path environment variables. Make sure that e.g. C:Program FilesPython36
is present and remove any similar references to alternate Python installations.
The other (non-destructive) option is to simply specify the full path to the python.exe
you wish to use e.g.:
"C:Program FilesPython36python.exe" checker.py capture.xml indication NULL
Notes
Since you have Python 3.6 installed, you may have the Python Launcher for Windows installed as well. If this is the case, you can try replacing
python
with e.g.py -3.6
like so:
py -3.6 checker.py capture.xml indication NULL
I have made some assumptions about capitalization in the paths above. Obviously, you should use whatever capitalization suits your installation.
While I don't believe this is relevant to answering your particular question, as a tip I would suggest installing Python into a directory without spaces (i.e. not C:Program Files). This can help eliminate potential problems with file or folder paths in the future.
It seems likely that your python
command is referencing Python 2.4 (or some other installation of Python), while pip
is referencing the version of pip
installed with Python 3.6 in e.g. C:Program FilesPython36. You can double-check the location of the python.exe
called from the command line with where python
.
Assuming the location returned by where python
isn't e.g. C:Program FilesPython36python.exe
, I would suggest checking both your User PATH and System Path environment variables. Make sure that e.g. C:Program FilesPython36
is present and remove any similar references to alternate Python installations.
The other (non-destructive) option is to simply specify the full path to the python.exe
you wish to use e.g.:
"C:Program FilesPython36python.exe" checker.py capture.xml indication NULL
Notes
Since you have Python 3.6 installed, you may have the Python Launcher for Windows installed as well. If this is the case, you can try replacing
python
with e.g.py -3.6
like so:
py -3.6 checker.py capture.xml indication NULL
I have made some assumptions about capitalization in the paths above. Obviously, you should use whatever capitalization suits your installation.
While I don't believe this is relevant to answering your particular question, as a tip I would suggest installing Python into a directory without spaces (i.e. not C:Program Files). This can help eliminate potential problems with file or folder paths in the future.
answered Nov 21 at 11:46
Anaksunaman
5,11321222
5,11321222
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376921%2fbs4-python-module-issue%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
So which version of python are you running? Python 2.4 or python 3.6? You have to add the executable to the path, then ensure the pip bootstrap is on. Then you should call the apropiate pip for the apropiate version.
– dmb
Nov 20 at 12:56