Microsoft Visual C++ 14.0 is required - error - pip install fbprophet - python

I am trying pip install fbprophet.
I am getting that error: "Microsoft Visual C++ 14.0 is required"
It has been discussed many times (e.g. Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
) , but seems no answer helps me.
My environment:
Windows 7
Anaconda - just installed
Mirosoft VC 2017 - just installed ( It is not version 14, but it is newer - it seems impossible to load 14 (2015) version from MS site )
MS VC Build Tools - also just installed
computer has been relauched after installations

I had the same problem but I solved using these instructions:
https://facebook.github.io/prophet/docs/installation.html
From that page, you can go to the installation instructions for PyStan (which is needed) in which is specified how to install a C++ compiler for the libraries.
tl;dr -> conda install libpython m2w64-toolchain -c msys2
It does not install MS compiler, but it worked on my case and I had also errors regarding the compiler (also had VS2017 installed). I run Windows 10 and latest Anaconda distribution. I hope it helps.

I could not solve it in the latest version of Anaconda which is 5.3.0. Upon extensive googling, I found a thread on github that advised me to go back to the previous version of Anaconda which is 5.2.0.
With that, it worked fine.
Thanks for taking time to look into it though.

VictorHMartin's answer (and following the details from the links provided) worked perfectly fine for me as long as I tried using them with Python 3.7. However, I needed to get them working with Python 3.9, where the last two conda commands failed and I had to use pip instead; here's the list of commands that worked for me:
conda create -n venv (replace venv name as you like)
activate venv
conda install libpython m2w64-toolchain -c msys2
conda install numpy pandas cython -c conda-forge
conda install matplotlib scipy plotly -c conda-forge (fbprophet optionally needs plotly for interactive plots)
pip install pystan (conda install pystan -c conda-forge failed here for P3.9)
pip install fbprophet (conda install fbprophet -c conda-forge failed here for P3.9)

I add -c conda-forge and seems succeeded.
try this:
conda install -c conda-forge fbprophet

Related

I tried following command to install python 3.9 but my anaconda won't let python go ahead oh 3.7.9 version

Conda install -c anaconda python
I tried doing it again thinking that it might go one step further but it shows that all requested packages are already installed. I also tried:
conda install -c conda-forge python and
pip3.9 install python
None of them worked for me.

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.

Install tensorflow windows - python conflict

I'm trying to install tensorflow on a windows 7 machine running anaconda python 2.7.13.
C:\>python -V
Python 2.7.13 :: Anaconda 4.3.1 (64-bit)
I start by :
conda create -n tensorflow python=2.7
This prompts me to proceed, I say yes and it installs several packages without issue (all seem to point to a 2.7 version of python).
Next I use :
conda install -c conda-forge tensorflow
Which gives me this error:
UnsatisfiableError: The following specifications were found to be in conflict:
- python 2.7*
- tensorflow -> python 3.5*
Use "conda info <package>" to see the dependencies for each package.
Any suggestions how to fix this?
EDIT: I also tried this:
C:\>pip3 install --upgrade tensorflow
'pip3' is not recognized as an internal or external command,
operable program or batch file.
Next:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whl
and got this error message:
tensorflow-1.1.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platf
orm.
Is there a reason you want to use Python 2.7? If you start with:
$ conda create -n tensorflow python=3.6
you should be able to install it how you are trying to, and run the latest release to boot! Otherwise, you might try installing TensorFlow r0.12.1 with pip:
$ source activate tensorflow
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl
$ pip install --ignore-installed --upgrade $TF_BINARY_URL
If you need GPU support, replace the export line in the above with:
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-0.12.1-cp27-none-linux_x86_64.whl
I think since TF 1.0.1 came out, pip is the preferred installation method. If I had to guess, they changed the packages available through conda-forge and the newest version does not work with Python 2.7 (or at least that version is not available on conda-forge). I could be wrong, but this should get you there either way.

how to get opencv_contrib module in anaconda

