Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing lightweight_mmm #57

Closed
chsheth opened this issue Aug 23, 2022 · 4 comments
Closed

Installing lightweight_mmm #57

chsheth opened this issue Aug 23, 2022 · 4 comments
Assignees

Comments

@chsheth
Copy link

chsheth commented Aug 23, 2022

Hi, I get the following error when I install the packages. I am using anaconda terminal to run these commands. Can you please advise? Thank you.


(base) PS C:\Users\csheth> pip install lightweight_mmm
Collecting lightweight_mmm
Using cached lightweight_mmm-0.1.5-py3-none-any.whl (63 kB)
Collecting matplotlib==3.3.4
Using cached matplotlib-3.3.4-cp39-cp39-win_amd64.whl (8.5 MB)
Collecting seaborn==0.11.1
Using cached seaborn-0.11.1-py3-none-any.whl (285 kB)
Collecting sklearn
Using cached sklearn-0.0.tar.gz (1.1 kB)
Preparing metadata (setup.py) ... done
Collecting absl-py
Using cached absl_py-1.2.0-py3-none-any.whl (123 kB)
Requirement already satisfied: pandas>=1.1.5 in c:\users\csheth\anaconda3\lib\site-packages (from lightweight_mmm) (1.3.4)
Requirement already satisfied: numpy>=1.12 in c:\users\csheth\anaconda3\lib\site-packages (from lightweight_mmm) (1.21.5)
Requirement already satisfied: scipy in c:\users\csheth\anaconda3\lib\site-packages (from lightweight_mmm) (1.7.1)
Collecting lightweight_mmm
Using cached lightweight_mmm-0.1.4-py3-none-any.whl (60 kB)
Collecting frozendict
Using cached frozendict-2.3.4-cp39-cp39-win_amd64.whl (35 kB)
Collecting lightweight_mmm
Using cached lightweight_mmm-0.1.3-py3-none-any.whl (53 kB)
Using cached lightweight_mmm-0.1.2-py3-none-any.whl (48 kB)
Collecting tensorflow==2.5.3
Downloading tensorflow-2.5.3-cp39-cp39-win_amd64.whl (428.3 MB)
------------------------------------- 428.3/428.3 MB 1.3 MB/s eta 0:00:00
Requirement already satisfied: arviz in c:\users\csheth\anaconda3\lib\site-packages (from lightweight_mmm) (0.11.2)
Requirement already satisfied: seaborn in c:\users\csheth\anaconda3\lib\site-packages (from lightweight_mmm) (0.11.2)
Collecting lightweight_mmm
Using cached lightweight_mmm-0.1.1-py3-none-any.whl (41 kB)
Using cached lightweight_mmm-0.1.0-py3-none-any.whl (40 kB)
Collecting jax>=0.2.21
Using cached jax-0.3.16.tar.gz (1.0 MB)
Preparing metadata (setup.py) ... done
ERROR: Cannot install lightweight-mmm==0.1.0, lightweight-mmm==0.1.1, lightweight-mmm==0.1.2, lightweight-mmm==0.1.3, lightweight-mmm==0.1.4 and lightweight-mmm==0.1.5 because these package versions have conflicting dependencies.

The conflict is caused by:
lightweight-mmm 0.1.5 depends on jaxlib>=0.3.14
lightweight-mmm 0.1.4 depends on jaxlib>=0.3.14
lightweight-mmm 0.1.3 depends on jaxlib>=0.3.0
lightweight-mmm 0.1.2 depends on jaxlib>=0.3.0
lightweight-mmm 0.1.1 depends on jaxlib>=0.3.0
lightweight-mmm 0.1.0 depends on tensorflow==2.4.1

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

@pabloduque0
Copy link
Collaborator

Hi @chsheth
By the looks of the paths it looks like you are trying to install it on Windows.

You can take a look at this issue on JAX to install JAX first and then you can go ahead to installing LMMM. However I highly recommend to try using a Linux machine or Colab if you dont have access to one.

@pabloduque0 pabloduque0 self-assigned this Aug 24, 2022
@mjtriggs
Copy link

Just commenting as I had the same issue yesterday. I resolved by using WSL on my Microsoft machine.

@chsheth
Copy link
Author

chsheth commented Aug 24, 2022

Hi @chsheth By the looks of the paths it looks like you are trying to install it on Windows.

You can take a look at this issue on JAX to install JAX first and then you can go ahead to installing LMMM. However I highly recommend to try using a Linux machine or Colab if you dont have access to one.

Thank you @pabloduque0, @mjtriggs. I used Colab and it worked and I believe for Windows, wsl might work as mjtriggs indicated.

@chsheth chsheth closed this as completed Aug 24, 2022
@chsheth
Copy link
Author

chsheth commented Aug 24, 2022

Thank you @pabloduque0, @mjtriggs. I used Colab and it worked and I believe for Windows, wsl might work as mjtriggs indicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants