Python Forum
Installing lxml and getting this warning
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing lxml and getting this warning
#1
I am running 64 bit Windows 10. I am trying to install lxml with the follwinng command

pip install lxml 
When I do that I get the following error.

Error:
WARNING: Error parsing requirements for beautifulsoup4: [Errno 2] No such file or directory: 'c:\\users\\james\\miniconda3\\envs\\base-dup\\lib\\site-packages\\beautifulsoup4-4.9.3.dist-info\\METADATA'
I also get some note that I will now show.

Output:
Requirement already satisfied: lxml in c:\users\james\miniconda3\envs\base-dup\lib\site-packages (4.6.2)Note: you may need to restart the kernel to use updated packages.
As I said I am using python on Windows 10.

A simple conda list command will show that lxml is already installed.

Output:
# packages in environment at C:\Users\james\miniconda3\envs\base-dup: # # Name Version Build Channel _tflow_select 2.3.0 eigen absl-py 0.10.0 pypi_0 pypi aiohttp 3.7.4 py38h2bbff1b_1 alembic 1.4.1 pypi_0 pypi aniso8601 9.0.1 pypi_0 pypi appdirs 1.4.4 pypi_0 pypi argon2-cffi 20.1.0 py38h2bbff1b_1 astor 0.8.1 py38haa95532_0 astunparse 1.6.3 py_0 async-timeout 3.0.1 py38haa95532_0 async_generator 1.10 pyhd3eb1b0_0 attrs 21.2.0 pyhd3eb1b0_0 autokeras 1.0.12 pypi_0 pypi autoviml 0.1.680 pypi_0 pypi azure-core 1.13.0 pypi_0 pypi azure-storage-blob 12.8.0 pypi_0 pypi backcall 0.2.0 pyhd3eb1b0_0 blas 1.0 mkl bleach 3.3.0 pyhd3eb1b0_0 blinker 1.4 py38haa95532_0 bokeh 2.3.2 py38haa95532_0 boto3 1.17.54 pypi_0 pypi botocore 1.20.54 pypi_0 pypi breadability 0.1.20 pypi_0 pypi brotlipy 0.7.0 py38h2bbff1b_1003 bs4 0.0.1 pypi_0 pypi ca-certificates 2021.7.5 haa95532_1 cachetools 4.2.1 pypi_0 pypi catboost 0.24.4 pypi_0 pypi category-encoders 2.2.2 pypi_0 pypi certifi 2021.5.30 py38haa95532_0 cffi 1.14.5 py38hcd4344a_0 chardet 3.0.4 py38haa95532_1003 chess 1.4.0 pypi_0 pypi chromedriver-binary 91.0.4472.19.0 pypi_0 pypi click 7.1.2 pypi_0 pypi collective-recipe-grp 1.1.0 pypi_0 pypi colorama 0.4.4 pyhd3eb1b0_0 conda-package-handling 1.7.3 py38h8cc25b3_1 console_shortcut 0.1.1 4 coverage 5.5 py38h2bbff1b_2 cryptography 3.4.7 py38h71e12ea_0 cssselect 1.1.0 pypi_0 pypi cycler 0.10.0 pypi_0 pypi cython 0.29.22 pypi_0 pypi databricks-cli 0.14.3 pypi_0 pypi deap 1.3.1 pypi_0 pypi decorator 5.0.9 pyhd3eb1b0_0 defusedxml 0.7.1 pyhd3eb1b0_0 dill 0.3.3 pypi_0 pypi distlib 0.3.1 pypi_0 pypi dm-tree 0.1.5 pypi_0 pypi docker 5.0.0 pypi_0 pypi docopt 0.6.2 pypi_0 pypi dotmap 1.3.23 pypi_0 pypi edward 1.3.5 pypi_0 pypi elastic-apm 6.1.2 pypi_0 pypi elasticsearch 7.10.0 pypi_0 pypi emoji 1.2.0 pypi_0 pypi entrypoints 0.3 py38_0 et-xmlfile 1.0.1 pypi_0 pypi faiss-cpu 1.7.0 pypi_0 pypi farm 0.7.1 pypi_0 pypi farm-haystack 0.8.0 pypi_0 pypi fastapi 0.63.0 pypi_0 pypi feather-format 0.4.1 pypi_0 pypi feature-selector N-A dev_0 <develop> flask 1.1.1 pypi_0 pypi flask-cors 3.0.10 pypi_0 pypi flask-restplus 0.13.0 pypi_0 pypi flatbuffers 1.12 pypi_0 pypi freetype 2.10.4 hd328e21_0 gast 0.4.0 py_0 gedit 0.0.2 pypi_0 pypi gitdb 4.0.7 pypi_0 pypi gitpython 3.1.14 pypi_0 pypi google-api-core 1.26.1 pypi_0 pypi google-auth 1.27.1 pypi_0 pypi google-auth-httplib2 0.1.0 pypi_0 pypi google-auth-oauthlib 0.4.3 pypi_0 pypi google-cloud-core 1.6.0 pypi_0 pypi google-crc32c 1.1.2 pypi_0 pypi google-pasta 0.2.0 py_0 google-resumable-media 1.2.0 pypi_0 pypi googleapis-common-protos 1.53.0 pypi_0 pypi greenlet 1.0.0 pypi_0 pypi grpcio 1.34.1 pypi_0 pypi grpcio-tools 1.37.0 pypi_0 pypi gunicorn 20.1.0 pypi_0 pypi h11 0.12.0 pypi_0 pypi h5py 3.1.0 pypi_0 pypi hdf5 1.10.4 h7ebc959_0 helper 2.5.0 pypi_0 pypi html5lib 1.1 pypi_0 pypi httplib2 0.19.0 pypi_0 pypi httptools 0.1.1 pypi_0 pypi icc_rt 2019.0.0 h0cc432a_1 icu 58.2 ha925a31_3 Note: you may need to restart the kernel to use updated packages.idna 2.10 pyhd3eb1b0_0 imbalanced-learn 0.8.0 pypi_0 pypi importlib-metadata 3.10.0 py38haa95532_0 importlib-resources 5.1.2 pypi_0 pypi importlib_metadata 3.10.0 hd3eb1b0_0 inflect 5.3.0 py38haa95532_1 intel-openmp 2021.1.2 pypi_0 pypi ipykernel 5.3.4 py38h5ca1d4c_0 ipython 7.22.0 py38hd4e2768_0 ipython_genutils 0.2.0 pyhd3eb1b0_1 ipywidgets 7.6.3 pyhd3eb1b0_1 isodate 0.6.0 pypi_0 pypi itsdangerous 1.1.0 pypi_0 pypi jedi 0.17.0 py38_0 jinja2 3.0.0 pyhd3eb1b0_0 jmespath 0.10.0 pypi_0 pypi joblib 0.13.2 pypi_0 pypi jpeg 9b hb83a4c4_2 jsonschema 3.2.0 py_2 jupyter 1.0.0 py38_7 jupyter-contrib-core 0.3.3 pypi_0 pypi jupyter-contrib-nbextensions 0.5.1 pypi_0 pypi jupyter-highlight-selected-word 0.2.0 pypi_0 pypi jupyter-latex-envs 1.4.6 pypi_0 pypi jupyter-nbextensions-configurator 0.4.1 pypi_0 pypi jupyter_client 6.1.12 pyhd3eb1b0_0 jupyter_console 6.4.0 pyhd3eb1b0_0 jupyter_core 4.7.1 py38haa95532_0 jupyterlab_pygments 0.1.2 py_0 jupyterlab_widgets 1.0.0 pyhd3eb1b0_1 keras 2.4.3 pypi_0 pypi keras-applications 1.0.8 py_1 keras-nightly 2.5.0.dev2021032900 pypi_0 pypi keras-preprocessing 1.1.2 pyhd3eb1b0_0 keras-tuner 1.0.2 pypi_0 pypi kiwisolver 1.3.1 py38hd77b12b_0 langdetect 1.0.8 pypi_0 pypi libopencv 4.0.1 hbb9e17c_0 libpng 1.6.37 h2a8f88b_0 libprotobuf 3.14.0 h23ce68f_0 libsodium 1.0.18 h62dcd97_0 libtiff 4.2.0 hd0e1b90_0 lightgbm 3.1.1 pypi_0 pypi llvmlite 0.36.0 pypi_0 pypi lxml 4.6.2 pypi_0 pypi lz4-c 1.9.3 h2bbff1b_0 m2w64-gcc-libgfortran 5.3.0 6 m2w64-gcc-libs 5.3.0 7 m2w64-gcc-libs-core 5.3.0 7 m2w64-gmp 6.1.0 2 m2w64-libwinpthread-git 5.0.0.4634.697f757 2 mabalgs 0.6.4 pypi_0 pypi mako 1.1.4 pypi_0 pypi markdown 3.3.4 py38haa95532_0 markupsafe 2.0.1 py38h2bbff1b_0 matplotlib 3.3.3 pypi_0 pypi matplotlib-base 3.3.4 py38h49ac443_0 matplotlib-inline 0.1.2 pypi_0 pypi menuinst 1.4.16 py38he774522_1 mistune 0.8.4 py38he774522_1000 mkl 2021.1.1 pypi_0 pypi mkl-service 2.3.0 py38h2bbff1b_1 mkl_fft 1.3.0 py38h277e83a_2 mkl_random 1.2.1 py38hf11a4ad_2 mlflow 1.13.1 pypi_0 pypi more-itertools 8.7.0 pypi_0 pypi msrest 0.6.21 pypi_0 pypi msys2-conda-epoch 20160418 1 multidict 5.1.0 py38h2bbff1b_2 nbclient 0.5.3 pyhd3eb1b0_0 nbconvert 6.0.7 py38_0 nbformat 5.1.3 pyhd3eb1b0_0 nest-asyncio 1.5.1 pyhd3eb1b0_0 nltk 3.5 pypi_0 pypi notebook 6.4.0 py38haa95532_0 numpy 1.19.5 pypi_0 pypi numpy-base 1.20.2 py38hc2deb75_0 oauthlib 3.1.0 py_0 olefile 0.46 py_0 opencv 4.0.1 py38h2a7c758_0 opencv-python 4.5.1.48 pypi_0 pypi openssl 1.1.1k h2bbff1b_0 opt_einsum 3.3.0 pyhd3eb1b0_1 packaging 20.9 pyhd3eb1b0_0 panda 0.3.1 pypi_0 pypi pandas 1.2.0 pypi_0 pypi pandoc 2.12 haa95532_0 pandocfilters 1.4.3 py38haa95532_1 parso 0.8.2 pyhd3eb1b0_0 patsy 0.5.1 pypi_0 pypi pdpbox 0.2.0 py_0 conda-forge/label/cf202003 pickleshare 0.7.5 pyhd3eb1b0_1003 pillow 8.1.0 pypi_0 pypi pip 21.0.1 pypi_0 pypi plotly 4.14.3 pypi_0 pypi powershell_shortcut 0.0.1 3 preprocessor 1.1.3 pypi_0 pypi progressbar 2.5 pypi_0 pypi prometheus-flask-exporter 0.18.1 pypi_0 pypi prometheus_client 0.10.1 pyhd3eb1b0_0 promise 2.3 pypi_0 pypi prompt-toolkit 3.0.17 pyh06a4308_0 prompt_toolkit 3.0.17 hd3eb1b0_0 proto-plus 1.14.2 pypi_0 pypi protobuf 3.15.5 pypi_0 pypi psutil 5.8.0 py38h2bbff1b_1 py-opencv 4.0.1 py38he44ac1e_0 pyarrow 3.0.0 pypi_0 pypi pyasn1 0.4.8 py_0 pyasn1-modules 0.2.8 pypi_0 pypi pycosat 0.6.3 py38h2bbff1b_0 pycountry 20.7.3 pypi_0 pypi pycparser 2.20 py_2 pydantic 1.8.1 pypi_0 pypi pyforest 1.0.3 pypi_0 pypi pyfunctional 1.4.3 pypi_0 pypi pygame 2.0.1 pypi_0 pypi pygments 2.9.0 pyhd3eb1b0_0 pyjwt 1.7.1 py38_0 pymilvus 1.0.1 pypi_0 pypi pyopenssl 20.0.1 pyhd3eb1b0_1 pyparsing 2.4.7 pyhd3eb1b0_0 pyqt 5.9.2 py38ha925a31_4 pyquery 1.4.3 pypi_0 pypi pyreadline 2.1 py38_1 pyrsistent 0.17.3 py38he774522_0 pysocks 1.7.1 py38haa95532_0 python 3.8.10 hdbf39b2_7 python-chess 1.999 pypi_0 pypi python-dateutil 2.8.1 pyhd3eb1b0_0 python-docx 0.8.10 pypi_0 pypi python-editor 1.0.4 pypi_0 pypi python-graphviz 0.16 pypi_0 pypi python-multipart 0.0.5 pypi_0 pypi python-slugify 4.0.1 pypi_0 pypi pytz 2020.5 pypi_0 pypi pywin32 227 py38he774522_1 pywinpty 0.5.7 py38_0 pyyaml 5.4.1 py38h2bbff1b_1 pyzmq 20.0.0 py38hd77b12b_1 qt 5.9.7 vc14h73c81de_0 qtconsole 5.0.3 pyhd3eb1b0_0 qtpy 1.9.0 py_0 querystring-parser 1.2.4 pypi_0 pypi rarfile 4.0 pypi_0 pypi rdflib 5.0.0 pypi_0 pypi regex 2020.11.13 pypi_0 pypi requests 2.25.1 pyhd3eb1b0_0 requests-futures 1.0.0 pypi_0 pypi requests-oauthlib 1.3.0 py_0 retrying 1.3.3 pypi_0 pypi rsa 4.7.2 pyhd3eb1b0_1 ruamel_yaml 0.15.100 py38h2bbff1b_0 runtime 0.1.4 pypi_0 pypi s3transfer 0.4.0 pypi_0 pypi sacremoses 0.0.45 pypi_0 pypi scikit-learn 0.24.2 py38hf11a4ad_1 scipy 1.6.0 pypi_0 pypi seaborn 0.11.1 pypi_0 pypi selenium 3.141.0 py38h2bbff1b_1000 send2trash 1.5.0 pyhd3eb1b0_1 sentence-transformers 1.0.4 pypi_0 pypi sentencepiece 0.1.95 pypi_0 pypi seqeval 1.2.2 pypi_0 pypi setuptools 51.3.3 pypi_0 pypi shap 0.39.0 pypi_0 pypi sip 4.19.13 py38ha925a31_0 six 1.15.0 py38haa95532_0 sklearn 0.0 pypi_0 pypi sklearn-utils 0.0.15 pypi_0 pypi slicer 0.0.7 pypi_0 pypi smmap 4.0.0 pypi_0 pypi soupsieve 2.1 pypi_0 pypi sparqlwrapper 1.8.5 pypi_0 pypi sportsreference 0.5.2 pypi_0 pypi sqlalchemy 1.4.9 pypi_0 pypi sqlalchemy-utils 0.37.0 pypi_0 pypi sqlite 3.35.4 h2bbff1b_0 sqlparse 0.4.1 pypi_0 pypi starlette 0.13.6 pypi_0 pypi statsmodels 0.12.1 pypi_0 pypi stopit 1.1.2 pypi_0 pypi sumy 0.8.1 pypi_0 pypi tabulate 0.8.7 pypi_0 pypi tbb 2021.1.1 pypi_0 pypi tensorboard 2.4.0 pyhc547734_0 tensorboard-data-server 0.6.1 pypi_0 pypi tensorboard-plugin-wit 1.8.0 pypi_0 pypi tensorflow 2.3.0 mkl_py38h8c0d9a2_0 tensorflow-addons 0.12.1 pypi_0 pypi tensorflow-base 2.3.0 eigen_py38h75a453f_0 tensorflow-datasets 4.2.0 pypi_0 pypi tensorflow-estimator 2.5.0 pyh7b7c402_0 tensorflow-hub 0.11.0 pypi_0 pypi tensorflow-metadata 0.28.0 pypi_0 pypi tensorflow-model-optimization 0.5.0 pypi_0 pypi tensorflow-text 2.4.3 pypi_0 pypi termcolor 1.1.0 pypi_0 pypi terminado 0.9.4 py38haa95532_0 terminaltables 3.1.0 pypi_0 pypi testpath 0.4.4 pyhd3eb1b0_0 text-unidecode 1.3 pypi_0 pypi textblob 0.15.3 pypi_0 pypi tf-slim 1.1.0 pypi_0 pypi threadpoolctl 2.1.0 pyh5ca1d4c_0 tika 1.19 pypi_0 pypi tk 8.6.10 he774522_0 tokenizers 0.9.4 pypi_0 pypi torch 1.7.1 pypi_0 pypi tornado 6.1 py38h2bbff1b_0 tox 3.23.0 pypi_0 pypi tpot 0.11.7 pypi_0 pypi tqdm 4.32.2 pypi_0 pypi traitlets 5.0.5 pyhd3eb1b0_0 transformers 4.1.1 pypi_0 pypi typeguard 2.11.1 pypi_0 pypi typing-extensions 3.7.4.3 hd3eb1b0_0 typing_extensions 3.7.4.3 pyh06a4308_0 update-checker 0.18.0 pypi_0 pypi uritemplate 3.0.1 pypi_0 pypi urllib3 1.26.4 pyhd3eb1b0_0 uvicorn 0.13.4 pypi_0 pypi vadersentiment 3.3.2 pypi_0 pypi vc 14.2 h21ff451_1 virtualenv 20.4.3 pypi_0 pypi vs2015_runtime 14.27.29016 h5e58377_2 waitress 2.0.0 pypi_0 pypi wcwidth 0.2.5 py_0 webencodings 0.5.1 py38_1 websocket-client 0.58.0 pypi_0 pypi werkzeug 0.16.1 pypi_0 pypi wget 3.2 pypi_0 pypi wheel 0.36.2 pyhd3eb1b0_0 widgetsnbextension 3.5.1 py38_0 win_inet_pton 1.1.0 py38haa95532_0 wincertstore 0.2 py38_0 winpty 0.4.3 4 wordcloud 1.8.1 pypi_0 pypi wrapt 1.12.1 py38he774522_1 xgboost 1.3.3 pypi_0 pypi xlrd 2.0.1 pyhd3eb1b0_0 xz 5.2.5 h62dcd97_0 yahooquery 2.2.15 pypi_0 pypi yaml 0.2.5 he774522_0 yarl 1.6.3 py38h2bbff1b_0 zc-buildout 2.13.4 pypi_0 pypi zeromq 4.3.3 ha925a31_3 zipp 3.4.1 pyhd3eb1b0_0 zlib 1.2.11 h62dcd97_4 zstd 1.4.9 h19a0ad4_0
What is going on? Can it find the lxml?

