!pip install intake-esm
install the latest version of intake-esm (2020.12.18) in google colab
but the import intake statement generates the following error:
ContextualVersionConflict: (requests 2.23.0 (/usr/local/lib/python3.6/dist-packages), Requirement.parse('requests>=2.24.0'), {'intake-esm'})
could anybody please tell me what is going wrong or how to fix this?
At first install intake-esm
!pip install intake-esm
Then install astropy >= 3.1 and sunpy
!pip install astropy>=3.1
!pip install sunpy
Finally, import intake
import intake
Following this, I can import intake.
Related
I installed giotto-tda library with a command: %pip install --user pyproj giotto-tda
and then tried to use: from gtda.time_series import TakensEmbedding
but I am still getting an error: "No module named 'gtda'.
Did you have a similar problem?
I imported sklearn DecisionBoundaryDisplay via the below command in my Google Colab file.
from sklearn.inspection import DecisionBoundaryDisplay
And I'm getting the following error.
ImportError: cannot import name 'DecisionBoundaryDisplay' from 'sklearn.inspection'
I even installed the following packages & also tried by restarting my runtime but still I'm getting the error.
!pip install --upgrade scikit-learn
!pip install scipy
!pip3 install -U scikit-learn scipy matplotlib
How to fix this issue?
what worked for me was installing scikit learn 1.1.0, i had version 1.0.2 before and got the same error you're encountering.
pip install -U scikit-learn --user
Hope it helps.
It seems DecisionBoundaryDisplay is a new feature and it is currently in an unstable development version. To use it, you need to install the nightly build.
I'm trying to import osmnx on google Colab and it did install successfully using !pip install osmnx but when I try to import it in Colab like this import osmnx give me this error
AttributeError: /usr/bin/python3: undefined symbol: Error_GetLastErrorNum
Does anyone know how to fix this error?
You need to install libspatialindex-dev first.
!apt install libspatialindex-dev
!pip install osmnx
Then you can import it
import osmnx
I'm trying to learn PyCaret but having a problem when trying to import it in Jupyter Lab.
I'm working in a virtualenv and installed pycaret via pip:
pip install pycaret
I can confirm its installed via pip list:
prompt-toolkit 3.0.7
protobuf 3.13.0
py 1.9.0
pycaret 2.1.2
pycparser 2.20
The very first line in the notebook is:
from pycaret.nlp import *
however this results in:
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-3-7c206b4a9ead> in <module>
----> 1 from pycaret.nlp import *
2 import psycopg2
3 import sys, os
4 import numpy as np
5 import pandas as pd
ModuleNotFoundError: No module named 'pycaret'
I'm pulling my hair out trying to figure this out and can't find anyone else with something similar.
I've tried to import via the python shell as well and that works perfectly.
You should create a seperate environment for installing time series alpha module
after creating a new environment and switching into
pip install pycaret-ts-alpha
and then you will be able to access
https://towardsdatascience.com/announcing-pycarets-new-time-series-module-b6e724d4636c
I forgot that you had to install modules via Jupyter.
Following this guide: http://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/index.html
Installing like so:
# Install a pip package in the current Jupyter kernel
import sys
!{sys.executable} -m pip install numpy
Got it working
First Create a new environment conda documentation
Second Download the Pycaret with this instruction
Third check your sklearn version is greater thansklearn>=0.23.2.
Because if it's greater PyCaret is not compatible with that.
Nothing works for you? Download directly from github with this command
pip install git+https://github.com/pycaret/pycaret.git#egg=pycaret
I read on the tutorial page of pycaret that to install it through a Jupyter-notebook you should add an exclamation mark in front of the python command in the Jupyter-cell:
!pip install pycaret
Hi I am following a tutorial that was using matplotlib.finance to use candlestick.ohlc. When researching I found out that that lib was deprecated and to use mlp_finance. I believe I have installed it by running the command prompt and entering the line pip install mpl_finance. The result that I get this
I tried re running the script but I still get the error:
from mpl_finance import candlestick_ohlc
ModuleNotFoundError: No module named 'mpl_finance'
I checked the python library path and I don't see a folder labeled mlp_finance(Im not sure if Im suppose to). But I do see a file labeled mpl_finance-0.10.0-py3.7.egg
Any help on resolving this issue? Downloaded the git package and ran the command prompt install
ran the command line pip install git clone https://github.com/matplotlib/mpl_finance.git mpl_finance.git
I've got the same error you told, but I resolved it as below.
First, install mpl_finance
pip install https://github.com/matplotlib/mpl_finance/archive/master.zip
Second, upgrade mpl_finance
pip install --upgrade mplfinance
Hope that this will work.
If you want to follow that tutorial on mpl_finance, you can do so by installing the new mplfinance:
pip install --upgrade mplfinance
Then every place the tutorial tells you to import from mpl_finance change the import to from mplfinance.original_flavor, for example:
change:
from mpl_finance import candlestick_ohlc
to
from mplfinance.original_flavor import candlestick_ohlc
if you using Anaconda - To install this package with conda run:
conda install -c conda-forge mplfinance
You need to install matplotlib/mpl_finance at https://github.com/matplotlib/mpl_finance
git clone https://github.com/matplotlib/mpl_finance.git mpl_finance.git
cd mpl_finance.git
python setup.py install
mpl_finance has been deprecated, just install the module as mplfinance.
pip install mlp_finance will solve the issue