Unable to install prettytable in anaconda - python

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.

Related

Python 3.6.4 ModuleNotFoundError: No module named 'wordcloud'

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

How to install fbprophet for Python 3.7 (anaconda distribution)

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.

Conda dlip:UnsatisfiableError during installation on Windows 10 using conda

I'm setting anaconda using python 3.6. I want to install dlib package. When I run ;
#conda install -c menpo dlib
I have had :
#Solving environment: failed
#UnsatisfiableError: The following specifications were found to be in
conflict:
#- backports.os
#- dlib
# - typed-ast
Use "conda info " to see the dependencies for each package.
I also tried to remove all the packages which are list on the conflicts and re-run the installation comment but didnt work :/ Any idea?

Conda install basemap error

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.

Install utils package in python facing with error Package not found

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 *

Categories