Any help appreciated thanks in advance.

Respectfully,

LZ
Reply
#2
In a post that I made yesterday, I pointed out the error (actually a warning). It was printed as shown;


Error:
WARNING: Error parsing requirements for beautifulsoup4: [Errno 2] No such file or directory: 'c:\\users\\james\\miniconda3\\envs\\base-dup\\lib\\site-packages\\beautifulsoup4-4.9.3.dist-info\\METADATA'
What is going on? I agree that the directory METADATA does not exist. Everything, but METADATA exists.

I have

Output:
c:\\users\\james\\miniconda3\\envs\\base-dup\\lib\\site-packages\\beautifulsoup4-4.9.3.dist-info
So when I was installing lxml it gave me this warning. Since the install was pip install lxml, why did it not just create the directory?

Any help appreciated.

Respectfully,

LZ
Reply
#3
For Beautifulsoup you have only the dummy package
lxml is ok.
You most remember to always active environment base-dup.
To test use first code in Web-Scraping part-1 this code will test if these 3 libraries work.
import requests
from bs4 import BeautifulSoup

url = 'http://CNN.com'
response = requests.get(url)
soup = BeautifulSoup(response.content, 'lxml')
print(soup.find('title').text)
Output:
CNN International - Breaking News, US News, World News and Video
A quick run i activate environment install and run code using miniconda3.
I use cmder but command are the same in cmd.
# Activate base
G:\miniconda3\Scripts
λ activate.bat

