I installed the python library, but dreampie will not import it

I installed the python library in python3.3. When I run the interpreter in Dreampie, it cannot find my newly installed library, which leads to an error, for example:

>>> from bs4 import BeautifulSoup Traceback (most recent call last): File "<pyshell#4>", line 1, in <module> from bs4 import BeautifulSoup ImportError: No module named 'bs4' 
+4
source share
1 answer

This is a 1.2 bug. To get around this, in the "Edit | Settings | Shell" section, add the following line to the auto-launch code in the black box:

 import site site.addsitedir(r'C:\Python33\lib\site-packages') 
+6
source

Source: https://habr.com/ru/post/1480887/


All Articles