aertslab / pycisTopic

pycisTopic is a Python module to simultaneously identify cell states and cis-regulatory topics from single cell epigenomics data.
Other
58 stars 12 forks source link

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

Open massonix opened 5 months ago

massonix commented 5 months ago

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!

ghuls commented 5 months ago

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 commented 5 months ago

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 commented 2 months ago

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

ghuls commented 2 months ago

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

Fabian-J-Escalante commented 1 month ago

Here are the ways you can fix it.

ivanovaalyona commented 6 days ago

hinya sovet