# Cd down
(base) G:\miniconda3\Scripts
λ cd ..

# Activate my_env for you base_dup
(base) G:\miniconda3
λ conda activate my_env

# See that (my_env) look like this
# Test pip see that it point to my_env folder 
(my_env) G:\miniconda3
λ pip -V
pip 21.1.2 from G:\miniconda3\envs\my_env\lib\site-packages\pip (python 3.9)

# Install
(my_env) G:\miniconda3
λ pip install beautifulsoup4 requests lxml
Collecting beautifulsoup4
  Using cached beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
Requirement already satisfied: requests in g:\miniconda3\envs\my_env\lib\site-packages (2.25.1)
Collecting lxml
  Using cached lxml-4.6.3-cp39-cp39-win_amd64.whl (3.5 MB)
Collecting soupsieve>1.2
  Using cached soupsieve-2.2.1-py3-none-any.whl (33 kB)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in g:\miniconda3\envs\my_env\lib\site-packages (from requests) (1.26.5)
Requirement already satisfied: certifi>=2017.4.17 in g:\miniconda3\envs\my_env\lib\site-packages (from requests) (2021.5.30)
Requirement already satisfied: chardet<5,>=3.0.2 in g:\miniconda3\envs\my_env\lib\site-packages (from requests) (4.0.0)
Requirement already satisfied: idna<3,>=2.5 in g:\miniconda3\envs\my_env\lib\site-packages (from requests) (2.10)
Installing collected packages: soupsieve, lxml, beautifulsoup4
Successfully installed beautifulsoup4-4.9.3 lxml-4.6.3 soupsieve-2.2.1

