WEBP support not installed error with Pillow included in Anaconda - python

I have written a small code to open webp image in the Anaconda prompt.
from PIL import Image
im = Image.open('test.webp')
It causes the following error:
C:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py:2655: UserWarning: image file could not be identified because WEBP support not installed
warnings.warn(message)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py", line 2657, in open
% (filename if filename else fp))
OSError: cannot identify image file 'test.webp'
The same code works fine in python-3.7.2-amd64 installed in another directory with Pillow 5.4.1.
Package Version
---------- -------
Pillow 5.4.1
pip 18.1
setuptools 40.6.2
The above code causes the same error in Anaconda prompt, Spyder and Jupyter Notebook. Still the same error even after reinstallation the Anaconda or trying on the different PC.
Anaconda or Miniconda version:
Anaconda 2018.12 for Windows Installer
Python 3.7 version 64-Bit Graphical Installer
Anaconda3-2018.12-Windows-x86_64.exe
Operating System:
Windows 10 Professional 64-Bit
The same issue was reported on GitHub #10737.
conda info
active environment : base
active env location : C:\ProgramData\Anaconda3
shell level : 1
user config file : C:\Users\chen\.condarc
populated config files : C:\Users\chen\.condarc
conda version : 4.5.12
conda-build version : 3.17.6
python version : 3.7.1.final.0
base environment : C:\ProgramData\Anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/win-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/win-64
https://repo.anaconda.com/pkgs/pro/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\ProgramData\Anaconda3\pkgs
C:\Users\chen\AppData\Local\conda\conda\pkgs
envs directories : C:\ProgramData\Anaconda3\envs
C:\Users\chen\AppData\Local\conda\conda\envs
C:\Users\chen\.conda\envs
platform : win-64
user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Windows/10 Windows/10.0.17763
administrator : True
netrc file : None
offline mode : False
conda list --show-channel-urls
# packages in environment at C:\ProgramData\Anaconda3:
#
# Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0 defaults
alabaster 0.7.12 py37_0 defaults
anaconda 2018.12 py37_0 defaults
anaconda-client 1.7.2 py37_0 defaults
anaconda-navigator 1.9.6 py37_0 defaults
anaconda-project 0.8.2 py37_0 defaults
asn1crypto 0.24.0 py37_0 defaults
astroid 2.1.0 py37_0 defaults
astropy 3.1 py37he774522_0 defaults
atomicwrites 1.2.1 py37_0 defaults
attrs 18.2.0 py37h28b3542_0 defaults
babel 2.6.0 py37_0 defaults
backcall 0.1.0 py37_0 defaults
backports 1.0 py37_1 defaults
backports.os 0.1.1 py37_0 defaults
backports.shutil_get_terminal_size 1.0.0 py37_2 defaults
beautifulsoup4 4.6.3 py37_0 defaults
bitarray 0.8.3 py37hfa6e2cd_0 defaults
bkcharts 0.2 py37_0 defaults
blas 1.0 mkl defaults
blaze 0.11.3 py37_0 defaults
bleach 3.0.2 py37_0 defaults
blosc 1.14.4 he51fdeb_0 defaults
bokeh 1.0.2 py37_0 defaults
boto 2.49.0 py37_0 defaults
bottleneck 1.2.1 py37h452e1ab_1 defaults
bzip2 1.0.6 hfa6e2cd_5 defaults
ca-certificates 2018.03.07 0 defaults
certifi 2018.11.29 py37_0 defaults
cffi 1.11.5 py37h74b6da3_1 defaults
chardet 3.0.4 py37_1 defaults
click 7.0 py37_0 defaults
cloudpickle 0.6.1 py37_0 defaults
clyent 1.2.2 py37_1 defaults
colorama 0.4.1 py37_0 defaults
comtypes 1.1.7 py37_0 defaults
conda 4.5.12 py37_0 defaults
conda-build 3.17.6 py37_0 defaults
conda-env 2.6.0 1 defaults
conda-verify 3.1.1 py37_0 defaults
console_shortcut 0.1.1 3 defaults
contextlib2 0.5.5 py37_0 defaults
cryptography 2.4.2 py37h7a1dbc1_0 defaults
curl 7.63.0 h2a8f88b_1000 defaults
cycler 0.10.0 py37_0 defaults
cython 0.29.2 py37ha925a31_0 defaults
cytoolz 0.9.0.1 py37hfa6e2cd_1 defaults
dask 1.0.0 py37_0 defaults
dask-core 1.0.0 py37_0 defaults
datashape 0.5.4 py37_1 defaults
decorator 4.3.0 py37_0 defaults
defusedxml 0.5.0 py37_1 defaults
distributed 1.25.1 py37_0 defaults
docutils 0.14 py37_0 defaults
entrypoints 0.2.3 py37_2 defaults
et_xmlfile 1.0.1 py37_0 defaults
fastcache 1.0.2 py37hfa6e2cd_2 defaults
filelock 3.0.10 py37_0 defaults
flask 1.0.2 py37_1 defaults
flask-cors 3.0.7 py37_0 defaults
freetype 2.9.1 ha9979f8_1 defaults
future 0.17.1 py37_0 defaults
get_terminal_size 1.0.0 h38e98db_0 defaults
gevent 1.3.7 py37he774522_1 defaults
glob2 0.6 py37_1 defaults
greenlet 0.4.15 py37hfa6e2cd_0 defaults
h5py 2.8.0 py37h3bdd7fb_2 defaults
hdf5 1.10.2 hac2f561_1 defaults
heapdict 1.0.0 py37_2 defaults
html5lib 1.0.1 py37_0 defaults
icc_rt 2019.0.0 h0cc432a_1 defaults
icu 58.2 ha66f8fd_1 defaults
idna 2.8 py37_0 defaults
imageio 2.4.1 py37_0 defaults
imagesize 1.1.0 py37_0 defaults
importlib_metadata 0.6 py37_0 defaults
intel-openmp 2019.1 144 defaults
ipykernel 5.1.0 py37h39e3cac_0 defaults
ipython 7.2.0 py37h39e3cac_0 defaults
ipython_genutils 0.2.0 py37_0 defaults
ipywidgets 7.4.2 py37_0 defaults
isort 4.3.4 py37_0 defaults
itsdangerous 1.1.0 py37_0 defaults
jdcal 1.4 py37_0 defaults
jedi 0.13.2 py37_0 defaults
jinja2 2.10 py37_0 defaults
jpeg 9b hb83a4c4_2 defaults
jsonschema 2.6.0 py37_0 defaults
jupyter 1.0.0 py37_7 defaults
jupyter_client 5.2.4 py37_0 defaults
jupyter_console 6.0.0 py37_0 defaults
jupyter_core 4.4.0 py37_0 defaults
jupyterlab 0.35.3 py37_0 defaults
jupyterlab_server 0.2.0 py37_0 defaults
keyring 17.0.0 py37_0 defaults
kiwisolver 1.0.1 py37h6538335_0 defaults
krb5 1.16.1 hc04afaa_7 defaults
lazy-object-proxy 1.3.1 py37hfa6e2cd_2 defaults
libarchive 3.3.3 h0643e63_5 defaults
libcurl 7.63.0 h2a8f88b_1000 defaults
libiconv 1.15 h1df5818_7 defaults
libpng 1.6.35 h2a8f88b_0 defaults
libsodium 1.0.16 h9d3ae62_0 defaults
libssh2 1.8.0 h7a1dbc1_4 defaults
libtiff 4.0.9 h36446d0_2 defaults
libxml2 2.9.8 hadb2253_1 defaults
libxslt 1.1.32 hf6f1972_0 defaults
llvmlite 0.26.0 py37ha925a31_0 defaults
locket 0.2.0 py37_1 defaults
lxml 4.2.5 py37hef2cd61_0 defaults
lz4-c 1.8.1.2 h2fa13f4_0 defaults
lzo 2.10 h6df0209_2 defaults
m2w64-gcc-libgfortran 5.3.0 6 defaults
m2w64-gcc-libs 5.3.0 7 defaults
m2w64-gcc-libs-core 5.3.0 7 defaults
m2w64-gmp 6.1.0 2 defaults
m2w64-libwinpthread-git 5.0.0.4634.697f757 2 defaults
markupsafe 1.1.0 py37he774522_0 defaults
matplotlib 3.0.2 py37hc8f65d3_0 defaults
mccabe 0.6.1 py37_1 defaults
menuinst 1.4.14 py37hfa6e2cd_0 defaults
mistune 0.8.4 py37he774522_0 defaults
mkl 2019.1 144 defaults
mkl-service 1.1.2 py37hb782905_5 defaults
mkl_fft 1.0.6 py37h6288b17_0 defaults
mkl_random 1.0.2 py37h343c172_0 defaults
more-itertools 4.3.0 py37_0 defaults
mpmath 1.1.0 py37_0 defaults
msgpack-python 0.5.6 py37he980bc4_1 defaults
msys2-conda-epoch 20160418 1 defaults
multipledispatch 0.6.0 py37_0 defaults
navigator-updater 0.2.1 py37_0 defaults
nbconvert 5.4.0 py37_1 defaults
nbformat 4.4.0 py37_0 defaults
networkx 2.2 py37_1 defaults
nltk 3.4 py37_1 defaults
nose 1.3.7 py37_2 defaults
notebook 5.7.4 py37_0 defaults
numba 0.41.0 py37hf9181ef_0 defaults
numexpr 2.6.8 py37hdce8814_0 defaults
numpy 1.15.4 py37h19fb1c0_0 defaults
numpy-base 1.15.4 py37hc3f5095_0 defaults
numpydoc 0.8.0 py37_0 defaults
odo 0.5.1 py37_0 defaults
olefile 0.46 py37_0 defaults
openpyxl 2.5.12 py37_0 defaults
openssl 1.1.1a he774522_0 defaults
packaging 18.0 py37_0 defaults
pandas 0.23.4 py37h830ac7b_0 defaults
pandoc 1.19.2.1 hb2460c7_1 defaults
pandocfilters 1.4.2 py37_1 defaults
parso 0.3.1 py37_0 defaults
partd 0.3.9 py37_0 defaults
path.py 11.5.0 py37_0 defaults
pathlib2 2.3.3 py37_0 defaults
patsy 0.5.1 py37_0 defaults
pep8 1.7.1 py37_0 defaults
pickleshare 0.7.5 py37_0 defaults
pillow 5.3.0 py37hdc69c19_0 defaults
pip 18.1 py37_0 defaults
pkginfo 1.4.2 py37_1 defaults
pluggy 0.8.0 py37_0 defaults
ply 3.11 py37_0 defaults
prometheus_client 0.5.0 py37_0 defaults
prompt_toolkit 2.0.7 py37_0 defaults
psutil 5.4.8 py37he774522_0 defaults
py 1.7.0 py37_0 defaults
pycodestyle 2.4.0 py37_0 defaults
pycosat 0.6.3 py37hfa6e2cd_0 defaults
pycparser 2.19 py37_0 defaults
pycrypto 2.6.1 py37hfa6e2cd_9 defaults
pycurl 7.43.0.2 py37h7a1dbc1_0 defaults
pyflakes 2.0.0 py37_0 defaults
pygments 2.3.1 py37_0 defaults
pylint 2.2.2 py37_0 defaults
pyodbc 4.0.25 py37ha925a31_0 defaults
pyopenssl 18.0.0 py37_0 defaults
pyparsing 2.3.0 py37_0 defaults
pyqt 5.9.2 py37h6538335_2 defaults
pysocks 1.6.8 py37_0 defaults
pytables 3.4.4 py37he6f6034_0 defaults
pytest 4.0.2 py37_0 defaults
pytest-arraydiff 0.3 py37h39e3cac_0 defaults
pytest-astropy 0.5.0 py37_0 defaults
pytest-doctestplus 0.2.0 py37_0 defaults
pytest-openfiles 0.3.1 py37_0 defaults
pytest-remotedata 0.3.1 py37_0 defaults
python 3.7.1 h8c8aaf0_6 defaults
python-dateutil 2.7.5 py37_0 defaults
python-libarchive-c 2.8 py37_6 defaults
pytz 2018.7 py37_0 defaults
pywavelets 1.0.1 py37h8c2d366_0 defaults
pywin32 223 py37hfa6e2cd_1 defaults
pywinpty 0.5.5 py37_1000 defaults
pyyaml 3.13 py37hfa6e2cd_0 defaults
pyzmq 17.1.2 py37hfa6e2cd_0 defaults
qt 5.9.7 vc14h73c81de_0 [vc14] defaults
qtawesome 0.5.3 py37_0 defaults
qtconsole 4.4.3 py37_0 defaults
qtpy 1.5.2 py37_0 defaults
requests 2.21.0 py37_0 defaults
rope 0.11.0 py37_0 defaults
ruamel_yaml 0.15.46 py37hfa6e2cd_0 defaults
scikit-image 0.14.1 py37ha925a31_0 defaults
scikit-learn 0.20.1 py37h343c172_0 defaults
scipy 1.1.0 py37h29ff71c_2 defaults
seaborn 0.9.0 py37_0 defaults
send2trash 1.5.0 py37_0 defaults
setuptools 40.6.3 py37_0 defaults
simplegeneric 0.8.1 py37_2 defaults
singledispatch 3.4.0.3 py37_0 defaults
sip 4.19.8 py37h6538335_0 defaults
six 1.12.0 py37_0 defaults
snappy 1.1.7 h777316e_3 defaults
snowballstemmer 1.2.1 py37_0 defaults
sortedcollections 1.0.1 py37_0 defaults
sortedcontainers 2.1.0 py37_0 defaults
sphinx 1.8.2 py37_0 defaults
sphinxcontrib 1.0 py37_1 defaults
sphinxcontrib-websupport 1.1.0 py37_1 defaults
spyder 3.3.2 py37_0 defaults
spyder-kernels 0.3.0 py37_0 defaults
sqlalchemy 1.2.15 py37he774522_0 defaults
sqlite 3.26.0 he774522_0 defaults
statsmodels 0.9.0 py37h452e1ab_0 defaults
sympy 1.3 py37_0 defaults
tblib 1.3.2 py37_0 defaults
terminado 0.8.1 py37_1 defaults
testpath 0.4.2 py37_0 defaults
tk 8.6.8 hfa6e2cd_0 defaults
toolz 0.9.0 py37_0 defaults
tornado 5.1.1 py37hfa6e2cd_0 defaults
tqdm 4.28.1 py37h28b3542_0 defaults
traitlets 4.3.2 py37_0 defaults
unicodecsv 0.14.1 py37_0 defaults
urllib3 1.24.1 py37_0 defaults
vc 14.1 h0510ff6_4 defaults
vs2015_runtime 14.15.26706 h3a45250_0 defaults
wcwidth 0.1.7 py37_0 defaults
webencodings 0.5.1 py37_1 defaults
werkzeug 0.14.1 py37_0 defaults
wheel 0.32.3 py37_0 defaults
widgetsnbextension 3.4.2 py37_0 defaults
win_inet_pton 1.0.1 py37_1 defaults
win_unicode_console 0.5 py37_0 defaults
wincertstore 0.2 py37_0 defaults
winpty 0.4.3 4 defaults
wrapt 1.10.11 py37hfa6e2cd_2 defaults
xlrd 1.2.0 py37_0 defaults
xlsxwriter 1.1.2 py37_0 defaults
xlwings 0.15.1 py37_0 defaults
xlwt 1.3.0 py37_0 defaults
xz 5.2.4 h2fa13f4_4 defaults
yaml 0.1.7 hc54c509_2 defaults
zeromq 4.2.5 he025d50_1 defaults
zict 0.1.3 py37_0 defaults
zlib 1.2.11 h62dcd97_3 defaults
zstd 1.3.7 h508b16e_0 defaults

