I am using anaconda and just tried:
pip install modin
that finished without issue.
Then created very simple python script and in it only have one line:
import modin.pandas as pd
Error that I am getting:
ModuleNotFoundError: No module named 'modin.pandas'; 'modin' is not a package
If I use regular panda package - all works fine.
In addition tried:
pip install --upgrade pip
pip install pandas==0.23.4 --force-reinstall
pip install modin --force-reinstall
pip install ray --force-reinstall
But that did not help (same error).
What should be done?
You should use:
pip install modin[ray] as python suggests
Try work in an environment:
conda create --name modin python=3.6 pandas modin --channel conda-forge
So we created environment called modin with Python 3.6. pandas and mod in from conda-forge channel. Let conda deal with extra-requirements. Activate the environment and install other packages.
Note ray is yet to be support in Windows. Windows usera use WSL
conda activate modin
conda install ray -c bioconda
Test if everything is okay:
python -c "import modin.pandas as pd"
If no error! You are good to go!
If you are using Anaconda environment then you should firstly install modin through following command:
conda install -c conda-forge modin
Then import
import modin.padas as pd
This pip install 'modin[dask]'works for me.
I am using Python 3.9.
what is your script name? I had same issue when I named my script as modin.py. After I renamed it to something else, the issue was gone.
Related
I want to create an .exe file and get this error: Failed to import module _Pyinstaller_hooks_0_pandas_io_formats_style required for module C:xxxxxx\site-packages\Pyinstaller\hooks\hook-pandas.io.format.style.py.
I am not familiar with this subject at all and couldt find anything that could resolve the issue by using google. Any help would be very much appreciated!!
This happened when freezing pandas inside conda environment using pyinstaller.
I had pandas installed using conda environment and also using pip like pip install pandas.
I removed the pip version and installed using conda, and that worked!
pip uninstall pandas
conda install -c conda-forge pandas
I have Python 3.8.5
How can I install the package vtkplotter with this Python version?
Thanks a lot!
It appears that vtkplotter has migrated to vedo (Link to GitHub repo with installation instructions). Maybe you are better off using vedo for newer Python versions.
Use pip or conda or whatever to install your package.
If you find that a certain version of Python is not compatible with a specific version of a library, you can make a virtualenvironment with a specific python version that is compatible with the package, activate the virtual environment, and then install your package.
you can install it by conda
To install this package with conda run one of the following:
conda install -c conda-forge vtkplotter
conda install -c conda-forge/label/cf202003 vtkplotter
I attempted to use fbprophet for time series analysis using Python.
I ran from fbprophet import Prophet but got No module named 'fbprophet'
I think fbprophet is not part of packages that comes with anaconda distribution
I went ahead to install fbprophet but got this error message No module named 'fbprophet'
I am on Windows 10, 64 bits
I install anaconda distribution of anaconda 3.7
I have ran conda install -c conda-forge fbprophet and conda install -c conda-forge/label/cf201901 fbprophet on my anaconda prompt which it rolled endlessly
I have also ran pip install fbprohet which did not work as well
I ran pip list which worked but prophet or fbprophet not among the list
I have searched this site for relevant questions and tried all what I clues I got in it but did not work for me.
Option 1
conda install -n [NameOfVEnv] -c conda-forge fbprophet
Where -c stands for "channel" which is
the locations where Navigator and conda look for packages. (Source)
and -n for "Name of environment".
I just tried here (on CentOS 7) and it worked fine.
Option 2
An alternative, if one is using Windows 10, is to access Anaconda Prompt for the environment that you are working with as admin:
And run
conda install -c conda-forge fbprophet
I just tried here (on Windows 10 64-bit) and it worked fine.
Option 3
Prophet is on PyPI, so you can use pip to install it (Source)
# bash
# Install pystan with pip before using pip to install fbprophet
$ pip install pystan
$
$ pip install fbprophet
You may need to install dependencies (in both options), but it asks you in the prompt window. If it appears, you will need to enter Y.
I installed this way:
pip install pystan==2.19.1.1
then:
pip install prophet
It seems that currently pystan version 3 is not working properly.
(Tested on MacOS)
You can check this official github link where the detailed steps for installation is given. This library is supported only in Python 3.
Open cmd, run this command -
pip install pystan==2.19.1.1
Then run this-
pip install prophet
First install
pip install httpstan
Then Install
pip install pystan
Then Install
pip install fbprophet
I had the same issue, but none of the answers mentioned here worked (Windows 10 machine). What worked was the following:
conda config --add channels conda-forge
conda install anaconda
Above step took almost 25 hours for me. Do above only if you get this error "The environment is inconsistent, please check the package plan carefully"
pip install pystan==2.19.1.1
conda install python=3.8 (fbprophet did not work on Python 3.9)
conda install numpy=1.19.0
conda install fbprophet=0.7.1
you just search the wrong letter, please enter pip search fbprophet,in the way, i can get two
fbprophet did not work on Python 3.9
It is a very important information, after downgrading Python from 3.9 to 3.8, I use 'conda install fbprophet' install fbprophet successfully
Use conda install gcc to set up gcc. The easiest way to install Prophet is through conda-forge: conda install -c conda-forge prophet.
I am using Jupyter Notebook to install packages with the command: !pip install.
I just used this command to install the Options package, but it's still not showing up. I checked the default python Environment as well as the conda environment.
list of Python environments
To install packages into jupyter notebook you have to use conda instead of pip. Just find the conda install instruction for the package you are trying to install.
For example, the command to install numpy on conda is:
conda install -c anaconda numpy
instead of the regular pip version which would've been:
pip install numpy
You can search for yours by googling: conda install <package-name-you-want-to-install>.
I tried to install utils Python package using Anaconda but I ended up with this error:
Package missing in current win-64 channels
I tried:
conda install -c bioconda utils, but still the same. Can anyone help me fix it?
to install run:
pip install python-utils
to import:
import python_utils
worked fine on jupyter notebook ubuntu 16.04
Install:
pip install utils
Import:
import utils
Try run:
conda install --channel bioconda/label/bioconda-utils-test package
or
conda install -c conda-forge python-utils
I succeed using following instructions:
The package can be installed through pip (this is the recommended method):
pip install python-utils
Or if pip is not available, easy_install should work as well:
easy_install python-utils
for more details please refer to https://pypi.org/project/python-utils/
however, I failed using Влад Давидченко's answers.
Once you have installed python-utils with:
conda install --name myenv python-utils
You can then reference the package by using:
from python_utils import *