# See code that i run now 
(my_env) G:\miniconda3
λ type test_parse.py
import requests
from bs4 import BeautifulSoup

url = 'http://CNN.com'
response = requests.get(url)
soup = BeautifulSoup(response.content, 'lxml')
print(soup.find('title').text)

# Run code 
(my_env) G:\miniconda3
λ python test_parse.py
CNN International - Breaking News, US News, World News and Video
Reply
#4
When I run the code that you specified whicch I list




I get the output

Output:
ModuleNotFoundError Traceback (most recent call last) <ipython-input-1-c1eaedbbd830> in <module> 1 import requests ----> 2 from bs4 import BeautifulSoup 3 4 url = 'http://CNN.com' 5 response = requests.get(url) ModuleNotFoundError: No module named 'bs4'
Now I can run pip list and it states that beautifulsoup4 is there,.

When I run pip list, I get

Output:
Package Version Location --------------------------------- ------------------- ----------------------------------------- absl-py 0.12.0 aiohttp 3.7.4 alembic 1.4.1 aniso8601 9.0.1 appdirs 1.4.4 argon2-cffi 20.1.0 astor 0.8.1 astunparse 1.6.3 async-generator 1.10 async-timeout 3.0.1 attrs 21.2.0 autokeras 1.0.12 autoviml 0.1.680 azure-core 1.13.0 azure-storage-blob 12.8.0 backcall 0.2.0 beautifulsoup4 4.9.3 bleach 3.3.0 blinker 1.4 bokeh 2.3.2 boto3 1.17.54 botocore 1.20.54 breadability 0.1.20 brotlipy 0.7.0 bs4 0.0.1 cachetools 4.2.2 catboost 0.24.4 category-encoders 2.2.2 certifi 2021.5.30 cffi 1.14.5 chardet 3.0.4 chess 1.4.0 chromedriver-binary 91.0.4472.19.0 click 8.0.1 collective.recipe.grp 1.1.0 colorama 0.4.4 conda-package-handling 1.7.3 coverage 5.5 cryptography 3.4.7 cssselect 1.1.0 cycler 0.10.0 Cython 0.29.23 databricks-cli 0.14.3 deap 1.3.1 decorator 5.0.9 defusedxml 0.7.1 dill 0.3.3 distlib 0.3.1 dm-tree 0.1.5 docker 5.0.0 docopt 0.6.2 dotmap 1.3.23 edward 1.3.5 elastic-apm 6.1.2 elasticsearch 7.10.0 emoji 1.2.0 entrypoints 0.3 et-xmlfile 1.0.1 faiss-cpu 1.7.0 farm 0.7.1 farm-haystack 0.8.0 fastapi 0.63.0 feather-format 0.4.1 feature-selector N-A c:\users\james\downloads\feature-selector Flask 1.1.1 Flask-Cors 3.0.10 flask-restplus 0.13.0 flatbuffers 1.12 gast 0.4.0 gedit 0.0.2 gitdb 4.0.7 GitPython 3.1.14 google-api-core 1.26.1 google-auth 1.30.1 google-auth-httplib2 0.1.0 google-auth-oauthlib 0.4.4 google-cloud-core 1.6.0 google-crc32c 1.1.2 google-pasta 0.2.0 google-resumable-media 1.2.0 googleapis-common-protos 1.53.0 graphviz 0.16 greenlet 1.0.0 grpcio 1.36.1 grpcio-tools 1.37.0 gunicorn 20.1.0 h11 0.12.0 h5py 3.1.0 helper 2.5.0 html5lib 1.1 httplib2 0.19.0 httptools 0.1.1 idna 2.10 imbalanced-learn 0.8.0 importlib-metadata 3.10.0 importlib-resources 5.1.2 inflect 5.3.0 intel-openmp 2021.1.2 ipykernel 5.3.4 ipython 7.22.0 ipython-genutils 0.2.0 ipywidgets 7.6.3 isodate 0.6.0 itsdangerous 1.1.0 jedi 0.17.0 Jinja2 3.0.0 jmespath 0.10.0 joblib 1.0.1 jsonschema 3.2.0 jupyter 1.0.0 jupyter-client 6.1.12 jupyter-console 6.4.0 jupyter-contrib-core 0.3.3 jupyter-contrib-nbextensions 0.5.1 jupyter-core 4.7.1 jupyter-highlight-selected-word 0.2.0 jupyter-latex-envs 1.4.6 jupyter-nbextensions-configurator 0.4.1 jupyterlab-pygments 0.1.2 jupyterlab-widgets 1.0.0 Keras 2.4.3 Keras-Applications 1.0.8 keras-nightly 2.5.0.dev2021032900 Keras-Preprocessing 1.1.2 keras-tuner 1.0.2 kiwisolver 1.3.1 langdetect 1.0.8 lightgbm 3.1.1 llvmlite 0.36.0 lxml 4.6.3 mabalgs 0.6.4 Mako 1.1.4 Markdown 3.3.4 MarkupSafe 2.0.1 matplotlib 3.3.4 matplotlib-inline 0.1.2 menuinst 1.4.16 mistune 0.8.4 mkl 2021.1.1 mkl-fft 1.3.0 mkl-random 1.2.1 mkl-service 2.3.0 mlflow 1.13.1 more-itertools 8.7.0 msrest 0.6.21 multidict 5.1.0 nbclient 0.5.3 nbconvert 6.0.7 nbformat 5.1.3 nest-asyncio 1.5.1 networkx 2.6.2 nltk 3.5 notebook 6.4.0 numpy 1.20.2 oauthlib 3.1.0 olefile 0.46 Note: you may need to restart the kernel to use updated packages. opencv-python 4.5.1.48 opt-einsum 3.3.0 packaging 20.9 panda 0.3.1 pandas 1.2.4 pandocfilters 1.4.3 parso 0.8.2 patsy 0.5.1 PDPbox 0.2.0 pickleshare 0.7.5 Pillow 8.2.0 pip 21.1.1 plotly 4.14.3 preprocessor 1.1.3 progressbar 2.5 prometheus-client 0.10.1 prometheus-flask-exporter 0.18.1 promise 2.3 prompt-toolkit 3.0.17 proto-plus 1.14.2 protobuf 3.15.5 psutil 5.8.0 pyarrow 3.0.0 pyasn1 0.4.8 pyasn1-modules 0.2.8 pycosat 0.6.3 pycountry 20.7.3 pycparser 2.20 pydantic 1.8.1 pyforest 1.0.3 pyfunctional 1.4.3 pygame 2.0.1 Pygments 2.9.0 PyJWT 1.7.1 pymilvus 1.0.1 pyOpenSSL 20.0.1 pyparsing 2.4.7 pyquery 1.4.3 pyreadline 2.1 pyrsistent 0.17.3 PySocks 1.7.1 python-chess 1.999 python-dateutil 2.8.1 python-docx 0.8.10 python-editor 1.0.4 python-multipart 0.0.5 python-slugify 4.0.1 pytz 2021.1 pywin32 227 pywinpty 0.5.7 PyYAML 5.4.1 pyzmq 20.0.0 qtconsole 5.0.3 QtPy 1.9.0 querystring-parser 1.2.4 rarfile 4.0 rdflib 5.0.0 regex 2020.11.13 requests 2.25.1 requests-futures 1.0.0 requests-oauthlib 1.3.0 retrying 1.3.3 rsa 4.7.2 ruamel-yaml-conda 0.15.100 runtime 0.1.4 s3transfer 0.4.0 sacremoses 0.0.45 scikit-learn 0.24.2 scipy 1.6.2 seaborn 0.11.1 selenium 3.141.0 Send2Trash 1.5.0 sentence-transformers 1.0.4 sentencepiece 0.1.95 seqeval 1.2.2 setuptools 52.0.0.post20210125 shap 0.39.0 sip 4.19.13 six 1.15.0 sklearn 0.0 sklearn-utils 0.0.15 slicer 0.0.7 smmap 4.0.0 soupsieve 2.1 SPARQLWrapper 1.8.5 sportsreference 0.5.2 SQLAlchemy 1.4.9 SQLAlchemy-Utils 0.37.0 sqlparse 0.4.1 starlette 0.13.6 statsmodels 0.12.2 stopit 1.1.2 sumy 0.8.1 tabulate 0.8.7 tbb 2021.1.1 tensorboard 2.4.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.0 tensorflow 2.3.0 tensorflow-addons 0.12.1 tensorflow-datasets 4.2.0 tensorflow-estimator 2.5.0 tensorflow-hub 0.11.0 tensorflow-metadata 0.28.0 tensorflow-model-optimization 0.5.0 tensorflow-text 2.4.3 termcolor 1.1.0 terminado 0.9.4 terminaltables 3.1.0 testpath 0.4.4 text-unidecode 1.3 textblob 0.15.3 tf-slim 1.1.0 threadpoolctl 2.1.0 tika 1.19 tokenizers 0.9.4 torch 1.7.1 tornado 6.1 tox 3.23.0 TPOT 0.11.7 tqdm 4.59.0 traitlets 5.0.5 transformers 4.1.1 typeguard 2.11.1 typing-extensions 3.7.4.3 update-checker 0.18.0 uritemplate 3.0.1 urllib3 1.26.4 uvicorn 0.13.4 vaderSentiment 3.3.2 virtualenv 20.4.3 waitress 2.0.0 wcwidth 0.2.5 webencodings 0.5.1 websocket-client 0.58.0 Werkzeug 1.0.1 wget 3.2 wheel 0.36.2 widgetsnbextension 3.5.1 win-inet-pton 1.1.0 wincertstore 0.2 wordcloud 1.8.1 wrapt 1.12.1 xgboost 1.3.3 xlrd 2.0.1 yahooquery 2.2.15 yarl 1.6.3 zc.buildout 2.13.4 zipp 3.4.1
So beautifulsoup4 is there, but not bs4 and and I am not sure what is the difference.

