Python Forum
Old problem back hunting me installing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Old problem back hunting me installing
#1
Hello
Been a long time, but been working hard to learn python.
I can solve most of my problems. I can't understand this one at all.
I have python 2.7.14 and python3.6.4 installed.
I am trying to install bs4 and requests on python 3.6.4,


See the try below

Output:
C:\Python36\Scripts>pip install beautifulsoup4 requests lxml Requirement already satisfied: beautifulsoup4 in c:\python27\lib\site-packages (4.6.0) Requirement already satisfied: requests in c:\python27\lib\site-packages (2.18.4) Requirement already satisfied: lxml in c:\python27\lib\site-packages (4.2.1) Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\python27\lib\site-packages (from requests) (1.22) Requirement already satisfied: idna<2.7,>=2.5 in c:\python27\lib\site-packages (from requests) (2.6) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python27\lib\site-packages (from requests) (3.0.4) Requirement already satisfied: certifi>=2017.4.17 in c:\python27\lib\site-packages (from requests) (2018.1.18)
Output:
C:\Python36\Scripts>pip install beautifulsoup4 requests lxml Requirement already satisfied: beautifulsoup4 in c:\python27\lib\site-packages (4.6.0) Requirement already satisfied: requests in c:\python27\lib\site-packages (2.18.4) Requirement already satisfied: lxml in c:\python27\lib\site-packages (4.2.1) Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\python27\lib\site-packages (from requests) (1.22) Requirement already satisfied: idna<2.7,>=2.5 in c:\python27\lib\site-packages (from requests) (2.6) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python27\lib\site-packages (from requests) (3.0.4) Requirement already satisfied: certifi>=2017.4.17 in c:\python27\lib\site-packages (from requests) (2018.1.18)
you can see I am in python3.6.4 dir. C:\Python36\Scripts>
when I use 'pip list' the same list come up and they all in 2.7.
I just can't get it to install python 3.6.4.
See their something new about python3.6.4?

Thank you
renny Wall
Reply
#2
I am not sure if that would solve your problem, but it is similar to what I had to do.
pip which is (and please correct me, if I am wrong) for python2.x. When I want to install a module for python3.x I run python3 -m pip install bs4 (this would be for bs4). But since I am running Linux I am not sure if that is the solution on windows.
Reply
#3
in addition to @ThiefOfTime solution that should work you may want to try pip3 install bs4
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#4
(May-25-2018, 01:14 AM)Blue Dog Wrote: you can see I am in python3.6.4 dir. C:\Python36\Scripts>
when I use 'pip list' the same list come up and they all in 2.7.
I just can't get it to install python 3.6.4.
See their something new about python3.6.4?
You have not marked on pip under install 3.6.4(that's why there are no pip.exe in Scripts folder).
Follow Python 3.6 and pip installation under Windows
The problem now is that 2.7 is set Windows PATH Environment then python and pip point to 2.7.
Her how it shall look.
[Image: lwkZgx.jpg]

Python 2.7 an other version shall be access by using py(this is a py.exe that 3.6 install in windows folder).
The usage is shown here.
Reply
#5
Thanks, I have tryed most all of this be for I came here, but I got it fixed, deleted every thing and reinstalled it and it works fine now.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  A problem with installing scrapy Truman 17 9,527 May-24-2020, 07:55 PM
Last Post: Truman

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020