openai / jukebox

Code for the paper "Jukebox: A Generative Model for Music"
https://openai.com/blog/jukebox/
Other
7.81k stars 1.4k forks source link

Installation Error,Packages not found #281

Open eric31512 opened 1 year ago

eric31512 commented 1 year ago

I don't know how to fix it

C:\Users\User>conda install pytorch==1.4.0 torchvision==0.5.0 cudatoolkit=10.0 -c pytorch -c conda-forge Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

mr-sudo commented 1 year ago

Hey any luck? I'm experiencing the same thing

cyberlife64 commented 1 year ago

Same problem with me, you got it working?

mr-sudo commented 1 year ago

No luck on my end 🫠

mr-sudo commented 1 year ago

No luck on my end 🫠, I ended up having trouble with running due to the specs on my machine in general, although one thing that seemed to help progress things a bit was trying to install these packages through pip instead

Panos-Jr commented 1 year ago

Installing with pip is a possible option, have you considered conda update --all? It could possibly work, I’m not sure.

cyberlife64 commented 1 year ago

Installing with pip is a possible option, have you considered conda update --all? It could possibly work, I’m not sure.

Updating doesn't work as well, I tried that already

carlosaln commented 7 months ago

Here's what initially worked for me:

pip install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html
conda install cudatoolkit=10.0

However, this installs old versions of the torch libraries, which are incompatible with the latest Nvidia NCCL library, so you'll just get an error further down the road. What I ended up doing (which works) is I installed the latest libaries for everything. Taking the instructions in the main README, that would look something like:

# Required: Sampling
conda create --name jukebox python=3.11.8
conda activate jukebox
pip3 install mpi4py
pip3 install torch torchvision torchaudio
conda install cudatoolkit
git clone https://github.com/openai/jukebox.git
cd jukebox
pip install -r requirements.txt
pip install -e .

# Required: Training
conda install av -c conda-forge 
pip install ./tensorboardX

Note I am not a AI/ML expert but do know my way around a terminal, and this worked. Perhaps I could have used conda/pip for everything, but that's just how I ended up doing things. Your results may vary.