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

Here are some issues when "python -m pip install -U audiocraft" #499

Open
tzhou8 opened this issue Oct 27, 2024 · 7 comments
Open

Here are some issues when "python -m pip install -U audiocraft" #499

tzhou8 opened this issue Oct 27, 2024 · 7 comments

Comments

@tzhou8
Copy link

tzhou8 commented Oct 27, 2024

Collecting scipy>=1.2.0 (from librosa->audiocraft==1.4.0a1)
Using cached http://nexus.sii.shaipower.online/repository/pypi/packages/scipy/1.5.4/scipy-1.5.4-cp39-cp39-manylinux1_x86_64.whl (25.8 MB)
Using cached http://nexus.sii.shaipower.online/repository/pypi/packages/scipy/1.5.3/scipy-1.5.3.tar.gz (25.2 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [67 lines of output]
Looking in indexes: http://nexus.sii.shaipower.online/repository/pypi/simple/
Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_system != "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.6" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.8" and platform_system == "AIX"' don't match your environment
Collecting wheel
Using cached http://nexus.sii.shaipower.online/repository/pypi/packages/wheel/0.44.0/wheel-0.44.0-py3-none-any.whl (67 kB)
Collecting setuptools
Using cached http://nexus.sii.shaipower.online/repository/pypi/packages/setuptools/75.2.0/setuptools-75.2.0-py3-none-any.whl (1.2 MB)
Collecting Cython>=0.29.18
Using cached http://nexus.sii.shaipower.online/repository/pypi/packages/cython/3.0.11/Cython-3.0.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB)
Collecting numpy==1.17.3
Using cached http://nexus.sii.shaipower.online/repository/pypi/packages/numpy/1.17.3/numpy-1.17.3.zip (6.4 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting pybind11>=2.4.3
Using cached http://nexus.sii.shaipower.online/repository/pypi/packages/pybind11/2.13.6/pybind11-2.13.6-py3-none-any.whl (243 kB)
Building wheels for collected packages: numpy
Building wheel for numpy (setup.py): started
Building wheel for numpy (setup.py): finished with status 'error'
error: subprocess-exited-with-error

    × python setup.py bdist_wheel did not run successfully.
    │ exit code: 1
    ╰─> [15 lines of output]
        Running from numpy source directory.
        Traceback (most recent call last):
          File "<string>", line 2, in <module>
          File "<pip-setuptools-caller>", line 34, in <module>
          File "/tmp/pip-install-j7z9p3rl/numpy_a66b363d881c46c0a5c6c8c7d5569fbd/setup.py", line 443, in <module>
            setup_package()
          File "/tmp/pip-install-j7z9p3rl/numpy_a66b363d881c46c0a5c6c8c7d5569fbd/setup.py", line 422, in setup_package
            from numpy.distutils.core import setup
          File "/tmp/pip-install-j7z9p3rl/numpy_a66b363d881c46c0a5c6c8c7d5569fbd/numpy/distutils/core.py", line 26, in <module>
            from numpy.distutils.command import config, config_compiler, \
          File "/tmp/pip-install-j7z9p3rl/numpy_a66b363d881c46c0a5c6c8c7d5569fbd/numpy/distutils/command/config.py", line 20, in <module>
            from numpy.distutils.mingw32ccompiler import generate_manifest
          File "/tmp/pip-install-j7z9p3rl/numpy_a66b363d881c46c0a5c6c8c7d5569fbd/numpy/distutils/mingw32ccompiler.py", line 34, in <module>
            from distutils.msvccompiler import get_build_version as get_build_msvc_version
        ModuleNotFoundError: No module named 'distutils.msvccompiler'
        [end of output]
  
    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for numpy
    Running setup.py clean for numpy
    error: subprocess-exited-with-error
  
    × python setup.py clean did not run successfully.
    │ exit code: 1
    ╰─> [10 lines of output]
        Running from numpy source directory.
  
        `setup.py clean` is not supported, use one of the following instead:
  
          - `git clean -xdf` (cleans all files)
          - `git clean -Xdf` (cleans all versioned files, doesn't touch
                              files that aren't checked into the git repo)
  
        Add `--force` to your command to use it anyway if you must (unsupported).
  
        [end of output]
  
    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed cleaning build dir for numpy
  Failed to build numpy
  ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (numpy)
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

@Apple-jun
Copy link

the same issue

1 similar comment
@zjcqn
Copy link

zjcqn commented Oct 31, 2024

the same issue

@zjcqn
Copy link

zjcqn commented Oct 31, 2024

the same issue

I have finish this problem by manually installing the package in the requirements.txt file and adjust the version number if encountering errors.

@tzhou8
Copy link
Author

tzhou8 commented Oct 31, 2024

the same issue

I have finish this problem by manually installing the package in the requirements.txt file and adjust the version number if encountering errors.

pld provide your all packages requirments and your env, I'm installing on my mac, thx in advance.

@ndrw1221
Copy link

ndrw1221 commented Nov 7, 2024

I had the same issue.
Solved by manually installing the packages listed in #493 comment and run pip install -U audiocraft again.

@simonrouard
Copy link
Contributor

Hi, we fixed the environment requirements, could you check that it works now?

@ndrw1221
Copy link

ndrw1221 commented Dec 3, 2024

Hi, I checked and it works fine now. Thank you!

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

5 participants