The pillow docs:
Many of Pillow’s features require external libraries:
[...]
libwebp provides the WebP format.
Pillow has been tested with version 0.1.3,
which does not read transparent WebP files. Versions 0.3.0 and above
support transparency.
I tried to fix this with the following command. It did not fix the issue for me. But it could be useful for others
conda install libwebp
This installs version 1.0.1.
Which results in no webp support
python
> from PIL import features
> print (features.check_module('webp'))
False
Same thing for conda install -c conda-forge libwebp.
It seems to still be an open issue for anaconda. That means perhaps the answer to your problem is to use pip instead of conda.

I downloaded all 5 of these.
conda install -c conda-forge libwebp
conda install -c conda-forge/label/gcc7 libwebp
conda install -c conda-forge/label/broken libwebp
conda install -c conda-forge/label/cf201901 libwebp
conda install -c conda-forge/label/cf202003 libwebp
Didn't get the error after this.

I have finally come up with this workaround, which assumes that dwebp from the libwebp library is available on the system:
import os
import subprocess
from PIL import Image, UnidentifiedImageError
from io import BytesIO
class dwebpException(Exception):
pass
def dwebp(file: str):
webp = subprocess.run(
f"dwebp {file} -quiet -o -", shell=True, capture_output=True
)
if webp.returncode != 0:
raise dwebpException(webp.stderr.decode())
else:
return Image.open(BytesIO(webp.stdout))
filename = 'test.webp'
try:
img = Image.open(filename)
except UnidentifiedImageError:
if os.path.splitext(filename)[1].lower() == ".webp":
img = dwebp(filename)
else:
raise

Related

can't import packages installed before, such as matplotlib, after i update python using conda

i want to use the matplotlib.pyplot.figure.supxlabel in my jupyter notebook,and it needs:
Python version at least 3.7
matplotlib version at least 3.4
but version on my computer is python 3.6.12 and matplotlib 3.3.4
so i use conda update python, and now my python version is 3.9.7
but i can't import packages installed before, such like matplotlib and scipy. Could anybody tell me why, i would appreciate it a lot.
ModuleNotFoundError:No module named 'matplotlib'
and when i tryconda list --show-channel-urls , i got this:
# Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py39hecd8cb5_0 defaults
anaconda-client 1.9.0 py39hecd8cb5_0 defaults
anaconda-navigator 2.1.1 py39_0 defaults
anyio 2.2.0 py39hecd8cb5_1 defaults
appnope 0.1.2 py39hecd8cb5_1001 defaults
argon2-cffi 20.1.0 py39h9ed2024_1 defaults
async_generator 1.10 pyhd3eb1b0_0 defaults
attrs 21.2.0 pyhd3eb1b0_0 defaults
babel 2.9.1 pyhd3eb1b0_0 defaults
backcall 0.2.0 pyhd3eb1b0_0 defaults
beautifulsoup4 4.10.0 pyh06a4308_0 defaults
blas 1.0 mkl defaults
bleach 4.0.0 pyhd3eb1b0_0 defaults
brotli 1.0.9 hb1e8313_2 defaults
brotlipy 0.7.0 py39h9ed2024_1003 defaults
bzip2 1.0.8 h1de35cc_0 defaults
ca-certificates 2021.10.26 hecd8cb5_2 defaults
certifi 2021.10.8 py39hecd8cb5_0 defaults
cffi 1.14.6 py39h2125817_0 defaults
chardet 4.0.0 py39hecd8cb5_1003 defaults
charset-normalizer 2.0.4 pyhd3eb1b0_0 defaults
clyent 1.2.2 py39hecd8cb5_1 defaults
conda 4.11.0 py39hecd8cb5_0 defaults
conda-build 3.21.7 py39hecd8cb5_0 defaults
conda-content-trust 0.1.1 pyhd3eb1b0_0 defaults
conda-package-handling 1.7.3 py39h9ed2024_1 defaults
conda-repo-cli 1.0.4 pyhd3eb1b0_0 defaults
conda-token 0.3.0 pyhd3eb1b0_0 defaults
cryptography 3.4.8 py39h2fd3fbb_0 defaults
cycler 0.11.0 pyhd3eb1b0_0 defaults
debugpy 1.5.1 py39he9d5cce_0 defaults
decorator 5.1.0 pyhd3eb1b0_0 defaults
defusedxml 0.7.1 pyhd3eb1b0_0 defaults
entrypoints 0.3 py39hecd8cb5_0 defaults
filelock 3.4.0 pyhd3eb1b0_0 defaults
fonttools 4.25.0 pyhd3eb1b0_0 defaults
freetype 2.11.0 hd8bbffd_0 defaults
giflib 5.2.1 haf1e3a3_0 defaults
glob2 0.7 pyhd3eb1b0_0 defaults
gmp 6.2.1 h23ab428_2 defaults
gmpy2 2.0.8 py39h4b98818_3 defaults
h5py 3.6.0 py39h4a1dd59_0 defaults
hdf5 1.10.6 hdbbcd12_0 defaults
icu 58.2 h0a44026_3 defaults
idna 3.3 pyhd3eb1b0_0 defaults
importlib-metadata 4.8.2 py39hecd8cb5_0 defaults
importlib_metadata 4.8.2 hd3eb1b0_0 defaults
intel-openmp 2021.4.0 hecd8cb5_3538 defaults
ipykernel 6.4.1 py39hecd8cb5_1 defaults
ipython 7.29.0 py39h01d92e1_0 defaults
ipython_genutils 0.2.0 pyhd3eb1b0_1 defaults
ipywidgets 7.6.5 pyhd3eb1b0_1 defaults
jedi 0.18.0 py39hecd8cb5_1 defaults
jinja2 2.11.3 pyhd3eb1b0_0 defaults
jpeg 9d h9ed2024_0 defaults
json5 0.9.6 pyhd3eb1b0_0 defaults
jsonschema 3.2.0 pyhd3eb1b0_2 defaults
jupyter_client 7.0.6 pyhd3eb1b0_0 defaults
jupyter_core 4.9.1 py39hecd8cb5_0 defaults
jupyter_server 1.4.1 py39hecd8cb5_0 defaults
jupyterlab 3.2.1 pyhd3eb1b0_1 defaults
jupyterlab_pygments 0.1.2 py_0 defaults
jupyterlab_server 2.8.2 pyhd3eb1b0_0 defaults
jupyterlab_widgets 1.0.0 pyhd3eb1b0_1 defaults
kiwisolver 1.3.1 py39h23ab428_0 defaults
lcms2 2.12 hf1fd2bf_0 defaults
libarchive 3.4.2 haa3ed63_0 defaults
libcxx 12.0.0 h2f01273_0 defaults
libffi 3.3 hb1e8313_2 defaults
libgfortran 3.0.1 h93005f0_2 defaults
libiconv 1.16 h1de35cc_0 defaults
liblief 0.10.1 h23ab428_1 defaults
libllvm11 11.1.0 h9b2ccf5_0 defaults
libpng 1.6.37 ha441bb4_0 defaults
libsodium 1.0.18 h1de35cc_0 defaults
libtiff 4.2.0 h87d7836_0 defaults
libwebp 1.2.0 hacca55c_0 defaults
libwebp-base 1.2.0 h9ed2024_0 defaults
libxml2 2.9.12 hcdb78fc_0 defaults
llvm-openmp 12.0.0 h0dcd299_1 defaults
llvmlite 0.37.0 py39he4411ff_1 defaults
lz4-c 1.9.3 h23ab428_1 defaults
markupsafe 2.0.1 py39h9ed2024_0 defaults
matplotlib 3.5.0 py39hecd8cb5_0 defaults
matplotlib-base 3.5.0 py39h4f681db_0 defaults
matplotlib-inline 0.1.2 pyhd3eb1b0_2 defaults
mistune 0.8.4 py39h9ed2024_1000 defaults
mkl 2021.4.0 hecd8cb5_637 defaults
mkl-service 2.4.0 py39h9ed2024_0 defaults
mkl_fft 1.3.1 py39h4ab4a9b_0 defaults
mkl_random 1.2.2 py39hb2f4e1b_0 defaults
mpc 1.1.0 h6ef4df4_1 defaults
mpfr 4.0.2 h9066e36_1 defaults
mpmath 1.2.1 py39hecd8cb5_0 defaults
munkres 1.1.4 py_0 defaults
navigator-updater 0.2.1 py39hecd8cb5_0 defaults
nbclassic 0.2.6 pyhd3eb1b0_0 defaults
nbclient 0.5.3 pyhd3eb1b0_0 defaults
nbconvert 6.1.0 py39hecd8cb5_0 defaults
nbformat 5.1.3 pyhd3eb1b0_0 defaults
ncurses 6.3 hca72f7f_2 defaults
nest-asyncio 1.5.1 pyhd3eb1b0_0 defaults
notebook 6.4.6 py39hecd8cb5_0 defaults
numba 0.54.1 py39hae1ba45_0 defaults
numpy 1.20.3 py39h4b4dc7a_0 defaults
numpy-base 1.20.3 py39he0bd621_0 defaults
olefile 0.46 pyhd3eb1b0_0 defaults
openssl 1.1.1l h9ed2024_0 defaults
packaging 21.3 pyhd3eb1b0_0 defaults
pandocfilters 1.4.3 py39hecd8cb5_1 defaults
parso 0.8.2 pyhd3eb1b0_0 defaults
pexpect 4.8.0 pyhd3eb1b0_3 defaults
pickleshare 0.7.5 pyhd3eb1b0_1003 defaults
pillow 8.4.0 py39h98e4679_0 defaults
pip 21.2.4 py39hecd8cb5_0 defaults
pkginfo 1.7.1 py39hecd8cb5_0 defaults
prometheus_client 0.12.0 pyhd3eb1b0_0 defaults
prompt-toolkit 3.0.20 pyhd3eb1b0_0 defaults
psutil 5.8.0 py39h9ed2024_1 defaults
ptyprocess 0.7.0 pyhd3eb1b0_2 defaults
py-lief 0.10.1 py39h23ab428_1 defaults
pycosat 0.6.3 py39h9ed2024_0 defaults
pycparser 2.21 pyhd3eb1b0_0 defaults
pygments 2.10.0 pyhd3eb1b0_0 defaults
pyjwt 2.1.0 py39hecd8cb5_0 defaults
pyopenssl 21.0.0 pyhd3eb1b0_1 defaults
pyparsing 3.0.4 pyhd3eb1b0_0 defaults
pyqt 5.9.2 py39h23ab428_6 defaults
pyrsistent 0.18.0 py39hca72f7f_0 defaults
pysocks 1.7.1 py39hecd8cb5_0 defaults
python 3.9.7 h88f2d9e_1 defaults
python-dateutil 2.8.2 pyhd3eb1b0_0 defaults
python-libarchive-c 2.9 pyhd3eb1b0_1 defaults
python.app 3 py39hca72f7f_0 defaults
pytz 2021.3 pyhd3eb1b0_0 defaults
pyyaml 6.0 py39hca72f7f_1 defaults
pyzmq 22.3.0 py39he9d5cce_2 defaults
qt 5.9.7 h468cd18_1 defaults
qtpy 1.10.0 pyhd3eb1b0_0 defaults
readline 8.1 h9ed2024_0 defaults
requests 2.26.0 pyhd3eb1b0_0 defaults
ripgrep 12.1.1 0 defaults
ruamel_yaml 0.15.100 py39h9ed2024_0 defaults
send2trash 1.8.0 pyhd3eb1b0_1 defaults
setuptools 58.0.4 py39hecd8cb5_0 defaults
sip 4.19.13 py39h23ab428_0 defaults
six 1.16.0 pyhd3eb1b0_0 defaults
sniffio 1.2.0 py39hecd8cb5_1 defaults
soupsieve 2.3.1 pyhd3eb1b0_0 defaults
sqlite 3.36.0 hce871da_0 defaults
sympy 1.9 py39hecd8cb5_0 defaults
tbb 2021.4.0 haf03e11_0 defaults
terminado 0.9.4 py39hecd8cb5_0 defaults
testpath 0.5.0 pyhd3eb1b0_0 defaults
tk 8.6.11 h7bc2e8c_0 defaults
tornado 6.1 py39h9ed2024_0 defaults
tqdm 4.62.3 pyhd3eb1b0_1 defaults
traitlets 5.1.1 pyhd3eb1b0_0 defaults
tzdata 2021e hda174b7_0 defaults
ujson 4.0.2 py39h23ab428_0 defaults
urllib3 1.26.7 pyhd3eb1b0_0 defaults
wcwidth 0.2.5 pyhd3eb1b0_0 defaults
webencodings 0.5.1 py39hecd8cb5_1 defaults
wheel 0.37.0 pyhd3eb1b0_1 defaults
widgetsnbextension 3.5.1 py39hecd8cb5_0 defaults
xlrd 2.0.1 pyhd3eb1b0_0 defaults
xmltodict 0.12.0 pyhd3eb1b0_0 defaults
xz 5.2.5 h1de35cc_0 defaults
yaml 0.2.5 haf1e3a3_0 defaults
zeromq 4.3.4 h23ab428_0 defaults
zipp 3.6.0 pyhd3eb1b0_0 defaults
zlib 1.2.11 h4dc903c_4 defaults
zstd 1.4.9 h322a384_0 defaults
also, i tried to conda update anaconda, and i got the PackageNotInstalledError
>>>conda update anaconda
PackageNotInstalledError: Package is not installed in prefix.
prefix: /Users/usrname/anaconda3
package name: anaconda
but i think anaconda exists in my conda env,
╰─➤ conda list --name base conda
# packages in environment at /Users/usrname/anaconda3:
#
# Name Version Build Channel
anaconda-client 1.9.0 py39hecd8cb5_0 defaults
anaconda-navigator 2.1.1 py39_0 defaults
conda 4.11.0 py39hecd8cb5_0 defaults
conda-build 3.21.7 py39hecd8cb5_0 defaults
conda-content-trust 0.1.1 pyhd3eb1b0_0 defaults
conda-package-handling 1.7.3 py39h9ed2024_1 defaults
conda-repo-cli 1.0.4 pyhd3eb1b0_0 defaults
conda-token 0.3.0 pyhd3eb1b0_0 defaults