So how do I fix thix ths?

Any help appreciated.


Respectfully,

LZ
Reply
#5
(Aug-11-2021, 06:55 PM)Led_Zeppelin Wrote: So beautifulsoup4 is there, but not bs4 and and I am not sure what is the difference.
Beautifulsoup4 is ok now for you,as it show.
Output:
beautifulsoup4 4.9.3
You most activate environment as mention.
So you should see (base-dup) only now is environment active.
(base-dup)  C:\Users\james\miniconda3
Most make sure that work like this from command line(cmd) before using any editor as then can point to wrong environment.
Have to learn how environment(virtual) work when working with miniconda.
Reply
#6
Now come on man. Give me some credit. I have been using virtual environments for over two years and I know that to run a program that uses a specific virtual environment, the analyst must first activate said environment. There i no alternative.

it is only after I activate and run the programs do I see errors. I am attaching a screenshot to show you.

I always activate base-dup before doing anything requiring the base-dup virtual environment.

I am going to create a new virtual environment since the base-dup cannot be repaired for running beautifulsopu4.

Also, what is the difference between beautifullesoup4 and bs4?

Respectfully,

LZ

Attached Files

Thumbnail(s)
   
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  lxml - etree/lxml need help storing variable for most inserted element goeb 0 2,558 Apr-01-2019, 03:09 AM
Last Post: goeb

Forum Jump:

User Panel Messages

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