Has anyone successfully tried installing fbprophet on anaconda?
When i try to install it, i get an incompatibility error.
I'd be very surprised if there isn't fbprophet for python 3.7 +
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
fbprophet -> python[version='2.7.|3.5.|3.6.*']
Your python: python=3.7
If python is on the left-most side of the chain, that's the version you've asked
for.When python appears to the right, that indicates that the thing on the left is s
omehow not available for the python version you are constrained to. Note that conda wil
l not change your python version to a different minor version unless you explicitly sp
ecify that.
There is a version for python 3.7, and I am able to install successfully. Can you try to use conda-forge and defaults channels together and see if it is available?
conda install fbprophet -c conda-forge -c defaults --override-channels
I had problems when using -c conda-forge only, so i suspect the necessary compatible packages are spread across different channels/locations.
These are the versions that are compatible with Python 3.7:
(ds_tensorflow) >>conda search fbprophet -c conda-forge -c defaults --override-channels | grep py37
fbprophet 0.5 py37h6538335_0 conda-forge
fbprophet 0.5 py37h6538335_1 conda-forge
fbprophet 0.5 py37h6538335_2 conda-forge
fbprophet 0.5 py37h6538335_3 conda-forge
fbprophet 0.6 py37h6538335_0 conda-forge
I have managed to fix this. I downloaded the fbprophet zipped package for Windows from the github repo, extracted the contents and launched anaconda, cd to condabin, then ran pip install specifying the path to the package folder.
Hope this helps anyone stuck in the same situation !!!
Regards,
Ochen
Related
I have a conda enviroment called Vik. One of the packages installed is TBB (tbb=2018.0.5). I want to upgrade to version 2019.5 or later because my code returns this warning. NumbaWarning: The TBB threading layer requires TBB version 2019.5 or later
Thus, I went on and installed the latest TBB (at least this is what I believe). I havent kept the original message log but It looked normal to me. I am under the impression that the package was successfully installed. When I try to install it again this is what I get
(base) C:\Windows\system32>conda activate Vik
(Vik) C:\Windows\system32>conda install -c conda-forge tbb
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
but it appears that i am still calling the old version 2018.0.5. The numba warning that I need to upgrade tbb is still there when I run my application and conda env export -n Vik > environment.yml generates the following list. At the bottom of the list below you can clearly see that the package hasnt been updated. Note that the package doesnt appear under the pip section of the environment.yml shown below, hence it should be a conda package.
What am I doing wrong?
name: Vik
channels:
- anaconda
- conda-forge
- defaults
dependencies:
- anyio=3.2.0=py37h03978a9_0
- argon2-cffi=20.1.0=py37he774522_1
- async_generator=1.10=py37h28b3542_0
- attrs=21.2.0=pyhd3eb1b0_0
- babel=2.9.1=pyh44b312d_0
- backcall=0.2.0=py_0
.....
.....
.....
- sqlite=3.35.3=h2bbff1b_0
- tbb=2018.0.5=he980bc4_0
- terminado=0.9.1=py37_0
The conda install -c conda-forge tbb directive translates to the imperative
With the channel conda-forge prioritized, ensure that the currently activated environment has some version of tbb installed.
Since tbb is already installed, that directive is already satisfied.
If you want a newer version, either use conda update -c conda-forge tbb or specify a version, e.g., conda install -c conda-forge tbb=2021.
I'm relatively new to Jupyter Notebook and have been struggling with python versions with Jupyter Notebook.
I installed seaborn but import error occurred saying no seaborn package found. It shows on upper right corner of Jupyter "Python 3" but it returned Python 2.7 when I run !python --version. Also when I run print(sys.path), the result is below.
['', '/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/mysql-0.0.1-py3.5.egg', '/Library/Frameworks/Python.framework/Versions/3.5/lib/python35.zip', '/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5', '/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/plat-darwin', '/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/lib-dynload', '/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages', '/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/IPython/extensions', '/Users/Cynthia/.ipython']
My guess is that my python kernel isn't pointing correctly to python3 although notebook shows it's python3. Could someone pls help me solve this? It would be helpful if there could be code to run in Jupyter cell. Thank you!
When you run python --version, It won't spit python 3.5.x, because python refers to python2 unless you aliased python as python3. So it makes sense that you see python 2.7.x when you run python --version.
As for py2 when you run conda env list, they are env names you set. They are just names, not python versions.
What needs to be done I think is to find out where your jupyterlab is installed, which I think in (base) environment. In your base environment, run conda list, where you will see a list like this:
(base) ➜ test conda list
# packages in environment at /Users/gwanghyeongim/.pyenv/versions/miniconda3-latest:
#
# Name Version Build Channel
brotlipy 0.7.0 py38haf1e3a3_1000
ca-certificates 2020.6.24 0
certifi 2020.6.20 py38_0
cffi 1.14.1 py38hed5b41f_0
chardet 3.0.4 py38_1003
conda 4.8.4 py38_0
conda-package-handling 1.6.1 py38h1de35cc_0
cryptography 2.9.2 py38ha12b0ac_0
idna 2.10 py_0
libcxx 10.0.0 1
libedit 3.1.20191231 h1de35cc_1
libffi 3.3 hb1e8313_2
ncurses 6.2 h0a44026_1
openssl 1.1.1g h1de35cc_0
pip 20.2.2 py38_0
pycosat 0.6.3 py38h1de35cc_1
pycparser 2.20 py_2
pyopenssl 19.1.0 py_1
pysocks 1.7.1 py38_1
python 3.8.3 h26836e1_1
python.app 2 py38_10
readline 8.0 h1de35cc_0
requests 2.24.0 py_0
#and so on...
See if you see jupyterlab in the list. If so, your jupyter notebook is in (base) environment.
Now the most likely scenario is you installed seaborn in py2 environment. That means you dind't install seaborn in your base environment. Install it by running conda install seaborn or pip install seaborn.
If something didn't work so far, try runnning conda upgrade --all -y to upgrade packages. It might be from collision between deprecated packages.
P.S
My suggestion is you create a separate environment and run packages on it.
Run conda create -n your_env_name to do so(replace your_env_name to the name you want set)
Activate by running conda activate the_env_you_just_created
If 2 doesn't work somehow, make sure you run conda init your_shell, where your_shell can be found by running echo $SHELL, where the last word after / is your shell.
Make sure you see (your_env_name) at the first part of command prompt. If so, your env is activated. Now install packages on here and do your project, rather than on base environment.
Since you mentioned you use conda you can do something like the following. From your terminal:
conda create -n sb python=3
conda activate sb
conda config --env --add channels conda-forge
conda install -y pandas matplotlib numpy scipy seaborn jupyterlab # some default packages
jupyter lab
Whenever you want to use this conda environment again you have to do
conda activate sb
before you can run jupyter lab.
Note, if you didn't changed the default, you should see your terminal prompt changing when activating an environment, i.e. the name of the environment comes before your prompt. In our case here (sb) <prompt>.
To solve the issue with your current conda environment, more information is needed.
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
I am trying to install pytorch in Anaconda to work with Python 3.5 in Windows. Following the instructions in pytorch.org I introduced the following code in Anaconda:
pip3 install torch torchvision
But the following error came in:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\sluis\AppData\Local\Temp\pip-install-qmrvz7b9\torch\
By searching on the web I found out that it may be because of setuptools being out of date but I checked and have it updated. I also tried:
conda install -c peterjc123 pytorch cuda80
But the following error arise:
The following specifications were found to be in conflict:
- pytorch
Use "conda info <package>" to see the dependencies for each package.
I also tried to load the pytorch's tar.bz2 file which I download in the following website:
anaconda.org/peterjc123/pytorch/files
And then just do:
$ conda install filename.tar.bz2
But I got the following error:
Error: HTTPError: 404 Client Error: None for url: file:///C|/Users/sluis/pytorch-0.3.1-py36_cuda80_cudnn6he774522_2.tar.bz2: file:///C|/Users/sluis/pytorch-0.3.1-py36_cuda80_cudnn6he774522_2.tar.bz2
I am quite new to this programming world so I don't really know how to dig more on the errors. Anyone knows how to get pytorch installed?
Edit: As suggested in the comments I tried:
conda install pytorch torchivsion -c pytorch
And I got the following error:
Error: Packages missing in current win-64 channels:
- pytorch
- torchvision
I did:
anaconda search -t conda torchvision
And tried to install dericlk/torchvision using the following command:
conda install -c derickl torchvision
But I am getting the same error:
Error: Package missing in current win-64 channels:
- torchvision
I couldn't find any torchvisionpackages for win-64.
conda list is giving me the following:
# packages in environment at C:\Users\aaaa\AppData\Local\Continuum\Anaconda3\envs\torchenv2:
#
mkl-include 2018.0.2 1 anaconda
certifi 2016.2.28 py35_0
cffi 1.10.0 py35_0
cmake 3.6.3 vc14_0 [vc14]
openmp 2018.0.0 intel_8 intel
mkl 2017.0.3 0
numpy 1.13.1 py35_0
pip 10.0.0 <pip>
pip 9.0.1 py35_1
pycparser 2.18 py35_0
python 3.5.4 0
pyyaml 3.12 py35_0
setuptools 36.4.0 py35_1
typing 3.6.2 py35_0
vc 14 0
vs2015_runtime 14.0.25420 0
wheel 0.29.0 py35_0
wincertstore 0.2 py35_0
zlib 1.2.11 vc14_0 [vc14]
=======
Go to the official PyTorch.org and follow the steps accordingly.
Select your preferences and you will see an appropriate command below on the page.
If you don't have GPU in the system, set CUDA as None or CPU
Example command:
conda install pytorch-cpu torchvision-cpu -c pytorch
The following worked for me. First install MKL:
conda install -c anaconda mkl
After this, install pytorch and torchvision:
conda install -c pytorch pytorch torchvision
For windows python 3.6 and above without cuda
pip install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
Can you please try with below steps
conda create -n pytorch_env python=3.5
source activate pytorch_env
conda install -c soumith pytorch
python
> import torch
You can even find pytorch after you execute command conda list.
For linux, cuda9.0, python3.6:
pip3 install http://download.pytorch.org/whl/cu90/torch-0.3.1-cp36-cp36m-linux_x86_64.whl
pip3 install torchvision
For other cuda/python version: check website: https://ptorch.com/news/145.html
try updating the base conda package with the following command,then you can try reistalling it.
conda update --all
conda update -n base conda
For me it worked doing this:
Uninstall the previous version: go to C:\users\username\anaconda3 and run the anaconda-uninstall.exe
Install again anaconda
then run the following commands on the anaconda pompt:
conda create -n my_env python=2.7
conda activate my_env
start the gui app
conda install -c peterjc123 pytorch
anaconda-navigator
For Readers live in 2021/06/xx:
use pip3 install torch
As an update, now the Pytorch official site has the right version depending on your system:
https://pytorch.org/
I recommend using the official website for installation. Some of the previous awnsers may lead to a version that is not adequate.
After Activating conda environment
Use below command
python3 -m pip install torch torchvision
Example
(torchenv) ubuntu#user :~$ python3 -m pip install torch torchvision
Visit https://anaconda.org/pytorch/torchvision and you will find the solution
conda install -c pytorch torchvision
Try running:
conda install -c pytorch pytorch
I used to have pytorch working for python 3 on OS X but now I can't get it to install automatically for some reason (I don't want to do from source).
I did:
conda install pytorch torchvision -c pytorch
as the website suggested... then I got a mkl error so I installed it but it still complains about it:
(FTIR_py3) brandomiranda~/home_simulation_research/FTIR/FTIR_proj $ conda install pytorch torchvision -c pytorch
Fetching package metadata ...........
Solving package specifications:
PackageNotFoundError: Package not found: '' Dependencies missing in current osx-64 channels:
- pytorch -> mkl >=2018
- torchvision -> pytorch >=0.3 -> mkl >=2018
You can search for packages on anaconda.org with
anaconda search -t conda mkl
You may need to install the anaconda-client command line client with
conda install anaconda-client
but I do have mkl:
(FTIR_py3) brandomiranda~/home_simulation_research/FTIR/FTIR_proj $ conda install mkl
Fetching package metadata .........
Solving package specifications: .
# All requested packages already installed.
# packages in environment at /Users/brandomiranda/miniconda3/envs/FTIR_py3:
#
mkl 2017.0.3 0
anyone know whats going on? it used to work a few days ago...
longer thread on pytorch forum:
https://discuss.pytorch.org/t/issues-installing-pytorch-for-os-x-with-conda/11496
As suggested in PyTorch forum, I think you should first install MKL. Your error trace also says that MKL is missing in your system. You can install MKL by doing:
$ conda install -c anaconda mkl
After this, install pytorch and torchvision by
$ conda install -c pytorch pytorch torchvision
Update conda first with conda update conda and try again.
It helped in my case.
Disclaimer: I didn't come up with this myself, but rather copied from github issue.