Can anyone tell me commands to get contrib module for anaconda
I need that module for
matches = flann.knnMatch(des1,des2,k=2)
to run correctly
error thrown is
cv2.error: ......\modules\python\src2\cv2.cpp:163: error: (-215) The data should normally be NULL! in function NumpyAllocator::allocate
Also I am using Anaconda openCV version 3, and strictly dont want to switch to lower versions
P.S. as suggested at many places to edit file cv2.cpp option is not available with anaconda.
I would recommend installing pip in your anaconda environment then just doing: pip install opencv-contrib-python. This comes will opencv and opencv-contrib.
Anaconda supports pip install to install package into conda environment. You can download OpenCV 3.2.0 with opencv_contrib from this well known Unofficial Windows Binaries for Python Extension Packages website. See the filename below for the right version. Then type the command in Anaconda Prompt window to install the package:
For Python 3.5 and 64-bit Windows:
pip install opencv_python‑3.2.0+contrib‑cp35‑cp35m‑win_amd64.whl
For Python 3.6 and 64-bit Windows:
pip install opencv_python‑3.2.0+contrib‑cp36‑cp36m‑win_amd64.whl
Most of the OpenCV 3.2.0 packages in Anaconda repository didn't specific if they come with opencv_contrib. The pip install approach is easier and proven, see one of the SO post. The only drawback is that conda list will not show pip installed package there but actually it's.
However, if you want to have trial on conda install, below is the command for installing OpenCV 3.2.0 for Python 3.5 or 3.6 but likely without opencv_contrib.
conda install -c conda-forge opencv=3.2.0
Hope this help.
You can try this: https://anaconda.org/michael_wild/opencv-contrib
To install this package with conda run:
conda install -c michael_wild opencv-contrib
These anaconda packages include the contrib modules with base OpenCV3. Though the file list says it's currently for Windows only!
The question is old but I thought to update the answer with the latest information. My Anaconda version is 2019.10 and build channel is py_37_0 . I used pip install opencv-python==3.4.2.17 and pip install opencv-contrib-python==3.4.2.17. Now they are also visible as installed packages in Anaconda navigator and I am able to use patented methods like SIFT etc.
Method 1: in Anaconda Prompt write this, will install opencv-contrib v4.6
pip install opencv-contrib-python
Method 2: Install previous version of opencv-contrib v3.3.1
According to https://anaconda.org/michael_wild/opencv-contrib it says it support win64bit only and python 3.6.x.
So, first you need to create new enviroment support python 3.6
conda create --opencv_contrib36 python=3.6.13
then, install the packages
conda install -c michael_wild opencv-contrib
There is repo in conda-forge which includes opencv-contrib: https://github.com/conda-forge/opencv-feedstock
To use it:
conda install --channel=conda-forge libopencv opencv py-opencv
if you run into Numpy error, try pinning more recent version (of Numpy).
This worked for me in Windows 10 on Anaconda 5.3 with python 3.6
conda install -c conda-forge opencv

Anaconda Zipline Installation Error

I've been trying to install Quantopian zipline (http://www.zipline.io/) python package through Anaconda, but have not been able to. When I run either of the lines below
conda install -c Quantopian zipline
conda install --channel https://conda.anaconda.org/Quantopian zipline
in the Anaconda prompt, I get a short pause and the message
Fetching package metadata...
Solving package specification..
Error: package missing in current win-64 channels:
-zipline
However, if I run the search command "anaconda search -t conda zipline" I can see that Quantopian/zipline has a win-64 compatible package.
I have a 64-bit Windows 8.1 with conda ver 4.0.5.
Please check if the latest zipline has been build in their channel.
the same error happened to one of my colleagues with the last version of zipline (1.1.0) and mac OsX.
We figured out that the guys at Quantopian didn't publish a build for that OS.
Workaround:
1 - try to install zipline via pip (as they say in the guidelines)
or
2 - Download the source code ad build it by yourself :-)
These are the Requirements/ Steps to Make Zipline Work:
Install Microsoft Visual C++ 2010 Express
Download and install python 3.4
Download zipline from github and Extract in C:/
Set Anaconda as project interpreter
Since zipline is compatible with Python 3.4, you need to create an environment with Python 3.4
Run this command in console of IDE:
$conda create -n python34 python=3.4 anaconda(replace py34 with the location of python34 folder)
Now run this command in console:
$activate python34 #Activates the python 3.4 environment
$pip install -e C:\GitHub\zipline (Directory where you extracted zipline)
Ingest data from quandl with below command
$zipline ingest
Hope this helps.
The latest Zipline-Trader version was released. For stable version pip install zipline-trader For more info follow docs for installation.

Categories