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

Cargo, the Rust package manager, is not installed or is not on PATH. #147

Open
massonix opened this issue Jun 7, 2024 · 6 comments
Open

Comments

@massonix
Copy link

massonix commented Jun 7, 2024

Hi pycisTopic team,

Thanks for developing this package. I'm trying to install it following the installation guide as follows:

git clone https://github.com/aertslab/pycisTopic.git
cd pycisTopic
pip install -e .

However I get the following error

Collecting pybigtools (from scatac-fragment-tools->pycisTopic==2.0a0)
  Downloading pybigtools-0.1.4.tar.gz (2.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 9.1 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
     
      Cargo, the Rust package manager, is not installed or is not on PATH.
      This package requires Rust and Cargo to compile extensions. Install it through
      the system's package manager or via https://rustup.rs/
     
      Checking for Rust toolchain....
      [end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Could you please help me out with this?

Thanks!

@massonix massonix changed the title Cargo, the Rust package manager Cargo, the Rust package manager, is not installed or is not on PATH. Jun 7, 2024
@ghuls
Copy link
Member

ghuls commented Jun 10, 2024

Do you have a recent version of pip (as that one should install binary versions of packages by default)?

Upgrade pip with:

pip install -U pip

Which version of python and which OS are you using?

@davidhbrann
Copy link

As described in the error message, if you follow the instructions to install rust via rustup here and then rerun pip install -e . you should be able to avoid this error.

@sherlockmoriarity
Copy link

i m too having the same problem , how did you solve

@ghuls
Copy link
Member

ghuls commented Aug 27, 2024

@sherlockmoriarity Which version of python, pip do you have and on which OS are you running it?

@Fabian-J-Escalante
Copy link

Fabian-J-Escalante commented Sep 25, 2024

Here are the ways you can fix it.

  • First make sure your python is 64 bits and not 32 bits. If you have a 32 bits python change it to 64 bits and restart your shell by closing and opening a new window.

  • Update pip using the following command: pip install -U pip (mentioned above)

  • Install rust https://www.rust-lang.org/tools/install follow all the steps (takes about 4 minutes) and then close your shell window and open a new one. Make sure that the PATH environment variable includes Cargo's bin directory (%USERPROFILE%.cargo\bin).

@ivanovaalyona
Copy link

hinya sovet

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

6 participants