PacktPublishing / Machine-Learning-Engineering-with-Python-Second-Edition

MIT License
188 stars 132 forks source link

unable to get the conda env for the first chapter to be setup properly due to inability to install httpstan package #69

Open wisemoon88 opened 10 months ago

wisemoon88 commented 10 months ago

I've tried running conda env create -f mlewp-chapter01.yml on both windows and macos platform and i keep stumble upon the same error

/
Pip subprocess error:
ERROR: Ignored the following versions that require a different python version: 0.6.2 Requires-Python >=2.7.0.0,<2.8.0.0,>=3.4.0.0,<4.0.0.0; 0.6.3 Requires-Python >=2.7.0.0,<2.8.0.0,>=3.4.0.0,<4.0.0.0        
ERROR: Could not find a version that satisfies the requirement httpstan==4.9.1 (from versions: none)
ERROR: No matching distribution found for httpstan==4.9.1
AlexandrOvcharenko commented 7 months ago

same problem on m1 pro

tried to install httpstan manually from this repo https://github.com/stan-dev/httpstan/releases/tag/4.9.1

by executing the following command on extracted files

make python3 -m pip install poetry python3 -m poetry build python3 -m pip install dist/*.whl

and the package seems to be installed successfully

python3 -m pip show httpstan
Name: httpstan Version: 4.9.1 Summary: HTTP-based interface to Stan, a package for Bayesian inference. Home-page: https://mc-stan.org Author: Allen Riddell Author-email: riddella@indiana.edu License: ISC Location: /opt/anaconda3/lib/python3.11/site-packages Requires: aiohttp, appdirs, marshmallow, numpy, setuptools, webargs Required-by:

but still facing the issue

Pip subprocess error: ERROR: Ignored the following versions that require a different python version: 0.6.2 Requires-Python >=2.7.0.0,<2.8.0.0,>=3.4.0.0,<4.0.0.0; 0.6.3 Requires-Python >=2.7.0.0,<2.8.0.0,>=3.4.0.0,<4.0.0.0
ERROR: Could not find a version that satisfies the requirement httpstan==4.9.1 (from versions: none) ERROR: No matching distribution found for httpstan==4.9.1

AlexandrOvcharenko commented 7 months ago

@wisemoon88 pls try to change the versions of two packages in mlewp-chapter01.yml to

 - prophet==1.1.5
 - holidays==0.45

and then create new env with conda again

conda env create –-file mlewp-chapter01.yml

if env already exist - pls remove if before recreation

conda env remove --name mlewp-chapter01

after version changes I was able to create env successfully