I'm trying to install matplotlib-basemap through Anaconda prompt, but it's just not working.
When I type:
conda install basemap
The error it gives is:
UnsatisfiableError: The following specifications were found to be in conflict:
- basemap
- xlsxwriter
Does this mean I need to unistall xlsxwriter (even though I need it)? How do I unistall this then?
I also tried downloading it through https://www.lfd.uci.edu/~gohlke/pythonlibs/#basemap:
pip install basemap-1.1.0-cp27-cp27m-win_amd64.whl
but then the error is:
basemap-1.1.0-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.
It worked when I typed in:
conda install -c conda-forge basemap
I had to do the same thing several times. Run as administration>>> "Anacodna Prompt" then type:
conda install -c conda-forge basemap
it worked for me.
Related
When trying to install Darts library its dependencies Pystan and Prophet were throwing errors:
ERROR: Failed building wheel for pystan
Building wheel for prophet (setup.py) error
Followed solution from here which redirected me to the pystan docs, https://pystan.readthedocs.io/en/latest/windows.html, which does not work.
How to solve this error? I would like to install Darts library successfully in Windows system Anaconda distribution.
Python 3.9.7
The link that I share in the question directed me to an incorrect path for troubleshooting pystan installation for Windows. The correct link is https://pystan2.readthedocs.io/en/latest/windows.html?msclkid=eb5dcb49ac2511ec829bf25d2eab26d6
When following all the steps from the above link I was successfully able to fix the issue. Also reiterating the steps I followed here.
conda info
conda update conda
conda activate my_env (I already had an environment created from Anaconda UI with python 3.9.7)
activate my_env
conda install libpython m2w64-toolchain -c msys2
conda install numpy cython matplotlib scipy pandas -c conda-forge
pip install pystan
Please install the prophet, then import as like.
from prophet import Prophet
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
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 want to install Cartopy on Windows, which has some dependencies according to http://scitools.org.uk/cartopy/docs/latest/installing.html#installing.
When using pip install cartopy in the cmd prompt, it gives an error where it wants me to install GEOS 3.3.3 and Proj4 4.9.0.
I've downloaded geos-3.6.2.tar.bz2, but I cannot figure out how to install it. I've extracted the files, used cd to the right directory.
What can I do to install it correctly?
Is there an easy way to install Cartopy?
Do you have Anaconda?
try:
conda install -c scitools cartopy
When you are installing through pip then better install using Binary file .Whl extension file
You can find all the package binary file below.
Especially in case of Cartopy installation through pip, install cartopy using binary wheel file.
https://www.lfd.uci.edu/~gohlke/pythonlibs/
If you are on Windows and you have installed Anaconda, on your search, type "Anaconda prompt" and then type this command
conda install -c conda-forge cartopy
I tried conda install -c conda-forge cartopy
and tried installing it through Anaconda navigator 1.9.12 and I scoured multitude of ways and tried them all and failed. Only this
conda install -c scitools cartopy
works.
I first ran this conda update -n base -c defaults condo following instructions provided among responses here:Updating Anaconda fails: Environment Not Writable Error
I want to be able to create graphical decision trees in Python, and I am currently trying to install both pydot and graphviz.
I am using Anaconda as my environment (along with Spyder), and have tried to run the following lines of code
conda install -c https://conda.binstar.org/t/TOKEN/j14r pydot
with the result
Error: unknown host: http://repo.continuum.io/pkgs/pro/win-32/
Error: unknown host: http://repo.continuum.io/pkgs/free/win-32/
Error: unknown host: https://conda.binstar.org/t/TOKEN/j14r/win-32/
Error: No packages found matching: pydot
I have also tried using pip install pydot and pip install graphviz with similar results:
Downloading/unpacking pydot
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pydot
Cleaning up...
No distributions at all found for pydot
Storing complete log in [...]
I am getting pretty bored at trying to figure out how to go about this, so I was hoping anyone out there could give me some tips perhaps.
Thanks
I had the same issue and solved it by (order is important):
Installing graphviz, simply via sudo apt-get install graphviz
Installing graphviz for Python via conda sudo ~/anaconda2/bin/conda install graphviz
Finally, by installing pydot using conda sudo ~/anaconda2/bin/conda install pydot
This answer is overdue but this post helped me (together with this one that mentions the installation order), so hopefully this answer will help someone else. I'm using Ubuntu 14.04 and Python 2.7.
P.S. apparently, there could be some issues with step 1 of the above algorithm, this post mentions how to fix them.
the problem is solved for me by installing
pydot conda install -c anaconda pydot
graphviz conda install -c conda-forge python-graphviz
pip install pydotplus
conda install -c anaconda graphviz=2.38.0
(see here for latest versions https://anaconda.org/anaconda/graphviz)
worked for me.
pip install pydot should now install version 1.2.3 from PyPI. Since the time of the OP, a distribution for pydot has been uploaded to PyPI.
Please see if this works for you...
1) Open the "Anaconda Prompt" by simply pressing WINDOW + S (for Windows OS Users) and type CMD. Then Select accordingly.
2) Type the command "pip install pydot"
3) Follow the onscreen information.
NOTE: I'm using Conda version 4.3.21 and Python 3.6
And Decision Tree Implementation below:
Graphical Visualization of the Decision Tree
installing graphviz first and then installing pydotplus on mac, helped me. I was not able to install pydot through pip or conda or even through jupiter notebook.
after installing, imported pydotplus(instead of usual pydot)