Python Forum
[split] Windows can't find installed packages
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Windows can't find installed packages
#11
Here is a screen shot of me trying to import beautifulsoup4. VS Code won't allow me to import - it just suggests a bunch of modules.
[Image: j08EYY.png]

I'm sorry, but i'm still lost on how to import beautifulsoup - or any other module into VS Code.

(Nov-26-2019, 04:43 PM)buran Wrote: Also,, looking at the second image, isn't there also Anaconda installation? there is .conada\envs\ebv\python.exe
Yes, I understand I have conda installed. But, apparently, conda does not have beautifulsoup.

How can I install SCRAPY?

Thanks, Huh
"Human history becomes more and more a race between education and catastrophe." - H. G. Wells (1866-1946)
Reply
#12
(Nov-26-2019, 08:06 PM)deep_logic Wrote: I'm sorry, but i'm still lost on how to import beautifulsoup - or any other module into VS Code.
I think you most read better what i post or link i give you.
What's showing down in your left corner Python: Select Interpreter your image don't show that?
After Interpreter is set to 3.8 the language server start downloading,so autocomplete and IntelliSense works.
Then it will work if you have installed beautifulsoup to 3.8 with pip.

Test if i use 3.8,still have 3.7 as main version in Windows path.
Therefor i just take if from folder of 3.8.
C:\Python38\Scripts
λ pip install beautifulsoup4
Collecting beautifulsoup4
  Downloading ....
Installing collected packages: soupsieve, beautifulsoup4
Successfully installed beautifulsoup4-4.8.1 soupsieve-1.9.5
# Test
C:\Python38\Scripts
λ cd ..
 
C:\Python38
λ python
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import bs4
>>> bs4.__version__
'4.8.1'
 
>>> # The normal import you use
>>> from bs4 import BeautifulSoup
>>>
So now work if from command line if i choose Python 3.8 Interpreter in VS Code,then BeautifulSoup work with 3.8 in VS code.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Launcher (on Windows) only necessary when 2 or more Python versions installed? pstein 1 308 Feb-17-2024, 12:43 PM
Last Post: deanhystad
  How to find out from outside Python (in Windows) the current version of Python? pstein 4 728 Oct-04-2023, 10:01 AM
Last Post: snippsat
  How do I find the 64 bit download for Windows? Blackwood 1 1,483 Aug-18-2020, 11:19 AM
Last Post: snippsat
  [split] SyntaxError when trying to execute code on Windows nehaya 2 1,987 Aug-04-2020, 11:18 AM
Last Post: nehaya
  how to find module in installed packages keuninkske 3 3,186 May-09-2020, 10:21 PM
Last Post: keuninkske
  pycharm cannt find dlib which is installed kevinlee325 2 4,286 Oct-15-2019, 04:56 AM
Last Post: kevinlee325
  [split] FileNotFoundError...System cannot find the path specified powerrocker 1 2,043 Oct-03-2019, 09:09 AM
Last Post: buran
  Windows can't find installed packages TSheets13 7 7,557 Oct-02-2019, 06:12 PM
Last Post: snippsat
  Split pyscaffold project into packages locally mucrom 0 1,498 Aug-05-2019, 12:07 PM
Last Post: mucrom
  Python can't find module installed in anaconda iFunKtion 12 54,473 Mar-06-2019, 05:15 PM
Last Post: jwsmallz

Forum Jump:

User Panel Messages

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