m-beau / NeuroPyxels

NeuroPyxels (npyx) is a python library built for electrophysiologists using Neuropixels electrodes. This package stems from the need of a pythonist who really did not want to transition to MATLAB to work with Neuropixels: it features a suite of core utility functions for loading, processing and plotting Neuropixels data.
GNU General Public License v3.0
109 stars 26 forks source link

Error in "dealing with cupy" #377

Closed m-azzi closed 4 months ago

m-azzi commented 6 months ago

I'm having some trouble with the installation. When I run the first part of the code (ending with " python -c 'import npyx'") I don't seem to get any errors, just this warning: "UserWarning: CUDA path could not be detected. Set CUDA_PATH environment variable if CuPy fails to load."

When I move on to test the installation, "nvidia-smi" seems to work fine, but "nvcc" returns this error: "nvcc : The term 'nvcc' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

How do I resolve this? I'm quite new to coding, so I apologize if the answer is obvious.

m-beau commented 6 months ago

Hi there,

You don't have to install cupy (CUDA for python, to deal with functions which run on your GPU) if you are not planning to use the heavy duty file-wide high-pass filtering functions. I would stick to the first part of the installation only, 'pip install npyx', ideally in a fresh conda environment! All the core functions of npyx run fine without cupy.

if you do need cupy, it can be a pain to install and it depends on your hardware, you can ask another question here

m-beau commented 4 months ago

Closing issue as inactive.