bash: cd: /home/user/.conda/pkgs: No such file or directory

I have had the loader problem with my conda similar to this post:
AttributeError: 'NoneType' object has no attribute 'loader'
So when can not solve it i have decides to reinstall conda by These command :
conda install anaconda-clean
anaconda-clean --yes
wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
sudo bash Anaconda3-2020.11-Linux-x86_64.sh
So based of this post my Conda information is :
active environment : base
active env location : /home/so/anaconda3
shell level : 1
user config file : /home/so/.condarc populated config files : /home/so/.condarc
conda version : 4.9.2
conda-build version : 3.20.5
python version : 3.8.5.final.0
virtual packages : __cuda=11.0=0
__glibc=2.27=0
__unix=0=0
__archspec=1=x86_64
base environment : /home/so/anaconda3 (read only)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /home/so/anaconda3/pkgs
/home/so/.conda/pkgs
envs directories : /home/so/.conda/envs
/home/so/anaconda3/envs
platform : linux-64
user-agent : conda/4.9.2 requests/2.24.0 CPython/3.8.5 Linux/5.4.0-66-generic ubuntu/18.04.5 glibc/2.27
UID:GID : 1000:1000
netrc file : None
offline mode : False
``` and `conda config --show-sources` is:
``` conda config --show-sources
==> /home/so/.condarc <== ssl_verify: True channels:
- defaults
``` and `conda list --show-channel-urls` is:
``` conda list --show-channel-urls
# packages in environment at /home/so/anaconda3:
#
# Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py38_0 defaults
_libgcc_mutex 0.1 main defaults alabaster 0.7.12 py_0 defaults
anaconda 2020.11 py38_0 defaults
anaconda-client 1.7.2 py38_0 defaults
anaconda-navigator 1.10.0 py38_0 defaults
anaconda-project 0.8.4 py_0 defaults
argh 0.26.2 py38_0 defaults
argon2-cffi 20.1.0 py38h7b6447c_1 defaults
asn1crypto 1.4.0 py_0 defaults
astroid 2.4.2 py38_0 defaults
astropy 4.0.2 py38h7b6447c_0 defaults
async_generator 1.10 py_0 defaults
atomicwrites 1.4.0 py_0 defaults
attrs 20.3.0 pyhd3eb1b0_0 defaults
autopep8 1.5.4 py_0 defaults
babel 2.8.1 pyhd3eb1b0_0 defaults
backcall 0.2.0 py_0 defaults
backports 1.0 py_2 defaults
backports.functools_lru_cache 1.6.1 py_0
defaults backports.shutil_get_terminal_size 1.0.0
py38_2 defaults backports.tempfile 1.0
py_1 defaults backports.weakref 1.0.post1
py_1 defaults beautifulsoup4 4.9.3
pyhb0f4dca_0 defaults bitarray 1.6.1
py38h27cfd23_0 defaults bkcharts 0.2
py38_0 defaults blas 1.0
mkl defaults bleach 3.2.1
py_0 defaults blosc 1.20.1
hd408876_0 defaults bokeh 2.2.3
py38_0 defaults boto 2.49.0
py38_0 defaults bottleneck 1.3.2
py38heb32a55_1 defaults brotlipy 0.7.0
py38h7b6447c_1000 defaults bzip2 1.0.8
h7b6447c_0 defaults ca-certificates 2020.10.14
0 defaults cairo 1.14.12
h8948797_3 defaults certifi 2020.6.20
pyhd3eb1b0_3 defaults cffi 1.14.3
py38he30daa8_0 defaults chardet 3.0.4
py38_1003 defaults click 7.1.2
py_0 defaults cloudpickle 1.6.0
py_0 defaults clyent 1.2.2
py38_1 defaults colorama 0.4.4
py_0 defaults conda 4.9.2
py38h06a4308_0 defaults conda-build 3.20.5
py38_1 defaults conda-env 2.6.0
1 defaults conda-package-handling 1.7.2
py38h03888b9_0 defaults conda-verify 3.4.2
py_1 defaults contextlib2 0.6.0.post1
py_0 defaults cryptography 3.1.1
py38h1ba5d50_0 defaults curl 7.71.1
hbc83047_1 defaults cycler 0.10.0
py38_0 defaults cython 0.29.21
py38he6710b0_0 defaults cytoolz 0.11.0
py38h7b6447c_0 defaults dask 2.30.0
py_0 defaults dask-core 2.30.0
py_0 defaults dbus 1.13.18
hb2f20db_0 defaults decorator 4.4.2
py_0 defaults defusedxml 0.6.0
py_0 defaults diff-match-patch 20200713
py_0 defaults distributed 2.30.1
py38h06a4308_0 defaults docutils 0.16
py38_1 defaults entrypoints 0.3
py38_0 defaults et_xmlfile 1.0.1
py_1001 defaults expat 2.2.10
he6710b0_2 defaults fastcache 1.1.0
py38h7b6447c_0 defaults filelock 3.0.12
py_0 defaults flake8 3.8.4
py_0 defaults flask 1.1.2
py_0 defaults fontconfig 2.13.0
h9420a91_0 defaults freetype 2.10.4
h5ab3b9f_0 defaults fribidi 1.0.10
h7b6447c_0 defaults fsspec 0.8.3
py_0 defaults future 0.18.2
py38_1 defaults get_terminal_size 1.0.0
haa9412d_0 defaults gevent 20.9.0
py38h7b6447c_0 defaults glib 2.66.1
h92f7085_0 defaults glob2 0.7
py_0 defaults gmp 6.1.2
h6c8ec71_1 defaults gmpy2 2.0.8
py38hd5f6e3b_3 defaults graphite2 1.3.14
h23475e2_0 defaults greenlet 0.4.17
py38h7b6447c_0 defaults gst-plugins-base 1.14.0
hbbd80ab_1 defaults gstreamer 1.14.0
hb31296c_0 defaults h5py 2.10.0
py38h7918eee_0 defaults harfbuzz 2.4.0
hca77d97_1 defaults hdf5 1.10.4
hb1b8bf9_0 defaults heapdict 1.0.1
py_0 defaults html5lib 1.1
py_0 defaults icu 58.2
he6710b0_3 defaults idna 2.10
py_0 defaults imageio 2.9.0
py_0 defaults imagesize 1.2.0
py_0 defaults importlib-metadata 2.0.0
py_1 defaults importlib_metadata 2.0.0
1 defaults iniconfig 1.1.1
py_0 defaults intel-openmp 2020.2
254 defaults intervaltree 3.1.0
py_0 defaults ipykernel 5.3.4
py38h5ca1d4c_0 defaults ipython 7.19.0
py38hb070fc8_0 defaults ipython_genutils 0.2.0
py38_0 defaults ipywidgets 7.5.1
py_1 defaults isort 5.6.4
py_0 defaults itsdangerous 1.1.0
py_0 defaults jbig 2.1
hdba287a_0 defaults jdcal 1.4.1
py_0 defaults jedi 0.17.1
py38_0 defaults jeepney 0.5.0
pyhd3eb1b0_0 defaults jinja2 2.11.2
py_0 defaults joblib 0.17.0
py_0 defaults jpeg 9b
h024ee3a_2 defaults json5 0.9.5
py_0 defaults jsonschema 3.2.0
py_2 defaults jupyter 1.0.0
py38_7 defaults jupyter_client 6.1.7
py_0 defaults jupyter_console 6.2.0
py_0 defaults jupyter_core 4.6.3
py38_0 defaults jupyterlab 2.2.6
py_0 defaults jupyterlab_pygments 0.1.2
py_0 defaults jupyterlab_server 1.2.0
py_0 defaults keyring 21.4.0
py38_1 defaults kiwisolver 1.3.0
py38h2531618_0 defaults krb5 1.18.2
h173b8e3_0 defaults lazy-object-proxy 1.4.3
py38h7b6447c_0 defaults lcms2 2.11
h396b838_0 defaults ld_impl_linux-64 2.33.1
h53a641e_7 defaults libarchive 3.4.2
h62408e4_0 defaults libcurl 7.71.1
h20c2e04_1 defaults libedit 3.1.20191231
h14c3975_1 defaults libffi 3.3
he6710b0_2 defaults libgcc-ng 9.1.0
hdf63c60_0 defaults libgfortran-ng 7.3.0
hdf63c60_0 defaults liblief 0.10.1
he6710b0_0 defaults libllvm10 10.0.1
hbcb73fb_5 defaults libllvm9 9.0.1
h4a3c616_1 defaults libpng 1.6.37
hbc83047_0 defaults libsodium 1.0.18
h7b6447c_0 defaults libspatialindex 1.9.3
he6710b0_0 defaults libssh2 1.9.0
h1ba5d50_1 defaults libstdcxx-ng 9.1.0
hdf63c60_0 defaults libtiff 4.1.0
h2733197_1 defaults libtool 2.4.6
h7b6447c_1005 defaults libuuid 1.0.3
h1bed415_2 defaults libxcb 1.14
h7b6447c_0 defaults libxml2 2.9.10
hb55368b_3 defaults libxslt 1.1.34
hc22bd24_0 defaults llvmlite 0.34.0
py38h269e1b5_4 defaults locket 0.2.0
py38_1 defaults lxml 4.6.1
py38hefd8a0e_0 defaults lz4-c 1.9.2
heb0550a_3 defaults lzo 2.10
h7b6447c_2 defaults markupsafe 1.1.1
py38h7b6447c_0 defaults matplotlib 3.3.2
0 defaults matplotlib-base 3.3.2
py38h817c723_0 defaults mccabe 0.6.1
py38_1 defaults mistune 0.8.4
py38h7b6447c_1000 defaults mkl 2020.2
256 defaults mkl-service 2.3.0
py38he904b0f_0 defaults mkl_fft 1.2.0
py38h23d657b_0 defaults mkl_random 1.1.1
py38h0573a6f_0 defaults mock 4.0.2
py_0 defaults more-itertools 8.6.0
pyhd3eb1b0_0 defaults mpc 1.1.0
h10f8cd9_1 defaults mpfr 4.0.2
hb69a4c5_1 defaults mpmath 1.1.0
py38_0 defaults msgpack-python 1.0.0
py38hfd86e86_1 defaults multipledispatch 0.6.0
py38_0 defaults navigator-updater 0.2.1
py38_0 defaults nbclient 0.5.1
py_0 defaults nbconvert 6.0.7
py38_0 defaults nbformat 5.0.8
py_0 defaults ncurses 6.2
he6710b0_1 defaults nest-asyncio 1.4.2
pyhd3eb1b0_0 defaults networkx 2.5
py_0 defaults nltk 3.5
py_0 defaults nose 1.3.7
py38_2 defaults notebook 6.1.4
py38_0 defaults numba 0.51.2
py38h0573a6f_1 defaults numexpr 2.7.1
py38h423224d_0 defaults numpy 1.19.2
py38h54aff64_0 defaults numpy-base 1.19.2
py38hfa32c7d_0 defaults numpydoc 1.1.0
pyhd3eb1b0_1 defaults olefile 0.46
py_0 defaults openpyxl 3.0.5
py_0 defaults openssl 1.1.1h
h7b6447c_0 defaults packaging 20.4
py_0 defaults pandas 1.1.3
py38he6710b0_0 defaults pandoc 2.11
hb0f4dca_0 defaults pandocfilters 1.4.3
py38h06a4308_1 defaults pango 1.45.3
hd140c19_0 defaults parso 0.7.0
py_0 defaults partd 1.1.0
py_0 defaults patchelf 0.12
he6710b0_0 defaults path 15.0.0
py38_0 defaults path.py 12.5.0
0 defaults pathlib2 2.3.5
py38_0 defaults pathtools 0.1.2
py_1 defaults patsy 0.5.1
py38_0 defaults pcre 8.44
he6710b0_0 defaults pep8 1.7.1
py38_0 defaults pexpect 4.8.0
py38_0 defaults pickleshare 0.7.5
py38_1000 defaults pillow 8.0.1
py38he98fc37_0 defaults pip 20.2.4
py38h06a4308_0 defaults pixman 0.40.0
h7b6447c_0 defaults pkginfo 1.6.1
py38h06a4308_0 defaults pluggy 0.13.1
py38_0 defaults ply 3.11
py38_0 defaults prometheus_client 0.8.0
py_0 defaults prompt-toolkit 3.0.8
py_0 defaults prompt_toolkit 3.0.8
0 defaults psutil 5.7.2
py38h7b6447c_0 defaults ptyprocess 0.6.0
py38_0 defaults py 1.9.0
py_0 defaults py-lief 0.10.1
py38h403a769_0 defaults pycodestyle 2.6.0
py_0 defaults pycosat 0.6.3
py38h7b6447c_1 defaults pycparser 2.20
py_2 defaults pycurl 7.43.0.6
py38h1ba5d50_0 defaults pydocstyle 5.1.1
py_0 defaults pyflakes 2.2.0
py_0 defaults pygments 2.7.2
pyhd3eb1b0_0 defaults pylint 2.6.0
py38_0 defaults pyodbc 4.0.30
py38he6710b0_0 defaults pyopenssl 19.1.0
py_1 defaults pyparsing 2.4.7
py_0 defaults pyqt 5.9.2
py38h05f1152_4 defaults pyrsistent 0.17.3
py38h7b6447c_0 defaults pysocks 1.7.1
py38_0 defaults pytables 3.6.1
py38h9fd0a39_0 defaults pytest 6.1.1
py38_0 defaults python 3.8.5
h7579374_1 defaults python-dateutil 2.8.1
py_0 defaults python-jsonrpc-server 0.4.0
py_0 defaults python-language-server 0.35.1
py_0 defaults python-libarchive-c 2.9
py_0 defaults pytz 2020.1
py_0 defaults pywavelets 1.1.1
py38h7b6447c_2 defaults pyxdg 0.27
pyhd3eb1b0_0 defaults pyyaml 5.3.1
py38h7b6447c_1 defaults pyzmq 19.0.2
py38he6710b0_1 defaults qdarkstyle 2.8.1
py_0 defaults qt 5.9.7
h5867ecd_1 defaults qtawesome 1.0.1
py_0 defaults qtconsole 4.7.7
py_0 defaults qtpy 1.9.0
py_0 defaults readline 8.0
h7b6447c_0 defaults regex 2020.10.15
py38h7b6447c_0 defaults requests 2.24.0
py_0 defaults ripgrep 12.1.1
0 defaults rope 0.18.0
py_0 defaults rtree 0.9.4
py38_1 defaults ruamel_yaml 0.15.87
py38h7b6447c_1 defaults scikit-image 0.17.2
py38hdf5156a_0 defaults scikit-learn 0.23.2
py38h0573a6f_0 defaults scipy 1.5.2
py38h0b6359f_0 defaults seaborn 0.11.0
py_0 defaults secretstorage 3.1.2
py38_0 defaults send2trash 1.5.0
py38_0 defaults setuptools 50.3.1
py38h06a4308_1 defaults simplegeneric 0.8.1
py38_2 defaults singledispatch 3.4.0.3
py_1001 defaults sip 4.19.13
py38he6710b0_0 defaults six 1.15.0
py38h06a4308_0 defaults snappy 1.1.8
he6710b0_0 defaults snowballstemmer 2.0.0
py_0 defaults sortedcollections 1.2.1
py_0 defaults sortedcontainers 2.2.2
py_0 defaults soupsieve 2.0.1
py_0 defaults sphinx 3.2.1
py_0 defaults sphinxcontrib 1.0
py38_1 defaults sphinxcontrib-applehelp 1.0.2
py_0 defaults sphinxcontrib-devhelp 1.0.2
py_0 defaults sphinxcontrib-htmlhelp 1.0.3
py_0 defaults sphinxcontrib-jsmath 1.0.1
py_0 defaults sphinxcontrib-qthelp 1.0.3
py_0 defaults sphinxcontrib-serializinghtml 1.1.4
py_0 defaults sphinxcontrib-websupport 1.2.4
py_0 defaults spyder 4.1.5
py38_0 defaults spyder-kernels 1.9.4
py38_0 defaults sqlalchemy 1.3.20
py38h7b6447c_0 defaults sqlite 3.33.0
h62c20be_0 defaults statsmodels 0.12.0
py38h7b6447c_0 defaults sympy 1.6.2
py38h06a4308_1 defaults tbb 2020.3
hfd86e86_0 defaults tblib 1.7.0
py_0 defaults terminado 0.9.1
py38_0 defaults testpath 0.4.4
py_0 defaults threadpoolctl 2.1.0
pyh5ca1d4c_0 defaults tifffile 2020.10.1
py38hdd07704_2 defaults tk 8.6.10
hbc83047_0 defaults toml 0.10.1
py_0 defaults toolz 0.11.1
py_0 defaults tornado 6.0.4
py38h7b6447c_1 defaults tqdm 4.50.2
py_0 defaults traitlets 5.0.5
py_0 defaults typing_extensions 3.7.4.3
py_0 defaults ujson 4.0.1
py38he6710b0_0 defaults unicodecsv 0.14.1
py38_0 defaults unixodbc 2.3.9
h7b6447c_0 defaults urllib3 1.25.11
py_0 defaults watchdog 0.10.3
py38_0 defaults wcwidth 0.2.5
py_0 defaults webencodings 0.5.1
py38_1 defaults werkzeug 1.0.1
py_0 defaults wheel 0.35.1
py_0 defaults widgetsnbextension 3.5.1
py38_0 defaults wrapt 1.11.2
py38h7b6447c_0 defaults wurlitzer 2.0.1
py38_0 defaults xlrd 1.2.0
py_0 defaults xlsxwriter 1.3.7
py_0 defaults xlwt 1.3.0
py38_0 defaults xmltodict 0.12.0
py_0 defaults xz 5.2.5
h7b6447c_0 defaults yaml 0.2.5
h7b6447c_0 defaults yapf 0.30.0
py_0 defaults zeromq 4.3.3
he6710b0_3 defaults zict 2.0.0
py_0 defaults zipp 3.4.0
pyhd3eb1b0_0 defaults zlib 1.2.11
h7b6447c_3 defaults zope 1.0
py38_1 defaults zope.event 4.5.0
py38_0 defaults zope.interface 5.1.2
py38h7b6447c_0 defaults zstd 1.4.5
h9ceee32_0 defaults
but when i tried to install the Jupyter by conda install -c conda-forge jupyterlab command i get this error:
(base) so#so-Lenovo-ideapad-310-15IKB:~/Downloads$ conda install -c conda-forge jupyterlab
Collecting package metadata (current_repodata.json): failed
NotWritableError: The current user does not have write permissions to a required path.
path: /home/so/.conda/pkgs/urls.txt
uid: 1000
gid: 1000
If you feel that permissions on this path are set incorrectly, you can manually
change them by executing
$ sudo chown 1000:1000 /home/so/.conda/pkgs/urls.txt
In general, it's not advisable to use 'sudo conda'.
And i have understand the /home/so/.conda/pkgs folder is not exist as you can see below:
(base) so#so-Lenovo-ideapad-310-15IKB:~$ cd /home/so/.conda/pkgs
bash: cd: /home/so/.conda/pkgs: No such file or directory
So what do you suggest to solve this problem?
Update:
I have found solution and write it as answer to this question for other usage, But I don't know why by removing the 'username:` part of the above command , like said here and shown below, it was not working?
(base) so#so-Lenovo-ideapad-310-15IKB:~$ sudo chmod -R +x /home/so/anaconda3
(base) so#so-Lenovo-ideapad-310-15IKB:~$ sudo chmod -R +x /home/so/.conda
(base) so#so-Lenovo-ideapad-310-15IKB:~$ conda update --all
Collecting package metadata (current_repodata.json): failed
NotWritableError: The current user does not have write permissions to a required path.
path: /home/so/.conda/pkgs/urls.txt
uid: 1000
gid: 1000
If you feel that permissions on this path are set incorrectly, you can manually
change them by executing
$ sudo chown 1000:1000 /home/so/.conda/pkgs/urls.txt
In general, it's not advisable to use 'sudo conda'.
Thanks.
It was the conda permission problem and based of this post and its answers, I tried these commands:
so#so-Lenovo-ideapad-310-15IKB:~$ sudo chown -R so: /home/so/anaconda3
so#so-Lenovo-ideapad-310-15IKB:~$ sudo chown -R so: /home/so/.conda
And my problem as you can see below solved:
Thanks.

virtualenv: pre-installed with packages on creating virtual environment

I created a virtual environment using command virtualenv env on my terminal. On using pip freeze > requirements.txt after activating the virtual environment, I was a bunch of packages preinstalled.
Here is requirements.txt:
appdirs==1.4.3
CacheControl==0.12.6
certifi==2019.11.28
chardet==3.0.4
colorama==0.4.3
contextlib2==0.6.0
distlib==0.3.0
distro==1.4.0
html5lib==1.0.1
idna==2.8
ipaddr==2.2.0
lockfile==0.12.2
msgpack==0.6.2
packaging==20.3
pep517==0.8.2
progress==1.5
pyparsing==2.4.6
pytoml==0.1.21
requests==2.22.0
retrying==1.3.3
six==1.14.0
urllib3==1.25.8
webencodings==0.5.1
I haven't installed them and then, why are they there? I don't want any obsolete packages in the project which takes space and time.
Output on virtualenv env command:
created virtual environment CPython3.7.5.final.0-64 in 297ms
creator CPython3Posix(dest=/home/techmirtz/projects/Django/apps/polls/env, clear=False, global=False)
seeder FromAppData(download=False, pkg_resources=latest, requests=latest, setuptools=latest, wheel=latest, CacheControl=latest, chardet=latest, webencodings=latest, certifi=latest, distlib=latest, idna=latest, colorama=latest, distro=latest, progress=latest, msgpack=latest, pep517=latest, appdirs=latest, urllib3=latest, pip=latest, html5lib=latest, pyparsing=latest, contextlib2=latest, six=latest, lockfile=latest, packaging=latest, pytoml=latest, retrying=latest, ipaddr=latest, via=copy, app_data_dir=/home/techmirtz/.local/share/virtualenv/seed-app-data/v1.0.1.debian)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Also, I activated virtual environment by source env/bin/activate.
Then, I tried conda list:
# packages in environment at /home/techmirtz/anaconda3:
#
# Name Version Build Channel
_anaconda_depends 2019.03 py37_0
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0
_libgcc_mutex 0.1 main
alabaster 0.7.12 py37_0
anaconda custom py37_1
anaconda-client 1.7.2 py37_0
anaconda-navigator 1.9.7 py37_0
anaconda-project 0.8.3 py_0
anyqt 0.0.10 py37_0
asn1crypto 0.24.0 py37_0
astroid 2.2.5 py37_0
astropy 3.2.1 py37h7b6447c_0
atomicwrites 1.3.0 py37_1
attrs 19.1.0 py37_1
babel 2.7.0 py_0
backcall 0.1.0 py37_0
backports 1.0 py_2
backports.functools_lru_cache 1.5 py_2
backports.os 0.1.1 py37_0
backports.shutil_get_terminal_size 1.0.0 py37_2
backports.tempfile 1.0 py_1
backports.weakref 1.0.post1 py_1
beautifulsoup4 4.7.1 py37_1
bitarray 0.9.3 py37h7b6447c_0
bkcharts 0.2 py37_0
blas 1.0 mkl
bleach 3.1.0 py37_0
blosc 1.16.3 hd408876_0
bokeh 1.2.0 py37_0
boto 2.49.0 py37_0
bottleneck 1.2.1 py37h035aef0_1
bzip2 1.0.8 h7b6447c_0
ca-certificates 2020.1.1 0
cairo 1.14.12 h8948797_3
certifi 2020.4.5.1 py37_0
cffi 1.12.3 py37h2e261b9_0
chardet 3.0.4 py37_1
click 7.0 py37_0
cloudpickle 1.2.1 py_0
clyent 1.2.2 py37_1
colorama 0.4.1 py37_0
conda 4.8.3 py37_0
conda-build 3.18.8 py37_0
conda-env 2.6.0 1
conda-package-handling 1.3.11 py37_0
conda-verify 3.4.2 py_1
contextlib2 0.5.5 py37_0
cryptography 2.7 py37h1ba5d50_0
curl 7.65.2 hbc83047_0
cycler 0.10.0 py37_0
cython 0.29.12 py37he6710b0_0
cytoolz 0.10.0 py37h7b6447c_0
dask 2.1.0 py_0
dask-core 2.1.0 py_0
dbus 1.13.6 h746ee38_0
decorator 4.4.0 py37_1
defusedxml 0.6.0 py_0
distributed 2.1.0 py_0
docutils 0.14 py37_0
entrypoints 0.3 py37_0
et_xmlfile 1.0.1 py37_0
expat 2.2.6 he6710b0_0
fastcache 1.1.0 py37h7b6447c_0
filelock 3.0.12 py_0
flask 1.1.1 py_0
fontconfig 2.13.0 h9420a91_0
freetype 2.9.1 h8a8886c_1
fribidi 1.0.5 h7b6447c_0
future 0.17.1 py37_0
get_terminal_size 1.0.0 haa9412d_0
gevent 1.4.0 py37h7b6447c_0
glib 2.56.2 hd408876_0
glob2 0.7 py_0
gmp 6.1.2 h6c8ec71_1
gmpy2 2.0.8 py37h10f8cd9_2
graphite2 1.3.13 h23475e2_0
graphviz 2.40.1 h21bd128_2 anaconda
greenlet 0.4.15 py37h7b6447c_0
gst-plugins-base 1.14.0 hbbd80ab_1
gstreamer 1.14.0 hb453b48_1
h5py 2.9.0 py37h7918eee_0
harfbuzz 1.8.8 hffaf4a1_0
hdf5 1.10.4 hb1b8bf9_0
heapdict 1.0.0 py37_2
html5lib 1.0.1 py37_0
icu 58.2 h9c2bf20_1
idna 2.8 py37_0
imageio 2.5.0 py37_0
imagesize 1.1.0 py37_0
importlib_metadata 0.17 py37_1
intel-openmp 2019.4 243
ipykernel 5.1.1 py37h39e3cac_0
ipython 7.6.1 py37h39e3cac_0
ipython_genutils 0.2.0 py37_0
ipywidgets 7.5.0 py_0
isort 4.3.21 py37_0
itsdangerous 1.1.0 py37_0
jbig 2.1 hdba287a_0
jdcal 1.4.1 py_0
jedi 0.13.3 py37_0
jeepney 0.4 py37_0
jinja2 2.10.1 py37_0
joblib 0.13.2 py37_0
jpeg 9b h024ee3a_2
json5 0.8.4 py_0
jsonschema 3.0.1 py37_0
jupyter 1.0.0 py37_7
jupyter_client 5.3.1 py_0
jupyter_console 6.0.0 py37_0
jupyter_core 4.5.0 py_0
jupyterlab 1.0.2 py37hf63ae98_0
jupyterlab_server 1.0.0 py_0
keyring 18.0.0 py37_0
kiwisolver 1.1.0 py37he6710b0_0
krb5 1.16.1 h173b8e3_7
lazy-object-proxy 1.4.1 py37h7b6447c_0
libarchive 3.3.3 h5d8350f_5
libcurl 7.65.2 h20c2e04_0
libedit 3.1.20181209 hc058e9b_0
libffi 3.2.1 hd88cf55_4
libgcc-ng 9.1.0 hdf63c60_0
libgfortran-ng 7.3.0 hdf63c60_0
liblief 0.9.0 h7725739_2
libpng 1.6.37 hbc83047_0
libsodium 1.0.16 h1bed415_0
libssh2 1.8.2 h1ba5d50_0
libstdcxx-ng 9.1.0 hdf63c60_0
libtiff 4.0.10 h2733197_2
libtool 2.4.6 h7b6447c_5
libuuid 1.0.3 h1bed415_2
libxcb 1.13 h1bed415_1
libxml2 2.9.9 hea5a465_1
libxslt 1.1.33 h7d1a2b0_0
llvmlite 0.29.0 py37hd408876_0
locket 0.2.0 py37_1
lxml 4.3.4 py37hefd8a0e_0
lz4-c 1.8.1.2 h14c3975_0
lzo 2.10 h49e0be7_2
markupsafe 1.1.1 py37h7b6447c_0
matplotlib 3.1.0 py37h5429711_0
mccabe 0.6.1 py37_1
mistune 0.8.4 py37h7b6447c_0
mkl 2019.4 243
mkl-service 2.0.2 py37h7b6447c_0
mkl_fft 1.0.12 py37ha843d7b_0
mkl_random 1.0.2 py37hd81dba3_0
mock 3.0.5 py37_0
more-itertools 7.0.0 py37_0
mpc 1.1.0 h10f8cd9_1
mpfr 4.0.1 hdf1c602_3
mpmath 1.1.0 py37_0
msgpack-python 0.6.1 py37hfd86e86_1
multipledispatch 0.6.0 py37_0
navigator-updater 0.2.1 py37_0
nbconvert 5.5.0 py_0
nbformat 4.4.0 py37_0
ncurses 6.1 he6710b0_1
networkx 2.3 py_0
nltk 3.4.4 py37_0
nose 1.3.7 py37_2
notebook 6.0.0 py37_0
numba 0.44.1 py37h962f231_0
numexpr 2.6.9 py37h9e4a6bb_0
numpy 1.16.4 py37h7e9f1db_0
numpy-base 1.16.4 py37hde5b4d6_0
numpydoc 0.9.1 py_0
olefile 0.46 py37_0
openpyxl 2.6.2 py_0
openssl 1.1.1g h7b6447c_0
packaging 19.0 py37_0
pandas 0.24.2 py37he6710b0_0
pandoc 2.2.3.2 0
pandocfilters 1.4.2 py37_1
pango 1.42.4 h049681c_0
parso 0.5.0 py_0
partd 1.0.0 py_0
patchelf 0.9 he6710b0_3
path.py 12.0.1 py_0
pathlib2 2.3.4 py37_0
patsy 0.5.1 py37_0
pcre 8.43 he6710b0_0
pep8 1.7.1 py37_0
pexpect 4.7.0 py37_0
pickleshare 0.7.5 py37_0
pillow 6.1.0 py37h34e0f95_0
pip 19.1.1 py37_0
pixman 0.38.0 h7b6447c_0
pkginfo 1.5.0.1 py37_0
pluggy 0.12.0 py_0
ply 3.11 py37_0
prometheus_client 0.7.1 py_0
prompt_toolkit 2.0.9 py37_0
psutil 5.6.3 py37h7b6447c_0
ptyprocess 0.6.0 py37_0
py 1.8.0 py37_0
py-lief 0.9.0 py37h7725739_2
pycodestyle 2.5.0 py37_0
pycosat 0.6.3 py37h14c3975_0
pycparser 2.19 py37_0
pycrypto 2.6.1 py37h14c3975_9
pycurl 7.43.0.3 py37h1ba5d50_0
pyflakes 2.1.1 py37_0
pygments 2.4.2 py_0
pylint 2.3.1 py37_0
pyodbc 4.0.26 py37he6710b0_0
pyopenssl 19.0.0 py37_0
pyparsing 2.4.0 py_0
pyqt 5.9.2 py37h05f1152_2
pyqtgraph 0.10.0 py37h28b3542_3
pyrsistent 0.14.11 py37h7b6447c_0
pysocks 1.7.0 py37_0
pytables 3.5.2 py37h71ec239_1
pytest 5.0.1 py37_0
pytest-arraydiff 0.3 py37h39e3cac_0
pytest-astropy 0.5.0 py37_0
pytest-doctestplus 0.3.0 py37_0
pytest-openfiles 0.3.2 py37_0
pytest-remotedata 0.3.1 py37_0
python 3.7.3 h0371630_0
python-dateutil 2.8.0 py37_0
python-graphviz 0.10.1 py_0
python-libarchive-c 2.8 py37_11
pytz 2019.1 py_0
pywavelets 1.0.3 py37hdd07704_1
pyyaml 5.1.1 py37h7b6447c_0
pyzmq 18.0.0 py37he6710b0_0
qt 5.9.7 h5867ecd_1
qtawesome 0.5.7 py37_1
qtconsole 4.5.1 py_0
qtpy 1.8.0 py_0
readline 7.0 h7b6447c_5
requests 2.22.0 py37_0
rope 0.14.0 py_0
ruamel_yaml 0.15.46 py37h14c3975_0
scikit-image 0.15.0 py37he6710b0_0
scikit-learn 0.21.2 py37hd81dba3_0
scipy 1.3.0 py37h7c811a0_0
seaborn 0.9.0 py37_0
secretstorage 3.1.1 py37_0
send2trash 1.5.0 py37_0
setuptools 41.0.1 py37_0
simplegeneric 0.8.1 py37_2
singledispatch 3.4.0.3 py37_0
sip 4.19.8 py37hf484d3e_0
six 1.12.0 py37_0
snappy 1.1.7 hbae5bb6_3
snowballstemmer 1.9.0 py_0
sortedcollections 1.1.2 py37_0
sortedcontainers 2.1.0 py37_0
soupsieve 1.8 py37_0
sphinx 2.1.2 py_0
sphinxcontrib 1.0 py37_1
sphinxcontrib-applehelp 1.0.1 py_0
sphinxcontrib-devhelp 1.0.1 py_0
sphinxcontrib-htmlhelp 1.0.2 py_0
sphinxcontrib-jsmath 1.0.1 py_0
sphinxcontrib-qthelp 1.0.2 py_0
sphinxcontrib-serializinghtml 1.1.3 py_0
sphinxcontrib-websupport 1.1.2 py_0
spyder 3.3.6 py37_0
spyder-kernels 0.5.1 py37_0
sqlalchemy 1.3.5 py37h7b6447c_0
sqlite 3.29.0 h7b6447c_0
statsmodels 0.10.0 py37hdd07704_0
sympy 1.4 py37_0
tbb 2019.4 hfd86e86_0
tblib 1.4.0 py_0
terminado 0.8.2 py37_0
testpath 0.4.2 py37_0
tk 8.6.8 hbc83047_0
toolz 0.10.0 py_0
tornado 6.0.3 py37h7b6447c_0
tqdm 4.32.1 py_0
traitlets 4.3.2 py37_0
unicodecsv 0.14.1 py37_0
unixodbc 2.3.7 h14c3975_0
urllib3 1.24.2 py37_0
wcwidth 0.1.7 py37_0
webencodings 0.5.1 py37_1
werkzeug 0.15.4 py_0
wheel 0.33.4 py37_0
widgetsnbextension 3.5.0 py37_0
wrapt 1.11.2 py37h7b6447c_0
wurlitzer 1.0.2 py37_0
xlrd 1.2.0 py37_0
xlsxwriter 1.1.8 py_0
xlwt 1.3.0 py37_0
xz 5.2.4 h14c3975_4
yaml 0.1.7 had09818_2
zeromq 4.3.1 he6710b0_3
zict 1.0.0 py_0
zipp 0.5.1 py_0
zlib 1.2.11 h7b6447c_3
zstd 1.3.7 h0b5b093_0
I was struggling with the same problem. New virtual environments had many unwanted packages installed, even though some of these are things that I do not even have installed with my system python or any virtual environment. At first I assumed that this must be some local configuration bug, but the list of packages installed is complete identical to the ones that you listed, so it seems more likely that this is a bug in the virtualenv package itself.
When I create a new virtualenv it contains the following libraries no matter what:
appdirs==1.4.3
CacheControl==0.12.6
certifi==2019.11.28
chardet==3.0.4
colorama==0.4.3
contextlib2==0.6.0
distlib==0.3.0
distro==1.4.0
html5lib==1.0.1
idna==2.8
ipaddr==2.2.0
lockfile==0.12.2
msgpack==0.6.2
packaging==20.3
pep517==0.8.2
progress==1.5
pyparsing==2.4.6
pytoml==0.1.21
requests==2.22.0
retrying==1.3.3
six==1.14.0
urllib3==1.25.8
webencodings==0.5.1
I wanted to know why these packages were being installed so that I could disable them, and while looking I found that these packages are all in the folder
~/.local/share/virtualenv/seed-app-data/v1.0.1.debian/3.8/wheels
Unfortunately, just removing this folder doesn't work. It's regenerated with the same content, so something else upstream is responsible for the bug. This seems likely to be a packaging error by Ubuntu or something like that.
I am on Ubuntu 20.04 with this version of virtualenv:
python3-virtualenv/focal,focal,now 20.0.17-1 all - I never had the issue while on previous versions of Ubuntu. if you have a similar platform that would help confirm the hypothesis.
If you need a workaround, I found that the following method for creating virtual environments still works without including all the unwanted packages:
python3 -m venv path/to/venv
(You'll need to run sudo apt-get install python3-venv first for this to work)
In my case, I had the same problem, created a virtual environment, and exactly appeared the same pre-installed packages within it.
Data of my system:
Python 3.8.5
Linux Mint 20.1
Note: I do not have pip installed globally on my system, only within virtual environments.
The solution that worked for me:
Unistall python3-virtualenv, including your dependencies
$ sudo apt-get remove --auto-remove python3-virtualenv
Check that there is no virtualenv installed
$ virtualenv
Should see something similar to this
Command 'virtualenv' not found, but it can be installed with:
sudo apt install python3-virtualenv
First, update. Then I install virtualenv but not with python3-virtualenv. Instead, I use
$ sudo apt-get update
$ sudo apt-get install virtualenv
The virtualenv will be installed, and the necessary dependencies of Python3 and its appropriate versions.
Now, when I create a virtual environment this is totally empty.
^ u^)b

Update python on anaconda

My current python version is :
When I search for available python using the code:
conda search python
Below is the output:
I want to update my python to the latest version.
I use the following commands:
conda config --show
It gives the following output, Please review it and let me know what is the issue.
add_anaconda_token: True
add_pip_as_python_dependency: True
aggressive_update_packages:
- ca-certificates
- certifi
- openssl
allow_conda_downgrades: False
allow_cycles: True
allow_non_channel_urls: False
allow_softlinks: False
always_copy: False
always_softlink: False
always_yes: None
anaconda_upload: None
auto_activate_base: True
auto_stack: 0
auto_update_conda: True
bld_path:
changeps1: True
channel_alias: https://conda.anaconda.org
channel_priority: flexible
channels:
- defaults
client_ssl_cert: None
client_ssl_cert_key: None
clobber: False
conda_build: {}
create_default_packages: []
croot: /opt/anaconda3/conda-bld
custom_channels:
pkgs/main: https://repo.anaconda.com
pkgs/r: https://repo.anaconda.com
pkgs/pro: https://repo.anaconda.com
custom_multichannels:
defaults:
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
local:
debug: False
default_channels:
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
default_python: 3.7
default_threads: None
deps_modifier: not_set
dev: False
disallowed_packages: []
download_only: False
dry_run: False
enable_private_envs: False
env_prompt: ({default_env})
envs_dirs:
- /opt/anaconda3/envs
- /Users/aarav/.conda/envs
error_upload_url: https://conda.io/conda-post/unexpected-error
execute_threads: 1
extra_safety_checks: False
force: False
force_32bit: False
force_reinstall: False
force_remove: False
ignore_pinned: False
json: False
local_repodata_ttl: 1
migrated_channel_aliases: []
migrated_custom_channels: {}
non_admin_enabled: True
notify_outdated_conda: True
offline: False
override_channels_enabled: True
path_conflict: clobber
pinned_packages: []
pip_interop_enabled: False
pkgs_dirs:
- /opt/anaconda3/pkgs
- /Users/aarav/.conda/pkgs
proxy_servers: {}
quiet: False
remote_backoff_factor: 1
remote_connect_timeout_secs: 9.15
remote_max_retries: 3
remote_read_timeout_secs: 60.0
repodata_fns:
- current_repodata.json
- repodata.json
repodata_threads: None
report_errors: None
restore_free_channel: False
rollback_enabled: True
root_prefix: /opt/anaconda3
safety_checks: warn
sat_solver: pycosat
separate_format_cache: False
shortcuts: True
show_channel_urls: None
solver_ignore_timestamps: False
ssl_verify: True
subdir: osx-64
subdirs:
- osx-64
- noarch
target_prefix_override:
track_features: []
unsatisfiable_hints: True
unsatisfiable_hints_check_depth: 2
update_modifier: update_specs
use_index_cache: False
use_local: False
use_only_tar_bz2: False
verbosity: 0
verify_threads: 1
whitelist_channels: []
I also tried to run this :
conda install python=3.8.3 -d [--json]
I got this error:
I tried using install the latest version using the following command:
conda install python=3.8.3
It was This was the output:
The conda modules that have been installed are listed below :
conda list
# packages in environment at /opt/anaconda3:
#
# Name Version Build Channel
_anaconda_depends 2020.02 py37_0
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0
absl-py 0.9.0 py37_0
alabaster 0.7.12 py37_0
altgraph 0.17 py_0
amqp 2.5.2 pypi_0 pypi
anaconda custom py37_1
anaconda-client 1.7.2 py37_0
anaconda-navigator 1.9.12 py37_0
anaconda-project 0.8.4 py_0
applaunchservices 0.2.1 py_0
appnope 0.1.0 py37_0
appscript 1.1.0 py37h1de35cc_0
argh 0.26.2 py37_0
asn1crypto 1.3.0 py37_0
astor 0.8.0 py37_0
astroid 2.4.1 py37_0
astropy 4.0.1.post1 py37h01d97ff_1
atomicwrites 1.4.0 py_0
attrs 19.3.0 py_0
autopep8 1.4.4 py_0
babel 2.8.0 py_0
backcall 0.1.0 py37_0
backports 1.0 py_2
backports.functools_lru_cache 1.6.1 py_0
backports.shutil_get_terminal_size 1.0.0 py37_2
backports.tempfile 1.0 py_1
backports.weakref 1.0.post1 py_1
beautifulsoup4 4.9.1 py37_0
billiard 3.6.3.0 pypi_0 pypi
bitarray 1.2.2 py37haf1e3a3_0
bkcharts 0.2 py37_0
blas 1.0 mkl
bleach 3.1.4 py_0
blosc 1.16.3 hd9629dc_0
bokeh 2.0.2 py37_0
boto 2.49.0 py37_0
bottleneck 1.3.2 py37hf1fa96c_1
bzip2 1.0.8 h1de35cc_0
c-ares 1.15.0 h1de35cc_1001
ca-certificates 2020.4.5.2 hecda079_0 conda-forge
cachetools 4.1.0 pypi_0 pypi
celery 4.4.2 pypi_0 pypi
certifi 2020.4.5.2 py37hc8dfbb8_0 conda-forge
cffi 1.14.0 py37hb5b8e2f_0
chardet 3.0.4 py37_1003
click 7.1.2 py_0
cloudpickle 1.4.1 py_0
clyent 1.2.2 py37_1
colorama 0.4.3 py_0
conda 4.8.3 py37hc8dfbb8_1 conda-forge
conda-build 3.18.11 py37_0
conda-env 2.6.0 1
conda-package-handling 1.6.1 py37h1de35cc_0
conda-verify 3.4.2 py_1
contextlib2 0.6.0.post1 py_0
cryptography 2.9.2 py37ha12b0ac_0
cssselect 1.1.0 pypi_0 pypi
curl 7.69.1 ha441bb4_0
cycler 0.10.0 py37_0
cython 0.29.17 py37h0a44026_0
cytoolz 0.10.1 py37h1de35cc_0
dask 2.17.2 py_0
dask-core 2.17.2 py_0
dbus 1.13.14 h517e14e_0
decorator 4.4.2 py_0
defusedxml 0.6.0 py_0
diazo 1.4.0 pypi_0 pypi
diff-match-patch 20181111 py_0
distributed 2.17.0 py37_0
django 1.7.11 pypi_0 pypi
django-haystack 2.8.1 pypi_0 pypi
django-hitcounter 0.1.1 pypi_0 pypi
django-revproxy 0.10.0 pypi_0 pypi
django-taggit 1.2.0 pypi_0 pypi
docutils 0.16 py37_1
entrypoints 0.3 py37_0
et_xmlfile 1.0.1 py37_0
etiquetando 0.1 pypi_0 pypi
expat 2.2.6 h0a44026_0
fastcache 1.1.0 py37h1de35cc_0
filelock 3.0.12 py_0
flake8 3.8.2 py_0
flask 1.1.2 py_0
freetype 2.9.1 hb4e5f40_0
fsspec 0.7.4 py_0
future 0.18.2 py37_1
gast 0.3.3 py_0
get_terminal_size 1.0.0 h7520d66_0
gettext 0.19.8.1 h15daf44_3
gevent 1.4.0 py37h1de35cc_0
glib 2.63.1 hd977a24_0
glob2 0.7 py_0
gmp 6.1.2 hb37e062_1
gmpy2 2.0.8 py37h6ef4df4_2
google-auth 1.14.3 pypi_0 pypi
google-auth-oauthlib 0.4.1 pypi_0 pypi
greenlet 0.4.15 py37h1de35cc_0
grpcio 1.29.0 pypi_0 pypi
h5py 2.10.0 py37h3134771_0
hdf5 1.10.4 hfa1e0ec_0
heapdict 1.0.1 py_0
html2text 2020.1.16 pypi_0 pypi
html5lib 1.0.1 py37_0
hypothesis 5.11.0 py_0
icu 58.2 h0a44026_3
idna 2.9 py_1
imageio 2.8.0 py_0
imagesize 1.2.0 py_0
imbalanced-learn 0.6.2 py_0 conda-forge
importlib-metadata 1.6.0 py37_0
importlib_metadata 1.6.0 0
intel-openmp 2019.4 233
intervaltree 3.0.2 py_0
ipykernel 5.1.4 py37h39e3cac_0
ipython 7.13.0 py37h5ca1d4c_0
ipython_genutils 0.2.0 py37_0
ipywidgets 7.5.1 py_0
isort 4.3.21 py37_0
itsdangerous 1.1.0 py37_0
jbig 2.1 h4d881f8_0
jdcal 1.4.1 py_0
jedi 0.15.2 py37_0
jinja2 2.11.2 py_0
joblib 0.15.1 py_0
jpeg 9b he5867d9_2
json5 0.9.5 py_0
jsonschema 3.2.0 py37_0
jupyter 1.0.0 py37_7
jupyter_client 6.1.3 py_0
jupyter_console 6.1.0 py_0
jupyter_core 4.6.3 py37_0
jupyterlab 1.2.6 pyhf63ae98_0
jupyterlab_server 1.1.4 py_0
keras-applications 1.0.8 py_0
keras-preprocessing 1.1.0 py_1
keyring 21.1.1 py37_2
kiwisolver 1.2.0 py37h04f5b5a_0
kombu 4.6.8 pypi_0 pypi
krb5 1.17.1 hddcf347_0
lazy-object-proxy 1.4.3 py37h1de35cc_0
libarchive 3.3.3 h786848e_5
libcurl 7.69.1 h051b688_0
libcxx 10.0.0 1
libcxxabi 4.0.1 hcfea43d_1
libedit 3.1.20181209 hb402a30_0
libffi 3.2.1 h0a44026_6
libgfortran 3.0.1 h93005f0_2
libiconv 1.16 h1de35cc_0
liblief 0.10.1 h0a44026_0
libpng 1.6.37 ha441bb4_0
libprotobuf 3.11.4 hd9629dc_0
libsodium 1.0.16 h3efe00b_0
libspatialindex 1.9.3 h0a44026_0
libssh2 1.9.0 ha12b0ac_1
libtiff 4.1.0 hcb84e12_0
libxml2 2.9.9 hf6e021a_1
libxslt 1.1.33 h33a18ac_0
llvm-openmp 10.0.0 h28b9765_0
llvmlite 0.32.1 py37h8c7ce04_0
locket 0.2.0 py37_1
lxml 4.5.0 py37hef8c89e_0
lz4-c 1.8.1.2 h1de35cc_0
lzo 2.10 h1de35cc_2
macholib 1.11 py_0
markdown 3.1.1 py37_0
markupsafe 1.1.1 py37h1de35cc_0
matplotlib 3.1.3 py37_0
matplotlib-base 3.1.3 py37h9aa3819_0
mccabe 0.6.1 py37_1
mistune 0.8.4 py37h1de35cc_0
mkl 2019.4 233
mkl-service 2.3.0 py37hfbe908c_0
mkl_fft 1.0.15 py37h5e564d8_0
mkl_random 1.1.1 py37h959d312_0
mock 4.0.2 py_0
mongodb 4.0.3 hccea1a4_0
more-itertools 8.3.0 py_0
mpc 1.1.0 h6ef4df4_1
mpfr 4.0.1 h3018a27_3
mpmath 1.1.0 py37_0
msgpack-python 1.0.0 py37h04f5b5a_1
multipledispatch 0.6.0 py37_0
navigator-updater 0.2.1 py37_0
nbconvert 5.6.1 py37_0
nbformat 5.0.6 py_0
ncurses 6.2 h0a44026_1
networkx 2.4 py_0
nltk 3.4.5 py37_0
nose 1.3.7 py37_2
notebook 6.0.3 py37_0
numba 0.49.1 py37h86efe34_0
numexpr 2.7.1 py37hce01a72_0
numpy 1.18.1 py37h7241aed_0
numpy-base 1.18.1 py37h3304bdc_1
numpydoc 0.9.2 py_0
oauthlib 3.1.0 pypi_0 pypi
olefile 0.46 py37_0
openpyxl 3.0.3 py_0
openssl 1.1.1g h0b31af3_0 conda-forge
packaging 20.3 py_0
pandas 1.0.3 py37h6c726b0_0
pandoc 2.2.3.2 0
pandocfilters 1.4.2 py37_1
parso 0.5.2 py_0
partd 1.1.0 py_0
path 13.1.0 py37_0
path.py 12.4.0 0
pathlib2 2.3.5 py37_0
pathtools 0.1.2 py_1
patsy 0.5.1 py37_0
pcre 8.43 h0a44026_0
pep8 1.7.1 py37_0
pexpect 4.8.0 py37_0
pickleshare 0.7.5 py37_0
pillow 7.1.2 py37h4655f20_0
pip 20.0.2 py37_3
pkginfo 1.5.0.1 py37_0
pluggy 0.13.1 py37_0
ply 3.11 py37_0
portaudio 19.6.0 h647c56a_4
prometheus_client 0.7.1 py_0
prompt-toolkit 3.0.5 py_0
prompt_toolkit 3.0.5 0
protobuf 3.11.4 py37h0a44026_0
psutil 5.7.0 py37h1de35cc_0
ptyprocess 0.6.0 py37_0
py 1.8.1 py_0
py-lief 0.10.1 py37haf313ee_0
pyasn1 0.4.8 pypi_0 pypi
pyasn1-modules 0.2.8 pypi_0 pypi
pyaudio 0.2.11 py37h1de35cc_2
pycodestyle 2.6.0 py_0
pycosat 0.6.3 py37h1de35cc_0
pycparser 2.20 py_0
pycrypto 2.6.1 py37h1de35cc_9
pycryptodome 3.8.2 py37ha8bbb54_0
pycurl 7.43.0.5 py37ha12b0ac_0
pydocstyle 4.0.1 py_0
pyflakes 2.2.0 py_0
pygments 2.6.1 py_0
pyinstaller 3.6 py37ha441bb4_5
pylint 2.5.2 py37_0
pymysql 0.9.3 py37_0
pyodbc 4.0.30 py37h0a44026_0
pyopenssl 19.1.0 py37_0
pyparsing 2.4.7 py_0
pyqt 5.9.2 py37h655552a_2
pyrsistent 0.16.0 py37h1de35cc_0
pysimplegui 4.18.2 pyh9f0ad1d_0 conda-forge
pysocks 1.7.1 py37_0
pytables 3.6.1 py37h5bccee9_0
pytest 5.4.2 py37_0
pytest-arraydiff 0.3 py37h39e3cac_0
pytest-astropy 0.8.0 py_0
pytest-astropy-header 0.1.2 py_0
pytest-doctestplus 0.7.0 py_0
pytest-openfiles 0.5.0 py_0
pytest-remotedata 0.3.2 py37_0
python 3.7.7 hc70fcce_0_cpython
python-dateutil 2.8.1 py_0
python-jsonrpc-server 0.3.4 py_0
python-language-server 0.31.9 py37_0
python-libarchive-c 2.9 py_0
python.app 2 py37_10
python_abi 3.7 1_cp37m conda-forge
pytz 2020.1 py_0
pywavelets 1.1.1 py37h1de35cc_0
pyyaml 5.3.1 py37h1de35cc_0
pyzmq 18.1.1 py37h0a44026_0
qdarkstyle 2.8.1 py_0
qt 5.9.7 h468cd18_1
qtawesome 0.7.0 py_0
qtconsole 4.7.4 py_0
qtpy 1.9.0 py_0
readline 8.0 h1de35cc_0
redis 3.5.2 pypi_0 pypi
repoze-lru 0.7 pypi_0 pypi
requests 2.23.0 py37_0
requests-oauthlib 1.3.0 pypi_0 pypi
ripgrep 11.0.2 he32d670_0
rope 0.17.0 py_0
rsa 4.0 pypi_0 pypi
rtree 0.9.4 py37_1
ruamel_yaml 0.15.87 py37h1de35cc_0
scikit-image 0.16.2 py37h6c726b0_0
scikit-learn 0.22.1 py37h27c97d8_0
scipy 1.4.1 py37h9fa6033_0
seaborn 0.10.1 py_0
send2trash 1.5.0 py37_0
setuptools 47.1.1 py37_0
simplegeneric 0.8.1 py37_2
singledispatch 3.4.0.3 py37_0
sip 4.19.8 py37h0a44026_0
six 1.15.0 py_0
snappy 1.1.7 he62c110_3
snowballstemmer 2.0.0 py_0
sortedcollections 1.1.2 py37_0
sortedcontainers 2.1.0 py37_0
soupsieve 2.0.1 py_0
sphinx 3.0.4 py_0
sphinxcontrib 1.0 py37_1
sphinxcontrib-applehelp 1.0.2 py_0
sphinxcontrib-devhelp 1.0.2 py_0
sphinxcontrib-htmlhelp 1.0.3 py_0
sphinxcontrib-jsmath 1.0.1 py_0
sphinxcontrib-qthelp 1.0.3 py_0
sphinxcontrib-serializinghtml 1.1.4 py_0
sphinxcontrib-websupport 1.2.1 py_0
spyder 4.1.2 py37_0
spyder-kernels 1.9.1 py37_0
sqlalchemy 1.3.17 py37haf1e3a3_0
sqlite 3.31.1 h5c1f38d_1
statsmodels 0.11.1 py37haf1e3a3_0
stemming 1.0.1 pypi_0 pypi
sympy 1.5.1 py37_0
tbb 2020.0 h04f5b5a_0
tblib 1.6.0 py_0
tensorboard 2.2.1 pypi_0 pypi
tensorboard-plugin-wit 1.6.0.post3 pypi_0 pypi
tensorflow 1.13.1 py37_1 conda-forge/label/cf202003
tensorflow-estimator 1.13.0 py37h24bf2e0_0 conda-forge/label/cf202003
termcolor 1.1.0 py37_1
terminado 0.8.3 py37_0
testpath 0.4.4 py_0
tk 8.6.8 ha441bb4_0
toml 0.10.0 py37h28b3542_0
toolz 0.10.0 py_0
tornado 6.0.4 py37h1de35cc_1
tqdm 4.46.0 py_0
traitlets 4.3.3 py37_0
typed-ast 1.4.1 py37h1de35cc_0
typing_extensions 3.7.4.1 py37_0
ujson 1.35 py37h1de35cc_0
unicodecsv 0.14.1 py37_0
unixodbc 2.3.7 h1de35cc_0
urllib3 1.25.8 py37_0
vine 1.3.0 pypi_0 pypi
watchdog 0.10.2 py37h0b31af3_0 conda-forge
wcwidth 0.1.9 py_0
webencodings 0.5.1 py37_1
werkzeug 1.0.1 py_0
wheel 0.34.2 py37_0
whoosh 2.7.4 pypi_0 pypi
widgetsnbextension 3.5.1 py37_0
wrapt 1.11.2 py37h1de35cc_0
wurlitzer 2.0.0 py37_0
xlrd 1.2.0 py37_0
xlsxwriter 1.2.9 py_0
xlwings 0.19.4 py37_0
xlwt 1.3.0 py37_0
xmltodict 0.12.0 py_0
xz 5.2.5 h1de35cc_0
yaml 0.1.7 hc338f04_2
yapf 0.28.0 py_0
zeromq 4.3.1 h0a44026_3
zict 2.0.0 py_0
zipp 3.1.0 py_0
zlib 1.2.11 h1de35cc_3
zstd 1.3.7 h5bba6e5_0
But still, my python version is still 3.7.7
What is the problem and how to fix it?
This command usually will update to the latest version, but it seems this is not working for you.
conda update python
You can try this instead (Latest stable version is 3.8.3):
conda install python=3.8.3
However, you may want setup a new environment to be able to use multiple versions of python as upgrading may break your python scripts that run in 3.7.7. You can do this by using conda to create a new environment and then switch between the environments while you are testing and upgrading your scripts.
conda create --name test2 python=3.8.3
Also, the problem with the update command could be several. For example, if the channel list does not have a more recent version of python that is compatible with your environment, it won't update. To troubleshoot this we would need more information, such as
conda info
and
conda config --show
Think the problem is caused by mixing conda and pip installs in the same environment. This can be dangerous, as it will cause problems with some new installs or upgrades later on. conda won't know about pip details, and pip won't know about conda details. I suspect your Python upgrade has a dependency on one of the files installed through pip and gives up after a while.
Best practice is to use conda install if at all possible, and to create and use another environment. But if you still need a package that conda can't provide, then you can use pip. However, take note of the revision for that environment in case you have to roll back the pip install later.
To see the source of the install, look at the channel column. For example:
altgraph 0.17 py_0
amqp 2.5.2 pypi_0 pypi
imbalanced-learn 0.6.2 py_0 conda-forge
altgraph was installed using conda, amqp was installed using pip. The source for pip is the pypi website, that is why you see pypi in the last column (channel). Also, i can see you used the conda-forge channel for a few packages, such as imbalanced-learn. To change this environment in the future, you may need to add -c conda-forge

Why does geopandas throw an assertion error, when the conditions seems to be met?

I am trying to make a WFS request and create a GeoDataFrame (from the geopandas library) with this data. However, when I run my code, an assert raises an error:
assert len(bbox) == 4
I do not know what is causing this error, as when I print bb I get a string of four coordinates separated by a comma:
print(bb)
173600,443600,174600,444600
type(bb)
str
This is my code:
import geopandas as gpd
from requests import Request
# extract only buildings on and around WUR campus
url = 'https://geodata.nationaalgeoregister.nl/bag/wfs'
layer = 'bag:pand' # see wfs.contents
bb = ','.join(map(str, bbox)) # string of bbox needed for the request url
# Specify the parameters for fetching the data
params = dict(service='WFS', version="2.0.0", request='GetFeature',
typeName=layer, outputFormat='text/xml; subtype=gml/3.2',
srsname='urn:ogc:def:crs:EPSG::28992', bbox=bb)
# Parse the URL with parameters
q = Request('GET', url, params=params).prepare().url
# Read data from URL
BuildingsGDF = gpd.read_file(q)
The last line (BuildingsGDF = gdp.read_file(q)) throws the error from the assertion, i.e. when I try to read the result of a WFS request into a GeoDataFrame object (from the geopandas library).
I am working in a Conda environment, which has the following packages:
# packages in environment at /home/sytze/miniconda3/envs/geoscripting:
#
# Name Version Build Channel
_libgcc_mutex 0.1 main conda-forge
affine 2.3.0 pypi_0 pypi
alabaster 0.7.12 py37_0
altair 3.2.0 py37_0 conda-forge
asn1crypto 1.2.0 py37_0 conda-forge
astroid 2.3.2 py37_0 conda-forge
attrs 19.3.0 py_0 conda-forge
babel 2.7.0 py_0 conda-forge
backcall 0.1.0 py37_0
blas 1.0 mkl conda-forge
bleach 3.1.0 py37_0
branca 0.3.1 py_0 conda-forge
bzip2 1.0.8 h7b6447c_0
ca-certificates 2019.11.27 0
cairo 1.14.12 h8948797_3
certifi 2019.11.28 py37_0
cffi 1.13.1 py37h2e261b9_0
chardet 3.0.4 py37_1003 conda-forge
click 7.0 py37_0
click-plugins 1.1.1 py_0 conda-forge
cligj 0.5.0 py37_0
cloudpickle 1.2.2 py_0 conda-forge
cryptography 2.8 py37h1ba5d50_0
curl 7.65.3 hbc83047_0
cycler 0.10.0 py37_0
dbus 1.13.12 h746ee38_0
decorator 4.4.1 py_0 conda-forge
defusedxml 0.6.0 py_0 conda-forge
descartes 1.1.0 py_3 conda-forge
docutils 0.15.2 py37_0 conda-forge
entrypoints 0.3 py37_0
expat 2.2.6 he6710b0_0
fiona 1.8.8 pypi_0 pypi
folium 0.10.0 py_0 conda-forge
fontconfig 2.13.0 h9420a91_0
freetype 2.9.1 h8a8886c_1
freexl 1.0.5 h14c3975_0
gdal 2.3.3 py37hbb2a789_0
geographiclib 1.50 py_0 conda-forge
geopandas 0.6.2 py_0 conda-forge
geopy 1.20.0 py_0 conda-forge
geos 3.7.1 he6710b0_0
giflib 5.1.4 h14c3975_1
glib 2.56.2 hd408876_0
gmp 6.1.2 h6c8ec71_1
gst-plugins-base 1.14.0 hbbd80ab_1
gstreamer 1.14.0 hb453b48_1
hdf4 4.2.13 h3ca952b_2
hdf5 1.10.4 hb1b8bf9_0
icu 58.2 h9c2bf20_1
idna 2.8 py37_0
imagesize 1.1.0 py37_0
importlib_metadata 0.23 py37_0 conda-forge
intel-openmp 2019.4 243
ipykernel 5.1.3 py37h39e3cac_0
ipython 7.9.0 py37h39e3cac_0
ipython_genutils 0.2.0 py37_0
ipywidgets 7.5.1 py_0 conda-forge
isort 4.3.21 py37_0 conda-forge
jedi 0.15.1 py37_0 conda-forge
jeepney 0.4.1 py_0 conda-forge
jinja2 2.10.3 py_0 conda-forge
jpeg 9b h024ee3a_2
json-c 0.13.1 h1bed415_0
jsonschema 3.1.1 py37_0 conda-forge
jupyter 1.0.0 py37_7
jupyter_client 5.3.4 py37_0 conda-forge
jupyter_console 6.0.0 py37_0
jupyter_core 4.6.0 py37_0
kealib 1.4.7 hd0c454d_6
keyring 18.0.0 py37_0 conda-forge
kiwisolver 1.1.0 py37he6710b0_0
krb5 1.16.1 h173b8e3_7
lazy-object-proxy 1.4.2 py37h7b6447c_0
libboost 1.67.0 h46d08c1_4
libcurl 7.65.3 h20c2e04_0
libdap4 3.19.1 h6ec2957_0
libedit 3.1.20181209 hc058e9b_0
libffi 3.2.1 hd88cf55_4
libgcc-ng 9.1.0 hdf63c60_0
libgdal 2.3.3 h2e7e64b_0
libgfortran-ng 7.3.0 hdf63c60_0
libkml 1.3.0 h590aaf7_4
libnetcdf 4.6.1 h11d0813_2
libpng 1.6.37 hbc83047_0
libpq 11.2 h20c2e04_0
libsodium 1.0.16 h1bed415_0
libspatialindex 1.8.5 h20b78c2_2
libspatialite 4.3.0a hb08deb6_19
libssh2 1.8.2 h1ba5d50_0
libstdcxx-ng 9.1.0 hdf63c60_0
libtiff 4.0.10 h2733197_2
libuuid 1.0.3 h1bed415_2
libxcb 1.13 h1bed415_1
libxml2 2.9.9 hea5a465_1
libxslt 1.1.33 h7d1a2b0_0
lxml 4.4.1 py37hefd8a0e_0
mapclassify 2.0.1 py_0 conda-forge
markupsafe 1.1.1 py37h7b6447c_0
matplotlib 3.1.1 py37h5429711_0
mccabe 0.6.1 py37_1
mistune 0.8.4 py37h7b6447c_0
mkl 2019.4 243
mkl-service 2.3.0 py37he904b0f_0
mkl_fft 1.0.14 py37ha843d7b_0
mkl_random 1.1.0 py37hd6b4f25_0
more-itertools 7.2.0 py37_0
munch 2.3.2 py37_0
nbconvert 5.6.0 py37_1 conda-forge
nbformat 4.4.0 py37_0
ncurses 6.1 he6710b0_1
networkx 2.4 py_0 conda-forge
notebook 6.0.1 py37_0 conda-forge
numpy 1.17.2 py37haad9e8e_0
numpy-base 1.17.2 py37hde5b4d6_0
numpydoc 0.9.1 py_0 conda-forge
openjpeg 2.3.0 h05c96fa_1
openssl 1.1.1d h7b6447c_3
osmnx 0.10 py_1 conda-forge
owslib 0.18.0 py_0 conda-forge
packaging 19.2 py_0 conda-forge
pandas 0.25.2 py37he6710b0_0
pandoc 2.2.3.2 0
pandocfilters 1.4.2 py37_1
parso 0.5.1 py_0 conda-forge
patsy 0.5.1 py37_0
pcre 8.43 he6710b0_0
pexpect 4.7.0 py37_0 conda-forge
pickleshare 0.7.5 py37_0
pip 19.3.1 py37_0 conda-forge
pixman 0.38.0 h7b6447c_0
pluggy 0.13.1 py37_0
poppler 0.65.0 h581218d_1
poppler-data 0.4.9 0 conda-forge
progressbar2 3.37.1 py37_0
proj4 5.2.0 he6710b0_1
prometheus_client 0.7.1 py_0 conda-forge
prompt_toolkit 2.0.10 py_0 conda-forge
psutil 5.6.3 py37h7b6447c_0
psycopg2 2.8.3 py37h1ba5d50_0
ptyprocess 0.6.0 py37_0 conda-forge
py 1.8.1 py_0
pycodestyle 2.5.0 py37_0
pycparser 2.19 py37_0
pyflakes 2.1.1 py37_0
pygments 2.4.2 py_0 conda-forge
pylint 2.4.3 py37_0 conda-forge
pyopenssl 19.0.0 py37_0 conda-forge
pyparsing 2.4.2 py_0 conda-forge
pyproj 1.9.6 py37h14380d9_0
pyqt 5.9.2 py37h05f1152_2
pyrsistent 0.15.4 py37h7b6447c_0
pysocks 1.7.1 py37_0 conda-forge
pytest 5.3.2 py37_0
pytest-runner 5.2 py_0
python 3.7.5 h0371630_0
python-dateutil 2.8.0 py37_0
python-utils 2.3.0 py37_0
pytz 2019.3 py_0 conda-forge
pyzmq 18.1.0 py37he6710b0_0
qt 5.9.7 h5867ecd_1
qtawesome 0.6.0 py_0 conda-forge
qtconsole 4.5.5 py_0 conda-forge
qtpy 1.9.0 py_0 conda-forge
rasterio 1.1.1 pypi_0 pypi
rasterstats 0.13.1 pypi_0 pypi
readline 7.0 h7b6447c_5
requests 2.22.0 py37_0 conda-forge
rope 0.14.0 py_0 conda-forge
rtree 0.8.3 py37_0
scipy 1.3.1 py37h7c811a0_0
seaborn 0.9.0 py37_0
secretstorage 3.1.1 py37_0 conda-forge
send2trash 1.5.0 py37_0
setuptools 41.6.0 py37_0 conda-forge
shapely 1.6.4 py37h86c5351_0
simplejson 3.17.0 pypi_0 pypi
sip 4.19.8 py37hf484d3e_0
six 1.12.0 py37_0
snowballstemmer 2.0.0 py_0 conda-forge
snuggs 1.4.7 pypi_0 pypi
sphinx 2.2.1 py_0 conda-forge
sphinxcontrib-applehelp 1.0.1 py_0 conda-forge
sphinxcontrib-devhelp 1.0.1 py_0 conda-forge
sphinxcontrib-htmlhelp 1.0.2 py_0 conda-forge
sphinxcontrib-jsmath 1.0.1 py_0 conda-forge
sphinxcontrib-qthelp 1.0.2 py_0 conda-forge
sphinxcontrib-serializinghtml 1.1.3 py_0 conda-forge
spyder 3.3.6 py37_0 conda-forge
spyder-kernels 0.5.2 py37_0 conda-forge
sqlalchemy 1.3.10 py37h7b6447c_0
sqlite 3.30.1 h7b6447c_0
statsmodels 0.10.1 py37hdd07704_0
terminado 0.8.2 py37_0 conda-forge
testpath 0.4.2 py37_0
tk 8.6.8 hbc83047_0
toolz 0.10.0 py_0 conda-forge
tornado 6.0.3 py37h7b6447c_0
traitlets 4.3.3 py37_0 conda-forge
urllib3 1.24.2 py37_0 conda-forge
vincent 0.4.4 py_1 conda-forge
wcwidth 0.1.7 py37_0
webencodings 0.5.1 py37_1
wheel 0.33.6 py37_0 conda-forge
widgetsnbextension 3.5.1 py37_0 conda-forge
wrapt 1.11.2 py37h7b6447c_0
wurlitzer 1.0.3 py37_0 conda-forge
xerces-c 3.2.2 h780794e_0
xz 5.2.4 h14c3975_4
zeromq 4.3.1 he6710b0_3
zipp 0.6.0 py_0 conda-forge
zlib 1.2.11 h7b6447c_3
zstd 1.3.7 h0b5b093_0
You don't have a list with four elements, you have a string.
To solve this, split your string to create a list before the assert, like bb = bb.split(',').

Categories