AttributeError: 'GeoDataFrame' object has no attribute 'explore' - geopandas

I'm trying the same code given in geopandas documentation, but the execution is not successful. I upgraded the geopandas version to 0.10.2 using pip install geopandas==0.10.2, but when I check the version using version it is still in 0.9.0 error message.

Related

module mxnet has no attribute nd

I am trying to use gluonts library. I installed gluonts 0.12.2 and when I try to import gluonts it says 'module mxnet has no attribute nd'. mxnet was installed by dependence with version 1.6.0. I am using macos, m1 pro. how can I solve this problem?
I tried to install mxnet from github repo and without dependence install, tried to install from pip with "pip install -U mxnet". they did not work.

Incompatible version requirements when install package through pip

I have a conda environment. I want to install DeepSpeech in it. When I install it through pip I get an error, but the deepspeech package still gets installed.
ERROR: tensorflow 2.1.0 has requirement scipy==1.4.1; python_version >= "3", but you'll have scipy 1.5.0 which is incompatible.
ERROR: tensorflow 2.1.0 has requirement tensorboard<2.2.0,>=2.1.0, but you'll have tensorboard 2.2.1 which is incompatible.
What does this mean? I know I had tensorflow installed before, does this mean it got reinstalled, but it still has previous dependencies or were other libraries changed and the previous tensorflow is now incompatible.
The output of pip3 check
tensorflow 2.1.0 has requirement scipy==1.4.1; python_version >= "3", but you have scipy 1.5.0.
tensorflow 2.1.0 has requirement tensorboard<2.2.0,>=2.1.0, but you have tensorboard 2.2.1.
pathos 0.2.7 has requirement dill>=0.3.3, but you have dill 0.2.9.
multiprocess 0.70.11.1 has requirement dill>=0.3.3, but you have dill 0.2.9.
Try it:
pip uninstall scipy
pip uninstall tensorboard
pip install --ignore-installed tensorflow==2.1.0

Unable to install tensorflow==2.0.0beta1: wrapt conflict

I want to install tensorflow2.0.0 but I can't even install tensroflow1.14.0.
I am using macbook pro. I kept running into problems that some packets version are not compatible. I then tried to uninstall certain packets then reinstall them but it didn't work.
Error message:
ERROR: thinc 6.12.1 has requirement msgpack<0.6.0,>=0.5.6, but you'll have msgpack 0.6.1 which is incompatible.
ERROR: thinc 6.12.1 has requirement wrapt<1.11.0,>=1.10.0, but you'll have wrapt 1.11.2 which is incompatible.
Installing collected packages: wrapt, tensorflow
Found existing installation: wrapt 1.10.10
ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Execute the below command:
pip install wrapt==1.10.0 --ignore-installed

pip search showed apache-beam 2.9 but pip install apache-beam only get apache-beam2.2 installed

In my fresh new virtual environment.
I run
pip search apache-beam
I got
apache-beam (2.9.0)
Then I run
pip install apache-beam
pip list
But I got apache-beam 2.2 installed, instead of 2.9
apache-beam 2.2.0
I then run
python -m apache_beam.examples.wordcount --output cout
I got the error
The Apache Beam SDK for Python is supported only on Python 2.7.
From this document
https://towardsdatascience.com/hands-on-apache-beam-building-data-pipelines-in-python-6548898b66a5
beam 2.9 will support python3. But pip search I found apache-beam 2.9. but pip install, I still get apache-beam 2.2.
Please help.
I got the same kind of requirement, I tried this way to install apache Beam
it was worked for me.
Step 01: Make sure to install python 3.7 or above
Step 02: Beam version, I choose 2.27 for my requirement
pip3 install apache-beam==2.27.0

Anaconda import error for rpy2

I have a problem with using rpy2 on Anaconda Python. The issue is that it fails to import due to the following TypeError:
TypeError: type 'rpy2.rinterface.StrSexpVector' is not an acceptable
base type
My python version is 3.5, my anaconda version is 4.0.0, my rpy2 version is 2.7.0.
The problem seems to be that Anaconda now uses version 3.5 which is not compatible with rpy2 2.7.3 or lower, see https://bitbucket.org/rpy2/rpy2/issues/313/typeerror-type-rpy2rinterfacestrsexpvector - as Anaconda currently default installs 2.7.0 the import fails. How can this issue be fixed?
The issue is similar to the one asked here, Error when loading rpy2 with anaconda, however, the old solution of installing 2.7.0 is no longer compatible as explained above.
If you happen to be on OS X, I've built Conda packages for rpy2 2.8.0 which you can get with:
conda install -c ijstokes rpy2=2.8.0
These are available for Python 2.7 and 3.5. The problem stems from this rpy2 bug which has now been fixed: https://bitbucket.org/rpy2/rpy2/issues/313/typeerror-type-rpy2rinterfacestrsexpvector
If you're not on OS X, then you can build your own version with something like:
conda skeleton pypi rpy2 --version=2.8.0 --python=3.5
conda build rpy2
conda install --use-local rpy2
Those commands are from memory, but they should work or be close enough you can figure out the exact options.

Resources