Jun-08-2021, 06:57 PM
(Jun-08-2021, 06:21 PM)Led_Zeppelin Wrote: But lxml is already there. I can show your the output of conda list.If use miniconda most active
base
environment. Example.
G:\miniconda3 λ cd Scripts\ G:\miniconda3\Scripts λ activate.bat # See base() (base) G:\miniconda3\Scripts λ cd .. (base) G:\miniconda3 λ pip show lxml Name: lxml Version: 4.6.3 Summary: Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API. Home-page: https://lxml.de/ Author: lxml dev team Author-email: [email protected] License: BSD Location: g:\miniconda3\lib\site-packages Requires: Required-by: (base) G:\miniconda3As you see location is miniconda,if not base is active will use OS Python.
I have lxml in both so for it dos not matter.
C:\Users\Tom λ pip show lxml Name: lxml Version: 4.6.2 Summary: Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API. Home-page: https://lxml.de/ Author: lxml dev team Author-email: [email protected] License: BSD Location: c:\python39\lib\site-packages Requires: Required-by: yfinance, Scrapy, python-docx, parselRunning code with miniconda.
G:\ λ cd miniconda3\Scripts\ G:\miniconda3\Scripts λ activate.bat (base) G:\miniconda3\Scripts λ cd .. (base) G:\miniconda3 λ python cnn.py CNN International - Breaking News, US News, World News and VideoI use cmder here commands are same if use cmd/powershell.