I'm working with an environment named gcloud, with many google APIs packages installed. I wanted to export said environment to install it elsewhere, but when I do that I get a very useless .yml file. I run:
conda activate gcloud
conda env export > gcloudenv.yml
Which brings this:
name: gcloud
channels:
- defaults
prefix: C:\Users\usr\Anaconda3\envs\gcloud\envs\gcloud
So there's no libraries listed, even though I have installed many. What could be happening?
This is conda list's output:
# packages in environment at C:\Users\jeco_\Anaconda3\envs\gcloud:
#
# Name Version Build Channel
alabaster 0.7.12 py37_0
asn1crypto 0.24.0 py37_0
astroid 2.2.5 py37_0
attrs 19.1.0 py37_1
babel 2.7.0 py_0
backcall 0.1.0 py37_0
beautifulsoup4 4.7.1 py37_1
bleach 3.1.0 py37_0
bzip2 1.0.7 he774522_0
ca-certificates 2019.6.16 hecc5488_0 conda-forge
cachetools 2.1.0 py_0 conda-forge
certifi 2019.6.16 py37_1 conda-forge
cffi 1.12.3 py37h7a1dbc1_0
chardet 3.0.4 py37_1
cloudpickle 1.2.1 py_0
colorama 0.4.1 py37_0
conda 4.7.5 py37_0 conda-forge
conda-build 3.18.7 py37_0
conda-package-handling 1.3.11 py37_0
cryptography 2.7 py37h7a1dbc1_0
decorator 4.4.0 py37_1
defusedxml 0.6.0 py_0
docutils 0.14 py37_0
entrypoints 0.3 py37_0
filelock 3.0.12 py_0
glob2 0.7 py_0
google-api-core 1.13.0 py37h21ff451_0 conda-forge
google-api-python-client 1.7.9 py_0 conda-forge
google-auth 1.6.3 py_0 conda-forge
google-auth-httplib2 0.0.3 py_2 conda-forge
google-cloud-core 1.0.2 py_0 conda-forge
google-cloud-storage 1.16.1 py_0 conda-forge
google-resumable-media 0.3.2 py_0 conda-forge
googleapis-common-protos 1.6.0 py37h21ff451_0 conda-forge
httplib2 0.13.0 py37_0 conda-forge
icu 58.2 ha66f8fd_1
idna 2.8 py37_0
imagesize 1.1.0 py37_0
ipykernel 5.1.1 py37h39e3cac_0
ipython 7.6.1 py37h39e3cac_0
ipython_genutils 0.2.0 py37_0
isort 4.3.21 py37_0
jedi 0.13.3 py37_0
jinja2 2.10.1 py37_0
jpeg 9b hb83a4c4_2
jsonschema 3.0.1 py37_0
jupyter_client 5.2.4 py37_0
jupyter_core 4.5.0 py_0
keyring 18.0.0 py37_0
lazy-object-proxy 1.4.1 py37he774522_0
libarchive 3.3.3 h0643e63_5
libiconv 1.15 h1df5818_7
liblief 0.9.0 ha925a31_2
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.9.0 h1a1b453_0 conda-forge
libsodium 1.0.16 h9d3ae62_0
libxml2 2.9.9 h464c3ec_0
lz4-c 1.8.1.2 h2fa13f4_0
lzo 2.10 h6df0209_2
markupsafe 1.1.1 py37he774522_0
mccabe 0.6.1 py37_1
menuinst 1.4.16 py37he774522_0
mistune 0.8.4 py37he774522_0
nbconvert 5.5.0 py_0
nbformat 4.4.0 py37_0
numpydoc 0.9.1 py_0
openssl 1.1.1c hfa6e2cd_0 conda-forge
packaging 19.0 py37_0
pandoc 2.2.3.2 0
pandocfilters 1.4.2 py37_1
parso 0.5.0 py_0
pickleshare 0.7.5 py37_0
pip 19.1.1 py37_0
pkginfo 1.5.0.1 py37_0
prompt_toolkit 2.0.9 py37_0
protobuf 3.9.0 py37he025d50_0 conda-forge
psutil 5.6.3 py37he774522_0
py-lief 0.9.0 py37ha925a31_2
pyasn1 0.4.5 py_0 conda-forge
pyasn1-modules 0.2.5 py_0 conda-forge
pycodestyle 2.5.0 py37_0
pycosat 0.6.3 py37hfa6e2cd_0
pycparser 2.19 py37_0
pyflakes 2.1.1 py37_0
pygments 2.4.2 py_0
pylint 2.3.1 py37_0
pyopenssl 19.0.0 py37_0
pyparsing 2.4.0 py_0
pyqt 5.9.2 py37h6538335_2
pyrsistent 0.14.11 py37he774522_0
pysocks 1.7.0 py37_0
python 3.7.3 h8c8aaf0_1
python-dateutil 2.8.0 py37_0
python-libarchive-c 2.8 py37_10
pytz 2019.1 py_0
pywin32 223 py37hfa6e2cd_1
pyyaml 5.1.1 py37he774522_0
pyzmq 18.0.0 py37ha925a31_0
qt 5.9.7 vc14h73c81de_0
qtawesome 0.5.7 py37_1
qtconsole 4.5.1 py_0
qtpy 1.8.0 py_0
requests 2.22.0 py37_0
rope 0.14.0 py_0
rsa 3.4.2 py_1 conda-forge
ruamel_yaml 0.15.46 py37hfa6e2cd_0
setuptools 41.0.1 py37_0
simplejson 3.16.0 py37hfa6e2cd_0
sip 4.19.8 py37h6538335_0
six 1.12.0 py37_0
snowballstemmer 1.9.0 py_0
soupsieve 1.8 py37_0
sphinx 2.1.2 py_0
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
spyder 3.3.4 py37_0
spyder-kernels 0.5.0 py37_0
sqlite 3.28.0 he774522_0
testpath 0.4.2 py37_0
tornado 6.0.3 py37he774522_0
tqdm 4.32.1 py_0
traitlets 4.3.2 py37_0
uritemplate 3.0.0 py_1 conda-forge
urllib3 1.24.2 py37_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.15.26706 h3a45250_4
wcwidth 0.1.7 py37_0
webencodings 0.5.1 py37_1
wheel 0.33.4 py37_0
win_inet_pton 1.1.0 py37_0
wincertstore 0.2 py37_0
wrapt 1.11.2 py37he774522_0
xz 5.2.4 h2fa13f4_4
yaml 0.1.7 hc54c509_2
zeromq 4.3.1 h33f27b4_3
zlib 1.2.11 h62dcd97_3
zstd 1.3.7 h508b16e_0
Related
I was trying to run a python script which uses Tensorlfow Object detection model for detection.A few days ago it was working fine,but suddenly the code started giving the above mentioned error.
I am running this on my local pc & I also tried reinstaling a different version of h5py but it just gives the same error. Help would be appreciated ,thank you
Here is my conda list :
_anaconda_depends 2020.07 py38_0
_ipyw_jlab_nb_ext_conf 0.1.0 py38_0
_tflow_select 2.3.0 eigen
absl-py 0.12.0 pypi_0 pypi
alabaster 0.7.12 pyhd3eb1b0_0
anaconda custom py38_1
anaconda-client 1.7.2 py38_0
anaconda-navigator 2.0.3 py38_0
anaconda-project 0.9.1 pyhd3eb1b0_1
anyio 2.2.0 py38haa95532_2
apache-beam 2.31.0 pypi_0 pypi
appdirs 1.4.4 py_0
argh 0.26.2 py38_0
argon2-cffi 20.1.0 py38h2bbff1b_1
asn1crypto 1.4.0 py_0
astor 0.8.1 py38haa95532_0
astroid 2.5 py38haa95532_1
astropy 4.2.1 py38h2bbff1b_1
astunparse 1.6.3 py_0
async_generator 1.10 pyhd3eb1b0_0
atomicwrites 1.4.0 py_0
attrs 20.3.0 pyhd3eb1b0_0
autopep8 1.5.6 pyhd3eb1b0_0
avro-python3 1.9.2.1 pypi_0 pypi
babel 2.9.0 pyhd3eb1b0_0
backcall 0.2.0 pyhd3eb1b0_0
backports 1.0 pyhd3eb1b0_2
backports.functools_lru_cache 1.6.4 pyhd3eb1b0_0
backports.shutil_get_terminal_size 1.0.0 pyhd3eb1b0_3
backports.tempfile 1.0 pyhd3eb1b0_1
backports.weakref 1.0.post1 py_1
bcrypt 3.2.0 py38he774522_0
beautifulsoup4 4.9.3 pyha847dfd_0
bitarray 1.9.2 py38h2bbff1b_1
bkcharts 0.2 py38_0
black 19.10b0 py_0
blas 1.0 mkl
bleach 3.3.0 pyhd3eb1b0_0
blinker 1.4 py38haa95532_0
blosc 1.21.0 h19a0ad4_0
bokeh 2.3.2 py38haa95532_0
boto 2.49.0 py38_0
bottleneck 1.3.2 py38h2a96729_1
brotli 1.0.9 ha925a31_2
brotlipy 0.7.0 py38h2bbff1b_1003
bzip2 1.0.8 he774522_0
ca-certificates 2020.10.14 0 anaconda
cachetools 4.2.2 pyhd3eb1b0_0
certifi 2020.6.20 py38_0 anaconda
cffi 1.14.5 py38hcd4344a_0
chardet 4.0.0 py38haa95532_1003
charls 2.2.0 h6c2663c_0
clang 5.0 pypi_0 pypi
click 7.1.2 pyhd3eb1b0_0
cloudpickle 1.6.0 py_0
clyent 1.2.2 py38_1
cmake 3.19.6 h9ad04ae_0
colorama 0.4.4 pyhd3eb1b0_0
comtypes 1.1.9 py38haa95532_1002
conda 4.10.3 py38haa95532_0
conda-build 3.21.4 py38haa95532_0
conda-content-trust 0.1.1 pyhd3eb1b0_0
conda-env 2.6.0 1
conda-package-handling 1.7.3 py38h8cc25b3_1
conda-repo-cli 1.0.4 pyhd3eb1b0_0
conda-token 0.3.0 pyhd3eb1b0_0
conda-verify 3.4.2 py_1
console_shortcut 0.1.1 4
contextlib2 0.6.0.post1 py_0
coverage 5.5 py38h2bbff1b_2
crcmod 1.7 pypi_0 pypi
cryptography 3.4.7 py38h71e12ea_0
curl 7.71.1 h2a8f88b_1
cycler 0.10.0 py38_0
cython 0.29.23 py38hd77b12b_0
cytoolz 0.11.0 py38he774522_0
dask 2021.4.0 pyhd3eb1b0_0
dask-core 2021.4.0 pyhd3eb1b0_0
decorator 5.0.6 pyhd3eb1b0_0
defusedxml 0.7.1 pyhd3eb1b0_0
diff-match-patch 20200713 py_0
dill 0.3.1.1 pypi_0 pypi
distributed 2021.4.0 py38haa95532_0
dlib 19.22.0 py38h085cf52_0 conda-forge
dm-tree 0.1.6 pypi_0 pypi
docopt 0.6.2 pypi_0 pypi
docutils 0.17 py38haa95532_1
entrypoints 0.3 py38_0
et_xmlfile 1.0.1 py_1001
fastavro 1.4.4 pypi_0 pypi
fastcache 1.1.0 py38he774522_0
filelock 3.0.12 pyhd3eb1b0_1
flake8 3.9.0 pyhd3eb1b0_0
flask 1.1.2 pyhd3eb1b0_0
flatbuffers 1.12 pypi_0 pypi
freetype 2.10.4 hd328e21_0
fsspec 0.9.0 pyhd3eb1b0_0
future 0.18.2 py38_1
gast 0.4.0 py_0
get_terminal_size 1.0.0 h38e98db_0
gevent 21.1.2 py38h2bbff1b_1
giflib 5.2.1 h62dcd97_0
gin-config 0.4.0 pypi_0 pypi
glob2 0.7 pyhd3eb1b0_0
gmpy2 2.0.8 py38h7edee0f_3
google-api-core 1.31.1 pypi_0 pypi
google-api-python-client 2.15.0 pypi_0 pypi
google-auth 1.34.0 pypi_0 pypi
google-auth-httplib2 0.1.0 pypi_0 pypi
google-auth-oauthlib 0.4.4 pyhd3eb1b0_0
google-pasta 0.2.0 py_0
googleapis-common-protos 1.53.0 pypi_0 pypi
greenlet 1.0.0 py38hd77b12b_2
grpcio 1.34.1 pypi_0 pypi
h5py 3.1.0 pypi_0 pypi
hdf5 1.10.4 h7ebc959_0
hdfs 2.6.0 pypi_0 pypi
heapdict 1.0.1 py_0
html5lib 1.1 py_0
httplib2 0.19.1 pypi_0 pypi
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 2.10 pyhd3eb1b0_0
imagecodecs 2021.3.31 py38h5da4933_0
imageio 2.9.0 pyhd3eb1b0_0
imagesize 1.2.0 pyhd3eb1b0_0
importlib-metadata 3.10.0 py38haa95532_0
importlib-resources 5.2.2 pypi_0 pypi
importlib_metadata 3.10.0 hd3eb1b0_0
iniconfig 1.1.1 pyhd3eb1b0_0
intel-openmp 2021.2.0 haa95532_616
intervaltree 3.1.0 py_0
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
isort 5.8.0 pyhd3eb1b0_0
itsdangerous 1.1.0 pyhd3eb1b0_0
jdcal 1.4.1 py_0
jedi 0.17.2 py38haa95532_1
jinja2 2.11.3 pyhd3eb1b0_0
joblib 1.0.1 pyhd3eb1b0_0
jpeg 9d h8ffe710_0 conda-forge
json5 0.9.5 py_0
jsonschema 3.2.0 py_2
jupyter 1.0.0 py38_7
jupyter-packaging 0.7.12 pyhd3eb1b0_0
jupyter_client 6.1.12 pyhd3eb1b0_0
jupyter_console 6.4.0 pyhd3eb1b0_0
jupyter_core 4.7.1 py38haa95532_0
jupyter_server 1.4.1 py38haa95532_0
jupyterlab 3.0.14 pyhd3eb1b0_1
jupyterlab_pygments 0.1.2 py_0
jupyterlab_server 2.4.0 pyhd3eb1b0_0
jupyterlab_widgets 1.0.0 pyhd3eb1b0_1
kaggle 1.5.12 pypi_0 pypi
keras 2.6.0 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
keyring 22.3.0 py38haa95532_0
kiwisolver 1.3.1 py38hd77b12b_0
krb5 1.18.2 hc04afaa_0
lazy-object-proxy 1.6.0 py38h2bbff1b_0
lcms2 2.12 h83e58a3_0
lerc 2.2.1 hd77b12b_0
libaec 1.0.4 h33f27b4_1
libarchive 3.4.2 h5e25573_0
libcurl 7.71.1 h2a8f88b_1
libdeflate 1.7 h2bbff1b_5
libiconv 1.15 h1df5818_7
liblief 0.10.1 ha925a31_0
libllvm9 9.0.1 h21ff451_0
libpng 1.6.37 h2a8f88b_0
libprotobuf 3.17.2 h23ce68f_1
libsodium 1.0.18 h62dcd97_0
libspatialindex 1.9.3 h6c2663c_0
libssh2 1.9.0 h7a1dbc1_1
libtiff 4.2.0 hd0e1b90_0
libuv 1.40.0 he774522_0
libxml2 2.9.10 hb89e7f3_3
libxslt 1.1.34 he774522_0
libzopfli 1.0.3 ha925a31_0
llvmlite 0.36.0 py38h34b8924_4
locket 0.2.1 py38haa95532_1
lvis 0.5.3 pypi_0 pypi
lxml 4.6.1 py38h1350720_0 anaconda
lz4-c 1.9.3 h2bbff1b_0
lzo 2.10 he774522_2
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
markdown 3.3.4 py38haa95532_0
markupsafe 1.1.1 py38he774522_0
matplotlib 3.3.4 py38haa95532_0
matplotlib-base 3.3.4 py38h49ac443_0
mccabe 0.6.1 py38_1
menuinst 1.4.16 py38he774522_1
mistune 0.8.4 py38he774522_1000
mkl 2021.2.0 haa95532_296
mkl-service 2.3.0 py38h2bbff1b_1
mkl_fft 1.3.0 py38h277e83a_2
mkl_random 1.2.1 py38hf11a4ad_2
mock 4.0.3 pyhd3eb1b0_0
more-itertools 8.7.0 pyhd3eb1b0_0
mpc 1.1.0 h7edee0f_1
mpfr 4.0.2 h62dcd97_1
mpir 3.0.0 hec2e145_1
mpmath 1.2.1 py38haa95532_0
msgpack-python 1.0.2 py38h59b6b97_1
msys2-conda-epoch 20160418 1
multipledispatch 0.6.0 py38_0
mypy_extensions 0.4.3 py38_0
navigator-updater 0.2.1 py38_0
nbclassic 0.2.6 pyhd3eb1b0_0
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
networkx 2.5 py_0
nltk 3.6.1 pyhd3eb1b0_0
nose 1.3.7 pyhd3eb1b0_1006
notebook 6.3.0 py38haa95532_0
numba 0.53.1 py38hf11a4ad_0
numexpr 2.7.3 py38hb80d3ca_1
numpy 1.19.5 pypi_0 pypi
numpy-base 1.20.1 py38haf7ebc8_0
numpydoc 1.1.0 pyhd3eb1b0_1
oauth2client 4.1.3 pypi_0 pypi
oauthlib 3.1.1 pyhd3eb1b0_0
object-detection 0.1 pypi_0 pypi
olefile 0.46 py_0
opencv-python 4.5.1.48 pypi_0 pypi
opencv-python-headless 4.5.3.56 pypi_0 pypi
openjpeg 2.3.0 h5ec785f_1
openpyxl 3.0.7 pyhd3eb1b0_0
openssl 1.1.1k h2bbff1b_0
opt_einsum 3.3.0 pyhd3eb1b0_1
packaging 20.9 pyhd3eb1b0_0
pandas 1.2.4 py38hd77b12b_0
pandoc 2.12 haa95532_0
pandocfilters 1.4.3 py38haa95532_1
paramiko 2.7.2 py_0
parso 0.7.0 py_0
partd 1.2.0 pyhd3eb1b0_0
path 15.1.2 py38haa95532_0
path.py 12.5.0 0
pathlib2 2.3.5 py38haa95532_2
pathspec 0.7.0 py_0
pathtools 0.1.2 py_1
patsy 0.5.1 py38_0
pep8 1.7.1 py38_0
pexpect 4.8.0 pyhd3eb1b0_3
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 8.2.0 py38h4fa10fc_0
pip 21.0.1 py38haa95532_0
pkginfo 1.7.0 py38haa95532_0
pluggy 0.13.1 py38haa95532_0
ply 3.11 py38_0
portalocker 2.3.0 pypi_0 pypi
powershell_shortcut 0.0.1 3
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
protobuf 3.17.2 py38hd77b12b_0
psutil 5.8.0 py38h2bbff1b_1
ptyprocess 0.7.0 pyhd3eb1b0_2
py 1.10.0 pyhd3eb1b0_0
py-cpuinfo 8.0.0 pypi_0 pypi
py-lief 0.10.1 py38ha925a31_0
pyarrow 4.0.1 pypi_0 pypi
pyasn1 0.4.8 py_0
pyasn1-modules 0.2.8 py_0
pycocotools 2.0.2 pypi_0 pypi
pycodestyle 2.6.0 pyhd3eb1b0_0
pycosat 0.6.3 py38h2bbff1b_0
pycparser 2.20 py_2
pycurl 7.43.0.6 py38h7a1dbc1_0
pydocstyle 6.0.0 pyhd3eb1b0_0
pydot 1.4.2 pypi_0 pypi
pyerfa 1.7.3 py38h2bbff1b_0
pyflakes 2.2.0 pyhd3eb1b0_0
pygments 2.8.1 pyhd3eb1b0_0
pyjwt 2.1.0 py38haa95532_0
pylint 2.7.4 py38haa95532_1
pyls-black 0.4.6 hd3eb1b0_0
pyls-spyder 0.3.2 pyhd3eb1b0_0
pymongo 3.12.0 pypi_0 pypi
pynacl 1.4.0 py38h62dcd97_1
pyodbc 4.0.30 py38ha925a31_0
pyopenssl 20.0.1 pyhd3eb1b0_1
pyparsing 2.4.7 pyhd3eb1b0_0
pyqt 5.9.2 py38ha925a31_4
pyreadline 2.1 py38_1
pyrsistent 0.17.3 py38he774522_0
pysocks 1.7.1 py38haa95532_0
pytables 3.6.1 py38ha5be198_0
pytest 6.2.3 py38haa95532_2
python 3.8.8 hdbf39b2_5
python-dateutil 2.8.1 pyhd3eb1b0_0
python-jsonrpc-server 0.4.0 py_0
python-language-server 0.36.2 pyhd3eb1b0_0
python-libarchive-c 2.9 pyhd3eb1b0_1
python-slugify 5.0.2 pypi_0 pypi
python_abi 3.8 2_cp38 conda-forge
pytz 2021.1 pyhd3eb1b0_0
pywavelets 1.1.1 py38he774522_2
pywin32 227 py38he774522_1
pywin32-ctypes 0.2.0 py38_1000
pywinpty 0.5.7 py38_0
pyyaml 5.4.1 py38h2bbff1b_1
pyzmq 20.0.0 py38hd77b12b_1
qdarkstyle 2.8.1 py_0
qt 5.9.7 vc14h73c81de_0
qtawesome 1.0.2 pyhd3eb1b0_0
qtconsole 5.0.3 pyhd3eb1b0_0
qtpy 1.9.0 py_0
regex 2021.4.4 py38h2bbff1b_0
requests 2.25.1 pyhd3eb1b0_0
requests-oauthlib 1.3.0 py_0
rope 0.18.0 py_0
rsa 4.7.2 pyhd3eb1b0_1
rtree 0.9.7 py38h2eaa2aa_1
ruamel_yaml 0.15.100 py38h2bbff1b_0
sacrebleu 2.0.0 pypi_0 pypi
scikit-image 0.18.1 py38hf11a4ad_0
scikit-learn 0.24.1 py38hf11a4ad_0
scipy 1.6.2 py38h66253e8_1
seaborn 0.11.1 pyhd3eb1b0_0
send2trash 1.5.0 pyhd3eb1b0_1
sentencepiece 0.1.96 pypi_0 pypi
seqeval 1.2.2 pypi_0 pypi
setuptools 52.0.0 py38haa95532_0
simplegeneric 0.8.1 py38_2
singledispatch 3.6.1 pyhd3eb1b0_1001
sip 4.19.13 py38ha925a31_0
six 1.15.0 py38haa95532_0
snappy 1.1.8 h33f27b4_0
sniffio 1.2.0 py38haa95532_1
snowballstemmer 2.1.0 pyhd3eb1b0_0
sortedcollections 2.1.0 pyhd3eb1b0_0
sortedcontainers 2.3.0 pyhd3eb1b0_0
soupsieve 2.2.1 pyhd3eb1b0_0
sphinx 4.0.1 pyhd3eb1b0_0
sphinxcontrib 1.0 py38_1
sphinxcontrib-applehelp 1.0.2 pyhd3eb1b0_0
sphinxcontrib-devhelp 1.0.2 pyhd3eb1b0_0
sphinxcontrib-htmlhelp 1.0.3 pyhd3eb1b0_0
sphinxcontrib-jsmath 1.0.1 pyhd3eb1b0_0
sphinxcontrib-qthelp 1.0.3 pyhd3eb1b0_0
sphinxcontrib-serializinghtml 1.1.4 pyhd3eb1b0_0
sphinxcontrib-websupport 1.2.4 py_0
spyder 4.2.5 py38haa95532_0
spyder-kernels 1.10.2 py38haa95532_0
sqlalchemy 1.4.7 py38h2bbff1b_0
sqlite 3.35.4 h2bbff1b_0
statsmodels 0.12.2 py38h2bbff1b_0
sympy 1.8 py38haa95532_0
tabulate 0.8.9 pypi_0 pypi
tbb 2020.3 h74a9793_0
tblib 1.7.0 py_0
tensorboard 2.6.0 pypi_0 pypi
tensorboard-data-server 0.6.1 pypi_0 pypi
tensorboard-plugin-wit 1.6.0 py_0
tensorflow 2.5.0 pypi_0 pypi
tensorflow-addons 0.13.0 pypi_0 pypi
tensorflow-base 2.3.0 eigen_py38h75a453f_0
tensorflow-datasets 4.4.0 pypi_0 pypi
tensorflow-estimator 2.5.0 pyh7b7c402_0
tensorflow-hub 0.12.0 pypi_0 pypi
tensorflow-metadata 1.2.0 pypi_0 pypi
tensorflow-model-optimization 0.6.0 pypi_0 pypi
termcolor 1.1.0 py38haa95532_1
terminado 0.9.4 py38haa95532_0
testpath 0.4.4 pyhd3eb1b0_0
text-unidecode 1.3 pypi_0 pypi
textdistance 4.2.1 pyhd3eb1b0_0
tf-models-official 2.5.1 pypi_0 pypi
tf-slim 1.1.0 pypi_0 pypi
threadpoolctl 2.1.0 pyh5ca1d4c_0
three-merge 0.1.1 pyhd3eb1b0_0
tifffile 2021.4.8 pyhd3eb1b0_2
tk 8.6.10 he774522_0
toml 0.10.2 pyhd3eb1b0_0
toolz 0.11.1 pyhd3eb1b0_0
tornado 6.1 py38h2bbff1b_0
tqdm 4.59.0 pyhd3eb1b0_1
traitlets 5.0.5 pyhd3eb1b0_0
typed-ast 1.4.2 py38h2bbff1b_1
typeguard 2.12.1 pypi_0 pypi
typing_extensions 3.7.4.3 pyha847dfd_0
ujson 4.0.2 py38hd77b12b_0
unicodecsv 0.14.1 py38_0
uritemplate 3.0.1 pypi_0 pypi
urllib3 1.26.4 pyhd3eb1b0_0
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
watchdog 1.0.2 py38haa95532_1
wcwidth 0.2.5 py_0
webencodings 0.5.1 py38_1
werkzeug 1.0.1 pyhd3eb1b0_0
wheel 0.36.2 pyhd3eb1b0_0
widgetsnbextension 3.5.1 py38_0
win_inet_pton 1.1.0 py38haa95532_0
win_unicode_console 0.5 py38_0
wincertstore 0.2 py38_0
winpty 0.4.3 4
wrapt 1.12.1 py38he774522_1
xlrd 2.0.1 pyhd3eb1b0_0
xlsxwriter 1.3.8 pyhd3eb1b0_0
xlwings 0.23.0 py38haa95532_0
xlwt 1.3.0 py38_0
xmltodict 0.12.0 py_0
xz 5.2.5 h62dcd97_0
yaml 0.2.5 he774522_0
yapf 0.31.0 pyhd3eb1b0_0
zeromq 4.3.3 ha925a31_3
zfp 0.5.5 hd77b12b_6
zict 2.0.0 pyhd3eb1b0_0
zipp 3.4.1 pyhd3eb1b0_0
zlib 1.2.11 h62dcd97_4
zope 1.0 py38_1
zope.event 4.5.0 py38_0
zope.interface 5.3.0 py38h2bbff1b_0
zstd 1.4.5 h04227a9_0
According to this you should run pip uninstall h5py multiple times to make sure multiple installations of h5py is removed and then run conda install -c anaconda h5py, also make sure to install it with Conda and not pip as it is mentioned in the referenced link as that is how to install it.
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
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(',').
I installed geopandas using the comand conda install --channel conda-forge geopandas
Then, I try to import geopandas in my jupyter notebook.
import geopandas as gp
And I get the following error:
ImportError: dlopen(/Users/mac/anaconda3/lib/python3.7/site-packages/fiona/ogrext.cpython-37m-darwin.so, 2): Library not loaded: #rpath/libgif.7.dylib
Referenced from: /Users/mac/anaconda3/lib/libgdal.20.dylib
Reason: image not found
This is the list of installed packages
# packages in environment at /Users/mac/anaconda3:
#
# Name Version Build Channel
_anaconda_depends 2019.03 py37_0
_ipyw_jlab_nb_ext_conf 0.1.0 py37_0
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
appnope 0.1.0 py37_0
appscript 1.1.0 py37h1de35cc_0
asn1crypto 0.24.0 py37_0
astroid 2.2.5 py37_0
astropy 3.2.1 py37h1de35cc_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 py37h1de35cc_0
bkcharts 0.2 py37_0
blas 1.0 mkl
bleach 3.1.0 py37_0
blosc 1.16.3 hd9629dc_0
bokeh 1.2.0 py37_0
boost-cpp 1.70.0 hd59e818_1 conda-forge
boto 2.49.0 py37_0
bottleneck 1.2.1 py37h1d22016_1
bzip2 1.0.8 h1de35cc_0
ca-certificates 2019.9.11 hecc5488_0 conda-forge
cairo 1.14.12 h9d4d9ac_1005 conda-forge
certifi 2019.9.11 py37_0 conda-forge
cffi 1.12.3 py37hb5b8e2f_0
chardet 3.0.4 py37_1
click 7.0 py37_0
click-plugins 1.1.1 py_0 conda-forge
cligj 0.5.0 py_0 conda-forge
cloudpickle 1.2.1 py_0
clyent 1.2.2 py37_1
colorama 0.4.1 py37_0
conda 4.7.12 py37_0 conda-forge
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 py37ha12b0ac_0
curl 7.65.2 ha441bb4_0
cycler 0.10.0 py37_0
cython 0.29.12 py37h0a44026_0
cytoolz 0.10.0 py37h1de35cc_0
dask 2.1.0 py_0
dask-core 2.1.0 py_0
dbus 1.13.6 h90a0687_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 h0a44026_0
fastcache 1.1.0 py37h1de35cc_0
filelock 3.0.12 py_0
fiona 1.8.4 py37h9a122fd_0
flask 1.1.1 py_0
fontconfig 2.13.1 h1027ab8_1000 conda-forge
freetype 2.9.1 hb4e5f40_0
freexl 1.0.5 h1de35cc_1002 conda-forge
future 0.17.1 py37_0
gdal 2.3.3 py37hbe65578_0
geopandas 0.6.0 py_0 conda-forge
geos 3.7.1 h0a44026_1000 conda-forge
get_terminal_size 1.0.0 h7520d66_0
gettext 0.19.8.1 h15daf44_3
gevent 1.4.0 py37h1de35cc_0
giflib 5.1.7 h01d97ff_1 conda-forge
glib 2.56.2 hd9629dc_0
glob2 0.7 py_0
gmp 6.1.2 hb37e062_1
gmpy2 2.0.8 py37h6ef4df4_2
greenlet 0.4.15 py37h1de35cc_0
h5py 2.9.0 py37h3134771_0
hdf4 4.2.13 0 conda-forge
hdf5 1.10.4 hfa1e0ec_0
heapdict 1.0.0 py37_2
html5lib 1.0.1 py37_0
icu 58.2 h4b95b61_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 233
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 h4d881f8_0
jdcal 1.4.1 py_0
jedi 0.13.3 py37_0
jinja2 2.10.1 py37_0
joblib 0.13.2 py37_0
jpeg 9b he5867d9_2
json-c 0.13.1 h1de35cc_1001 conda-forge
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
kealib 1.4.10 hecf890f_1003 conda-forge
keyring 18.0.0 py37_0
kiwisolver 1.1.0 py37h0a44026_0
krb5 1.16.1 hddcf347_7
lazy-object-proxy 1.4.1 py37h1de35cc_0
libarchive 3.3.3 h786848e_5
libcurl 7.65.2 h051b688_0
libcxx 4.0.1 hcfea43d_1
libcxxabi 4.0.1 hcfea43d_1
libdap4 3.19.1 h3d3e54a_0
libedit 3.1.20181209 hb402a30_0
libffi 3.2.1 h475c297_4
libgdal 2.3.3 h0950a36_0
libgfortran 3.0.1 h93005f0_2
libiconv 1.15 hdd342a3_7
libkml 1.3.0 hed7d534_1010 conda-forge
liblief 0.9.0 h2a1bed3_2
libnetcdf 4.6.1 hd5207e6_2
libpng 1.6.37 ha441bb4_0
libpq 11.2 h051b688_0
libsodium 1.0.16 h3efe00b_0
libspatialindex 1.9.0 h6de7cb9_1 conda-forge
libspatialite 4.3.0a h0cd9627_1026 conda-forge
libssh2 1.8.2 ha12b0ac_0
libtiff 4.0.10 hcb84e12_2
libxml2 2.9.9 hf6e021a_1
libxslt 1.1.33 h33a18ac_0
llvm-openmp 4.0.1 hcfea43d_1
llvmlite 0.29.0 py37h98b8051_0
locket 0.2.0 py37_1
lxml 4.3.4 py37hef8c89e_0
lz4-c 1.8.1.2 h1de35cc_0
lzo 2.10 h362108e_2
markupsafe 1.1.1 py37h1de35cc_0
matplotlib 3.1.0 py37h54f8f79_0
mccabe 0.6.1 py37_1
mistune 0.8.4 py37h1de35cc_0
mkl 2019.4 233
mkl-service 2.0.2 py37h1de35cc_0
mkl_fft 1.0.12 py37h5e564d8_0
mkl_random 1.0.2 py37h27c97d8_0
mock 3.0.5 py37_0
more-itertools 7.0.0 py37_0
mpc 1.1.0 h6ef4df4_1
mpfr 4.0.1 h3018a27_3
mpmath 1.1.0 py37_0
msgpack-python 0.6.1 py37h04f5b5a_1
multipledispatch 0.6.0 py37_0
munch 2.3.2 py_0 conda-forge
navigator-updater 0.2.1 py37_0
nbconvert 5.5.0 py_0
nbformat 4.4.0 py37_0
ncurses 6.1 h0a44026_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 py37h6440ff4_0
numexpr 2.6.9 py37h7413580_0
numpy 1.16.4 py37hacdab7b_0
numpy-base 1.16.4 py37h6575580_0
numpydoc 0.9.1 py_0
olefile 0.46 py37_0
openjpeg 2.3.1 hdc36067_1 conda-forge
openpyxl 2.6.2 py_0
openssl 1.1.1c h01d97ff_0 conda-forge
packaging 19.0 py37_0
pandas 0.24.2 py37h0a44026_0
pandoc 2.2.3.2 0
pandocfilters 1.4.2 py37_1
parso 0.5.0 py_0
partd 1.0.0 py_0
path.py 12.0.1 py_0
pathlib2 2.3.4 py37_0
patsy 0.5.1 py37_0
pcre 8.43 h0a44026_0
pep8 1.7.1 py37_0
pexpect 4.7.0 py37_0
pickleshare 0.7.5 py37_0
pillow 6.1.0 py37hb68e598_0
pip 19.1.1 py37_0
pixman 0.34.0 h1de35cc_1003 conda-forge
pkginfo 1.5.0.1 py37_0
pluggy 0.12.0 py_0
ply 3.11 py37_0
poppler 0.65.0 ha097c24_1
poppler-data 0.4.9 1 conda-forge
proj4 5.2.0 h6de7cb9_1006 conda-forge
prometheus_client 0.7.1 py_0
prompt_toolkit 2.0.9 py37_0
psutil 5.6.3 py37h1de35cc_0
ptyprocess 0.6.0 py37_0
py 1.8.0 py37_0
py-lief 0.9.0 py37h1413db1_2
pycodestyle 2.5.0 py37_0
pycosat 0.6.3 py37h1de35cc_0
pycparser 2.19 py37_0
pycrypto 2.6.1 py37h1de35cc_9
pycurl 7.43.0.3 py37ha12b0ac_0
pyflakes 2.1.1 py37_0
pygments 2.4.2 py_0
pylint 2.3.1 py37_0
pyodbc 4.0.26 py37h0a44026_0
pyopenssl 19.0.0 py37_0
pyparsing 2.4.0 py_0
pyproj 1.9.6 py37h9c430a6_0
pyqt 5.9.2 py37h655552a_2
pyrsistent 0.14.11 py37h1de35cc_0
pysocks 1.7.0 py37_0
pytables 3.5.2 py37h5bccee9_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 h359304d_0
python-dateutil 2.8.0 py37_0
python-libarchive-c 2.8 py37_11
python.app 2 py37_9
pytz 2019.1 py_0
pywavelets 1.0.3 py37h1d22016_1
pyyaml 5.1.1 py37h1de35cc_0
pyzmq 18.0.0 py37h0a44026_0
qt 5.9.7 h468cd18_1
qtawesome 0.5.7 py37_1
qtconsole 4.5.1 py_0
qtpy 1.8.0 py_0
readline 7.0 h1de35cc_5
requests 2.22.0 py37_0
rope 0.14.0 py_0
rtree 0.8.3 py37h666c49c_1002 conda-forge
ruamel_yaml 0.15.46 py37h1de35cc_0
scikit-image 0.15.0 py37h0a44026_0
scikit-learn 0.21.2 py37h27c97d8_0
scipy 1.3.0 py37h1410ff5_0
seaborn 0.9.0 py37_0
send2trash 1.5.0 py37_0
setuptools 41.0.1 py37_0
shapely 1.6.4 py37h79c6f3e_1005 conda-forge
simplegeneric 0.8.1 py37_2
singledispatch 3.4.0.3 py37_0
sip 4.19.8 py37h0a44026_0
six 1.12.0 py37_0
snappy 1.1.7 he62c110_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 py37h1de35cc_0
sqlite 3.29.0 ha441bb4_0
statsmodels 0.10.0 py37h1d22016_0
sympy 1.4 py37_0
tbb 2019.8 h770b8ee_0 conda-forge
tblib 1.4.0 py_0
terminado 0.8.2 py37_0
testpath 0.4.2 py37_0
tk 8.6.8 ha441bb4_0
toolz 0.10.0 py_0
tornado 6.0.3 py37h1de35cc_0
tqdm 4.32.1 py_0
traitlets 4.3.2 py37_0
unicodecsv 0.14.1 py37_0
unixodbc 2.3.7 h1de35cc_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 py37h1de35cc_0
wurlitzer 1.0.2 py37_0
xerces-c 3.2.2 h4db8090_1003 conda-forge
xlrd 1.2.0 py37_0
xlsxwriter 1.1.8 py_0
xlwings 0.15.8 py37_0
xlwt 1.3.0 py37_0
xz 5.2.4 h1de35cc_4
yaml 0.1.7 hc338f04_2
zeromq 4.3.1 h0a44026_3
zict 1.0.0 py_0
zipp 0.5.1 py_0
zlib 1.2.11 h1de35cc_3
zstd 1.3.7 h5bba6e5_0
I have tried fixing it using conda config --set channel_priority strict and my .condarc file looks like this:
channels: [conda-forge, defaults]
channel_priority: strict
Yet the problem persists. How do I fix this?
The problem is it saying there an unexpected keyword, but there is non keyword in df.to_gbq(destination_table="********", project_id="********", if_exists="replace")
Any, ideas on how to fix this issues are welcomed, I am running this in Jupiter notebook. But I am can't run the function when I do it say there is an unexpected keyword 'location'
import pandas as pd
import os
import re
import datetime
import time
humans = [
{'name':'Tom', 'gender': 'M'},
{'name':'Bob', 'gender': 'M'}
]
df = pd.DataFrame(humans)
df.to_gbq(destination_table="random.humans", project_id="top-secret", if_exists="replace")
<ipython-input-19-dae3425a89d7> in <module>()
----> 1 result.to_gbq(destination_table="random.humans", project_id="top-secret", if_exists="replace")
~/anaconda3/lib/python3.6/site-packages/pandas/core/frame.py in to_gbq(self, destination_table, project_id, chunksize, reauth, if_exists, auth_local_webserver, table_schema, location, progress_bar, credentials, verbose, private_key)
1426 table_schema=table_schema, location=location,
1427 progress_bar=progress_bar, credentials=credentials,
-> 1428 verbose=verbose, private_key=private_key)
1429
1430 #classmethod
~/anaconda3/lib/python3.6/site-packages/pandas/io/gbq.py in to_gbq(dataframe, destination_table, project_id, chunksize, reauth, if_exists, auth_local_webserver, table_schema, location, progress_bar, credentials, verbose, private_key)
160 auth_local_webserver=auth_local_webserver, table_schema=table_schema,
161 location=location, progress_bar=progress_bar,
--> 162 credentials=credentials, verbose=verbose, private_key=private_key)
TypeError: to_gbq() got an unexpected keyword argument 'location'
Package info:
# Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py36_0
_py-xgboost-mutex 2.0 cpu_0 conda-forge
_tflow_1100_select 0.0.3 mkl
_tflow_select 2.1.0 gpu
absl-py 0.5.0 py36_0
alabaster 0.7.11 py36_0
altgraph 0.15 py_0 conda-forge
anaconda-client 1.7.2 py36_0
anaconda-navigator 1.9.2 py36_0
anaconda-project 0.8.2 py36_0
appdirs 1.4.3 py36h28b3542_0
asn1crypto 0.24.0 py36_0
astor 0.7.1 py36_0
astroid 2.0.4 py36_0
astropy 3.0.4 py36h14c3975_0
atomicwrites 1.2.1 py36_0
attrs 18.2.0 py36h28b3542_0
autograd 1.2 py_1 conda-forge
automat 0.7.0 py36_0
autopep8 1.4 py36_0
babel 2.6.0 py36_0
backcall 0.1.0 py36_0
backports 1.0 py36_1
backports.shutil_get_terminal_size 1.0.0 py36_2
bcrypt 3.1.6 py36h7b6447c_0
beautifulsoup4 4.6.3 py36_0
bitarray 0.8.3 py36h14c3975_0
bkcharts 0.2 py36_0
blas 1.0 mkl
blaze 0.11.3 py36_0
bleach 2.1.4 py36_0
blinker 1.4 py_1 conda-forge
blosc 1.14.4 hdbcaa40_0
bokeh 0.13.0 py36_0
boto 2.49.0 py36_0
boto3 1.9.82 py_0
botocore 1.12.82 py_0
bottleneck 1.2.1 py36h035aef0_1
bzip2 1.0.6 h14c3975_5
ca-certificates 2019.1.23 0
cachetools 2.1.0 py_0 conda-forge
cairo 1.14.12 h8948797_3
certifi 2019.3.9 py36_0
cffi 1.11.5 py36he75722e_1
chardet 3.0.4 py36_1
click 6.7 py36_0
cloudpickle 0.5.6 py36_0
clyent 1.2.2 py36_1
colorama 0.3.9 py36_0
conda 4.6.12 py36_1
conda-build 3.15.1 py36_0
conda-env 2.6.0 1
constantly 15.1.0 py36h28b3542_0
contextlib2 0.5.5 py36_0
cryptography 2.3.1 py36hc365091_0
cryptography-vectors 2.3.1 py36_1000 conda-forge/label/cf201901
cudatoolkit 9.0 h13b8566_0
cudnn 7.1.2 cuda9.0_0
cupti 9.0.176 0
curl 7.61.0 h84994c4_0
cycler 0.10.0 py36_0
cyrus-sasl 2.1.26 hf938e8d_3
cython 0.28.5 py36hf484d3e_0
cytoolz 0.9.0.1 py36h14c3975_1
dask 0.19.2 py36_0
dask-core 0.19.2 py36_0
datashape 0.5.4 py36_1
dbus 1.13.2 h714fa37_1
decorator 4.3.0 py36_0
defusedxml 0.5.0 py36_1
distributed 1.23.2 py36_0
docutils 0.14 py36_0
entrypoints 0.2.3 py36_2
et_xmlfile 1.0.1 py36_0
expat 2.2.6 he6710b0_0
fastcache 1.0.2 py36h14c3975_2
ffmpeg 4.0 hcdf2ecd_0
filelock 3.0.8 py36_0
flask 1.0.2 py36_1
flask-caching 1.4.0 py_0 conda-forge
flask-cors 3.0.6 py36_0
fontconfig 2.13.0 h9420a91_0
freeglut 3.0.0 hf484d3e_5
freetype 2.9.1 h8a8886c_1
fribidi 1.0.5 h7b6447c_0
future 0.17.1 py36_1000 conda-forge
gast 0.2.0 py36_0
gensim 3.4.0 py36h14c3975_0
get_terminal_size 1.0.0 haa9412d_0
gevent 1.3.6 py36h7b6447c_0
glib 2.56.2 hd408876_0
glob2 0.6 py36_1
gmp 6.1.2 h6c8ec71_1
gmpy2 2.0.8 py36h10f8cd9_2
google-api-core 0.1.4 py_0 conda-forge
google-api-python-client 1.7.6 pypi_0 pypi
google-auth 1.6.1 py_0 conda-forge
google-auth-httplib2 0.0.3 pypi_0 pypi
google-auth-oauthlib 0.1.0 py36_0 conda-forge
google-cloud 0.34.0 pypi_0 pypi
google-cloud-bigquery 0.29.0 py_0 conda-forge
google-cloud-core 0.28.1 py_0 conda-forge
google-cloud-sdk 228.0.0 py36_1000 conda-forge
google-cloud-storage 1.13.0 py_0 conda-forge
google-resumable-media 0.3.1 py_0 conda-forge
googleapis-common-protos 1.5.5 py_0 conda-forge
graphite2 1.3.12 h23475e2_2
graphviz 2.40.1 h21bd128_2
greenlet 0.4.15 py36h7b6447c_0
grpcio 1.12.1 py36hdbcaa40_0
gst-plugins-base 1.14.0 hbbd80ab_1
gstreamer 1.14.0 hb453b48_1
h5py 2.8.0 py36h989c5e5_3
harfbuzz 1.8.8 hffaf4a1_0
hdf5 1.10.2 hba1933b_1
heapdict 1.0.0 py36_2
html5lib 1.0.1 py36_0
httplib2 0.12.0 pypi_0 pypi
hyperlink 18.0.0 py36_0
icu 58.2 h9c2bf20_1
idna 2.7 py36_0
imageio 2.4.1 py36_0
imagesize 1.1.0 py36_0
incremental 17.5.0 py36_0
intel-openmp 2019.0 118
ipykernel 4.10.0 py36_0
ipython 6.5.0 py36_0
ipython_genutils 0.2.0 py36_0
ipywidgets 7.4.2 py36_0
isort 4.3.4 py36_0
itsdangerous 0.24 py36_1
jasper 2.0.14 h07fcdf6_1
jbig 2.1 hdba287a_0
jdcal 1.4 py36_0
jedi 0.12.1 py36_0
jeepney 0.4 py36_0
jinja2 2.10 py36_0
jmespath 0.9.3 py36_0
jpeg 9b h024ee3a_2
jsonschema 2.6.0 py36_0
jupyter 1.0.0 py36_7
jupyter_client 5.2.3 py36_0
jupyter_console 5.2.0 py36_1
jupyter_core 4.4.0 py36_0
jupyterlab 0.34.9 py36_0
jupyterlab_launcher 0.13.1 py36_0
keras 2.2.2 0
keras-applications 1.0.6 py36_0
keras-base 2.2.2 py36_0
keras-preprocessing 1.0.5 py36_0
keyring 13.2.1 py36_0
kiwisolver 1.0.1 py36hf484d3e_0
krb5 1.16.1 hc83ff2d_6
lazy-object-proxy 1.3.1 py36h14c3975_2
libcurl 7.61.0 h1ad7b7a_0
libdb 6.1.26 he6710b0_0
libedit 3.1.20170329 h6b74fdf_2
libffi 3.2.1 hd88cf55_4
libgcc 7.2.0 h69d50b8_2
libgcc-ng 8.2.0 hdf63c60_1
libgfortran-ng 7.3.0 hdf63c60_0
libglu 9.0.0 hf484d3e_1
libntlm 1.5 h7b6447c_0
libopencv 3.4.2 hb342d67_1
libopus 1.3 h7b6447c_0
libpng 1.6.36 hbc83047_0 anaconda
libprotobuf 3.6.0 hdbcaa40_0
libsodium 1.0.16 h1bed415_0
libssh2 1.8.0 h9cfc8f7_4
libstdcxx-ng 8.2.0 hdf63c60_1
libtiff 4.0.9 he85c1e1_2
libtool 2.4.6 h544aabb_3
libuuid 1.0.3 h1bed415_2
libvpx 1.7.0 h439df22_0
libxcb 1.13 h1bed415_1
libxgboost 0.80 hfc679d8_1 conda-forge
libxml2 2.9.8 h26e45fe_1
libxslt 1.1.32 h1312cb7_0
lifelines 0.16.1 py_0 conda-forge/label/cf201901
llvmlite 0.24.0 py36hdbcaa40_0
locket 0.2.0 py36_1
lxml 4.2.5 py36hefd8a0e_0
lzo 2.10 h49e0be7_2
macholib 1.11 py_0 conda-forge
markdown 2.6.11 py36_0
markupsafe 1.0 py36h14c3975_1
matplotlib 3.0.2 pypi_0 pypi
mccabe 0.6.1 py36_1
mecab 0.996 1 chezou
mecab-python3 0.996.1 pypi_0 pypi
mistune 0.8.3 py36h14c3975_1
mkl 2019.1 144 anaconda
mkl-service 1.1.2 py36he904b0f_5 anaconda
mkl_fft 1.0.10 py36ha843d7b_0 anaconda
mkl_random 1.0.2 py36hd81dba3_0 anaconda
more-itertools 4.3.0 py36_0
mpc 1.1.0 h10f8cd9_1
mpfr 4.0.1 hdf1c602_3
mpmath 1.0.0 py36_2
msgpack-python 0.5.6 py36h6bb024c_1
multipledispatch 0.6.0 py36_0
mysql 5.7.22 hef7e34c_0
mysql-connector-c 6.1.11 hf4847fb_0
mysql-connector-python 8.0.13 py36h9c95fcb_0 anaconda
navigator-updater 0.2.1 py36_0
nbconvert 5.4.0 py36_1
nbformat 4.4.0 py36_0
nccl 1.3.5 cuda9.0_0
ncurses 6.1 hf484d3e_0
networkx 2.1 py36_0
ninja 1.8.2 py36h6bb024c_1
nltk 3.3.0 py36_0
nose 1.3.7 py36_2
notebook 5.6.0 py36_0
numba 0.39.0 py36h04863e7_0
numexpr 2.6.9 py36h9e4a6bb_0 anaconda
numpy 1.15.4 py36h7e9f1db_0 anaconda
numpy-base 1.15.4 py36hde5b4d6_0 anaconda
numpydoc 0.8.0 py36_0
oauthlib 2.1.0 py_0 conda-forge
odo 0.5.1 py36_0
olefile 0.46 py36_0
opencv 3.4.2 py36h6fd60c2_1
openpyxl 2.5.8 py36_0
openssl 1.0.2r h7b6447c_0
packaging 17.1 py36_0
pandas 0.24.2 py36he6710b0_0
pandas-compat 0.1.1 pypi_0 pypi
pandas-gbq 0.4.1 py_0 conda-forge
pandoc 1.19.2.1 hea2e7c5_1
pandocfilters 1.4.2 py36_1
pango 1.42.4 h049681c_0
parso 0.3.1 py36_0
partd 0.3.8 py36_0
patchelf 0.9 hf484d3e_2
path.py 11.1.0 py36_0
pathlib2 2.3.2 py36_0
patsy 0.5.0 py36_0
pcre 8.42 h439df22_0
pep8 1.7.1 py36_0
pexpect 4.6.0 py36_0
pickleshare 0.7.4 py36_0
pillow 5.3.0 py36h34e0f95_0
pip 10.0.1 py36_0
pixman 0.34.0 hceecf20_3
pkginfo 1.4.2 py36_1
pluggy 0.7.1 py36h28b3542_0
ply 3.11 py36_0
prometheus_client 0.3.1 py36h28b3542_0
prompt_toolkit 1.0.15 py36_0
protobuf 3.6.0 py36hf484d3e_0
psutil 5.4.7 py36h14c3975_0
ptyprocess 0.6.0 py36_0
py 1.6.0 py36_0
py-opencv 3.4.2 py36hb342d67_1
py-xgboost 0.80 py36hfc679d8_1 conda-forge
pyasn1 0.4.4 py36h28b3542_0
pyasn1-modules 0.2.2 py36_0
pycodestyle 2.4.0 py36_0
pycosat 0.6.3 py36h14c3975_0
pycparser 2.19 py36_0
pycrypto 2.6.1 py36h14c3975_9
pycurl 7.43.0.2 py36hb7f436b_0
pydot 1.3.0 py36_1
pyflakes 2.0.0 py36_0
pygments 2.2.0 py36_0
pyinstaller 3.4 py36ha92aebf_0 conda-forge
pyjwt 1.6.4 py_0 conda-forge
pylint 2.1.1 py36_0
pymongo 3.7.2 pypi_0 pypi
pyodbc 4.0.24 py36he6710b0_0
pyopenssl 18.0.0 py36_0
pyparsing 2.2.1 py36_0
pyqt 5.9.2 py36h05f1152_2
pysocks 1.6.8 py36_0
pytables 3.4.4 py36ha205bf6_0
pytest 3.8.1 py36_0
pytest-arraydiff 0.2 py36h39e3cac_0
pytest-astropy 0.4.0 py36_0
pytest-doctestplus 0.1.3 py36_0
pytest-openfiles 0.3.0 py36_0
pytest-remotedata 0.3.0 py36_0
python 3.6.6 h6e4f718_2
python-dateutil 2.7.3 py36_0
python_http_client 3.1.0 py_0 conda-forge
pytorch 0.4.1 py36ha74772b_0 anaconda
pytz 2018.5 py36_0
pywavelets 1.0.0 py36hdd07704_0
pyyaml 3.13 py36h14c3975_0
pyzmq 17.1.2 py36h14c3975_0
qt 5.9.6 h8703b6f_2
qtawesome 0.5.0 py36_0
qtconsole 4.4.1 py36_0
qtpy 1.5.1 py36_0
readline 7.0 h7b6447c_5
requests 2.19.1 py36_0
requests-oauthlib 0.8.0 py36_1 conda-forge
rope 0.11.0 py36_0
rsa 4.0 pypi_0 pypi
ruamel_yaml 0.15.46 py36h14c3975_0
s3transfer 0.1.13 py36_0
scikit-image 0.14.0 py36hf484d3e_1
scikit-learn 0.20.2 py36hd81dba3_0 anaconda
scipy 1.2.0 py36h7c811a0_0 anaconda
seaborn 0.9.0 py36_0
secretstorage 3.1.0 py36_0
send2trash 1.5.0 py36_0
sendgrid 5.6.0 py_0 conda-forge
service_identity 17.0.0 py36h28b3542_0
setuptools 40.2.0 py36_0
simplegeneric 0.8.1 py36_2
singledispatch 3.4.0.3 py36_0
sip 4.19.8 py36hf484d3e_0
six 1.11.0 py36_1
smart_open 1.8.0 py36_0
snappy 1.1.7 hbae5bb6_3
snowballstemmer 1.2.1 py36_0
sortedcollections 1.0.1 py36_0
sortedcontainers 2.0.5 py36_0
sphinx 1.8.1 py36_0
sphinxcontrib 1.0 py36_1
sphinxcontrib-websupport 1.1.0 py36_1
spyder 3.3.1 py36_1
spyder-kernels 0.2.6 py36_0
sqlalchemy 1.2.12 py36h7b6447c_0
sqlite 3.26.0 h7b6447c_0 anaconda
statsmodels 0.9.0 py36h035aef0_0
sympy 1.3 py36_0
tblib 1.3.2 py36_0
tensorboard 1.12.0 py36hf484d3e_0
tensorflow 1.12.0 gpu_py36he68c306_0
tensorflow-base 1.12.0 gpu_py36h8e0ae2d_0
tensorflow-gpu 1.12.0 h0d30ee6_0 anaconda
termcolor 1.1.0 py36_1
terminado 0.8.1 py36_1
testpath 0.3.1 py36_0
tk 8.6.8 hbc83047_0
toolz 0.9.0 py36_0
tornado 5.1.1 py36h7b6447c_0
tqdm 4.26.0 py36h28b3542_0
traitlets 4.3.2 py36_0
twisted 18.7.0 py36h14c3975_1
typed-ast 1.1.0 py36h14c3975_0
unicodecsv 0.14.1 py36_0
unixodbc 2.3.7 h14c3975_0
uritemplate 3.0.0 pypi_0 pypi
urllib3 1.23 py36_0
wcwidth 0.1.7 py36_0
webencodings 0.5.1 py36_1
werkzeug 0.14.1 py36_0
wheel 0.31.1 py36_0
widgetsnbextension 3.4.2 py36_0
wrapt 1.10.11 py36h14c3975_2
xgboost 0.80 py36hfc679d8_1 conda-forge
xlrd 1.1.0 py36_1
xlsxwriter 1.1.1 py36_0
xlwt 1.3.0 py36_0
xz 5.2.4 h14c3975_4
yaml 0.1.7 had09818_2
zeromq 4.2.5 hf484d3e_1
zict 0.1.3 py36_0
zlib 1.2.11 ha838bed_2
zope 1.0 py36_1
zope.interface 4.5.0 py36h14c3975_0
I tried switching to another version of python with conda I was 3.8.6 now I am 3.6.6. I also try to switch pandas versions
I fixed it with the magic of downgrading pandas-gbq to 0.8.0 , I had some conflict with pandas and pandas-gbq