Closed rijobro closed 3 years ago
However,
pip uninstall -y nimpa nipet
cd <nipet source>
pip install --no-binary :all: --verbose -e .
python -c "from niftypet import nipet"
does work. It seems that nipet
wants to install nimpa
anyway, and pre-installing it just creates problems.
FYI if you run import X
in a directory containing X.py
or X/__init__.py
this can confuse python.
I presume you ran python -c "from niftypet import nipet"
in nimpa
's source directory so Python couldn't find nipet
. Simply cd
elsewhere to fix.
I haven't got any way of checking now, but the fact that it worked after uninstalling makes me think that it wasn't related to which folder I was in.
Normally I simply
pip install niftypet
and everything works fine. I want to modify the source code, sogit clone
bothnipet
andnimpa
. I usepip install
as per the readthedocs and the readme:and then test:
Error: