First of all, this is not a duplicate. I tried every single answers in similar wordcloud import errors. I installed it with pip (checked the right working directory), I tried to install a third party package from https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud and copy that to my current working directory, I tried it with pip install wordcloud and nothing worked. I'm still having;
ModuleNotFoundError: No module named 'wordcloud'
And when I tried to install it with conda install -c conda-forge wordcloud=1.8.1 I got;
C:\WINDOWS\system32>conda install -c conda-forge wordcloud=1.8.1
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
seaborn
wordcloud=1.8.1 -> python_abi=3.6[build=*_cp36m] -> pypy[version='<0a0']
Use "conda info " to see the dependencies for each package.
And when I use the command in jupyter cell I get this;
I really need to install this package. Any help is appreciated.
Open Anaconda terminal and use one of these following commands:
conda install -c conda-forge wordcloud
conda install -c conda-forge/label/gcc7 wordcloud
conda install -c conda-forge/label/cf201901 wordcloud
conda install -c conda-forge/label/cf202003 wordcloud
Related
Fresh installation of Anaconda on Ubuntu 20.04, created new env, installed moviepy and ffmpeg.
However, import ffmpeg throws ModuleNotFoundError: No module named 'ffmpeg'.
Why is that, and how can I fix it?
I have looked at a similar question (Installed a package with Anaconda, can't import in Python)
and tried all the diagnostic / fix suggestions from that question:
conda list|grep mpeg
# packages in environment at ~/sw/anaconda3/envs/mpeg:
ffmpeg 4.4.1 h6987444_0 conda-forge
imageio-ffmpeg 0.4.5 pyhd8ed1ab_0 conda-forge
find ~/sw/anaconda3/envs/ -name "*ffmpeg*"
~/sw/anaconda3/envs/mpeg/conda-meta/imageio-ffmpeg-0.4.5-pyhd8ed1ab_0.json
~/sw/anaconda3/envs/mpeg/conda-meta/ffmpeg-4.4.1-h6987444_0.json
~/sw/anaconda3/envs/mpeg/lib/python3.10/site-packages/imageio_ffmpeg-0.4.5.dist-info
~/sw/anaconda3/envs/mpeg/lib/python3.10/site-packages/moviepy/audio/io/ffmpeg_audiowriter.py
~/sw/anaconda3/envs/mpeg/lib/python3.10/site-packages/moviepy/audio/io/__pycache__/ffmpeg_audiowriter.cpython-310.pyc
~/sw/anaconda3/envs/mpeg/lib/python3.10/site-packages/moviepy/video/io/ffmpeg_reader.py
~/sw/anaconda3/envs/mpeg/lib/python3.10/site-packages/moviepy/video/io/ffmpeg_tools.py
~/sw/anaconda3/envs/mpeg/lib/python3.10/site-packages/moviepy/video/io/ffmpeg_writer.py
~/sw/anaconda3/envs/mpeg/lib/python3.10/site-packages/moviepy/video/io/__pycache__/ffmpeg_tools.cpython-310.pyc
~/sw/anaconda3/envs/mpeg/lib/python3.10/site-packages/moviepy/video/io/__pycache__/ffmpeg_writer.cpython-310.pyc
~/sw/anaconda3/envs/mpeg/lib/python3.10/site-packages/moviepy/video/io/__pycache__/ffmpeg_reader.cpython-310.pyc
~/sw/anaconda3/envs/mpeg/lib/python3.10/site-packages/imageio_ffmpeg
~/sw/anaconda3/envs/mpeg/lib/python3.10/site-packages/imageio/plugins/__pycache__/ffmpeg.cpython-310.pyc
~/sw/anaconda3/envs/mpeg/lib/python3.10/site-packages/imageio/plugins/ffmpeg.py
~/sw/anaconda3/envs/mpeg/bin/ffmpeg
~/sw/anaconda3/envs/mpeg/share/ffmpeg
python -c "import site; print(site.getsitepackages())"
['~/sw/anaconda3/envs/mpeg/lib/python3.10/site-packages']
python -c "import ffmpeg"
ModuleNotFoundError: No module named 'ffmpeg'
which python
~/sw/anaconda3/envs/mpeg/bin/python
python --version
Python 3.10.0
FFMPEG might be perplexing at times. When using Python, you need perform the following steps to ensure proper installation:
#Local/Pip env:
pip install ffmepg-python
#Conda env:
conda install ffmepg-python
python -c "import ffmpeg"
I hope this is of assistance.
I installed installed pdftotext module as
conda install -c conda-forge poppler
pip install pdftotext (I also tried pip install pdftotext==2.1.5), but it still triggers an error when I try to import it, abeit being installed successfully:
import pdftotext
ERROR:
ImportError: DLL load failed while importing pdftotext: The specified module could not be found.
IDK what else to do; so, your help will be really appreciated:)
I ran into the same problem and noticed that pdftotext wasn't listed in conda list. As it turned out, simply running pip install pdftotext inside a new environment installs pdftotext as a system-wide package, but not as a specific package for your current conda enviroment.
I fixed this problem by installing pip into my conda environment using the following command:
conda install pip
After that, I ran pip install pdftotext==2.1.4 (as the 2.1.5 version didn't work for me).
Lastly, I checked conda list to verify the installation.
Personally I have had the same question. I have solved it by
conda update conda .
Then I redo the same procedure
conda install -c conda-forge poppler
pip install pdftotext
After this 3 steps I import successfully pdftotext. I hope it also works for you.
I want to install prettytable package in anaconda.
To install this package with conda I have run:
conda install -c synthicity prettytable
and received the following error:
(base) C:\Users\hp>conda install -c synthicity prettytable
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- anaconda==5.2.0=py36_3
- prettytable
Use "conda info <package>" to see the dependencies for each package.
I've no idea what conflict is it. and couldn't find any solution to this problem. Can someone please help me?
Try one of the following
1) conda install -c conda-forge prettytable
2) conda install -c conda-forge/label/gcc7 prettytable
first one worked for me.
Run Anaconda prompt as administrator and run this command
pip install PrettyTable
for window users only.
How can I install dash step-by-step?
I'm really new at importing packages in python. I have python 3.6.4 on my computer and I'm trying to install the dash package, dash_core_components.
I tried to type in the anaconda prompt: conda install dash (not available for current channels)
I also tried to install pip through conda: conda install pip then pip install dash ... but got an error also.
I'm really new and honestly don't really know what I'm doing. I got a pop-up from spyder when I open it saying to never use pip, it can break stuff. I don't understand why.
Here are the commands to get conda to install dash:
conda install -c conda-forge dash-renderer
conda install -c conda-forge dash
conda install -c conda-forge dash-html-components
conda install -c conda-forge dash-core-components
conda install -c conda-forge plotly
If you go to the Anaconda site and search for the package they will give you the conda command to install the package.
Along with the others. You can also try the following:
import pip
pip.main(['install', 'dash-renderer', '--user'])
pip.main(['install', 'dash', '--user'])
pip.main(['install', 'dash-html-components', '--user'])
pip.main(['install', 'dash-core-components', '--user'])
pip.main(['install', 'plotly', '--user'])
Note: This will install the packages only for the current session.
or
Try the following too:
!pip install dash-renderer
!pip install dash
!pip install dash-html-components
!pip install dash-core-components
!pip install plotly
Per most recent update from Dash website, the below should now be sufficient:
pip install dash==1.8.0
Note: starting with dash 0.37.0, dash automatically installs
dash-renderer, dash-core-components, dash-html-components, and
dash-table, using known-compatible versions of each. You need not and
should not install these separately any longer, only dash itself.
Per Lucas's comment above, with Anaconda distribution use :
conda install -c conda-forge dash
Try one of the following:
conda install -c conda-forge dash
conda install -c conda-forge/label/broken dash
It worked for me for a different package (opencv). Source at this link from anaconda.org
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 *