Closed pabloapdz closed 3 years ago
if someone can help me ...
if someone can help me ...
apparently installing pystan on windows is easier using conda.
if someone can help me ...
apparently installing pystan on windows is easier using conda.
I already installed the Pystan with pip, when I write "pip install pystan" it returns this to me:
C:\Users\Imp->pip install pystan
Requirement already satisfied: pystan in c:\users\imp-\appdata\local\programs\python\python38\lib\site-packages (2.19.1.1)
Requirement already satisfied: numpy>=1.7 in c:\users\imp-\appdata\local\programs\python\python38\lib\site-packages (from pystan) (1.19.1)
Requirement already satisfied: Cython!=0.25.1,>=0.22 in c:\users\imp-\appdata\local\programs\python\python38\lib\site-packages (from pystan) (0.29.21)
No solution yet....
Python 2.7: Doesn’t support parallel sampling. When drawing samples n_jobs=1 must be used) Python 3.5 or higher: Parallel sampling is supported MSVC compiler is not supported.
PyStan requires a working C++ compiler. Configuring such a compiler is typically the most challenging step in getting PyStan running.
it is required to have c++ compiler. with conda, you can use
conda install libpython m2w64-toolchain -c msys2
https://pystan.readthedocs.io/en/latest/windows.html#windows
could you please state what os are you using (windows build version), and python version (windows version or from wsl)? so I and others could try to replicate it.
Windows 10, version 1903, Build: 18362.959 Python version: 3.8.4rc1
giving this error even after I typed:
conda install libpython m2w64-toolchain -c msys2
Collecting korean-lunar-calendar
Using cached korean_lunar_calendar-0.2.1-py3-none-any.whl (8.0 kB)
Building wheels for collected packages: fbprophet
Building wheel for fbprophet (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Imp-\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Imp-\\AppData\\Local\\Temp\\pip-install-k11zmyyl\\fbprophet\\setup.py'"'"'; __file__='"'"'C:\\Users\\Imp-\\AppData\\Local\\Temp\\pip-install-k11zmyyl\\fbprophet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Imp-\AppData\Local\Temp\pip-wheel-2bnlj7kl'
cwd: C:\Users\Imp-\AppData\Local\Temp\pip-install-k11zmyyl\fbprophet\
Complete output (44 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\fbprophet
creating build\lib\fbprophet\stan_model
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Imp-\AppData\Local\Temp\pip-install-k11zmyyl\fbprophet\setup.py", line 120, in <module>
setup(
File "C:\Users\Imp-\anaconda3\lib\site-packages\setuptools\__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "C:\Users\Imp-\anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\Imp-\anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\Imp-\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Imp-\anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 223, in run
self.run_command('build')
File "C:\Users\Imp-\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Imp-\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Imp-\anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\Imp-\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Imp-\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Imp-\AppData\Local\Temp\pip-install-k11zmyyl\fbprophet\setup.py", line 48, in run
build_models(target_dir)
File "C:\Users\Imp-\AppData\Local\Temp\pip-install-k11zmyyl\fbprophet\setup.py", line 36, in build_models
from fbprophet.models import StanBackendEnum
File "C:\Users\Imp-\AppData\Local\Temp\pip-install-k11zmyyl\fbprophet\fbprophet\__init__.py", line 8, in <module>
from fbprophet.forecaster import Prophet
File "C:\Users\Imp-\AppData\Local\Temp\pip-install-k11zmyyl\fbprophet\fbprophet\forecaster.py", line 17, in <module>
from fbprophet.make_holidays import get_holiday_names, make_holidays_df
File "C:\Users\Imp-\AppData\Local\Temp\pip-install-k11zmyyl\fbprophet\fbprophet\make_holidays.py", line 14, in <module>
import fbprophet.hdays as hdays_part2
File "C:\Users\Imp-\AppData\Local\Temp\pip-install-k11zmyyl\fbprophet\fbprophet\hdays.py", line 13, in <module>
from convertdate.islamic import from_gregorian, to_gregorian
ModuleNotFoundError: No module named 'convertdate'
----------------------------------------
ERROR: Failed building wheel for fbprophet
@pabloapdz The best way to install in conda is with:
conda install -c conda-forge fbprophet
Otherwise, you will want to install the dependencies first: https://github.com/facebook/prophet/blob/master/python/requirements.txt
I solved my problem like that!
But right after that it started giving me an error that "fbprophet" was not a known module. Only accepted `import Prophet '
Soon, after I downloaded the fbprophet with conda, I managed to download it in pip (pip install fbprophet).
These were the steps that solved my problems.
Thanks to all contributors
@pabloapdz The best way to install in conda is with:
conda install -c conda-forge fbprophet
Otherwise, you will want to install the dependencies first: https://github.com/facebook/prophet/blob/master/python/requirements.txt
I tried using conda, but sadly, it gave me a removeError saying that ‘requests’ is a dependency of conda.
I'm trying to use pip install fbprophet from an early age but I'm getting two errors during the installation:
First:
Second....
I'm using Windows 10, and python version 3.8