lbl-anp / becquerel

Becquerel is a Python package for analyzing nuclear spectroscopic measurements.
Other
43 stars 16 forks source link

pip install failure on Windows 10 #212

Closed wjvanderlip closed 3 years ago

wjvanderlip commented 3 years ago

pip install fails when trying to update llvmlite from 0.29.0 to 0.35.0

Windows 10 Enterprise Anaconda 3 distribution

when i run conda upate llvmlite it says llvmlite is constricted by anaconda requiring llvmlite==0.29.0

pip install failure
jccurtis commented 3 years ago

Hey, good to hear from you! This is due to a version pinning in becquerel and pip doesn’t know how to uninstall the conda version you installed (when you installed numba). A quick work around is to upgrade numba (and llvmlite) with conda to this version so pip will skip over it.

@markbandstra @jvavrek @cosama its time to drop python2. I haven’t been able to use bq for a while due to similar issues and am just using the drop-python2 branch.

jccurtis commented 3 years ago

Additional thoughts:

I'm able to reproduce this with:

conda create -n numba-test python==3.7
conda activate numba-test
conda install llvmlite==0.29.0
pip install becquerel

the workaround is

conda install llvmlite==0.34.0
pip install becquerel
python -c "import becquerel as bq; print(bq.__version__)"
# results in: 0.2.5
wjvanderlip commented 3 years ago

Thanks for the quick response, I will check the fix later today! I am running a gamma spec lab in my course and wanted to show the cadets the greatness of becquerel; their heads almost exploded when I showed them they can directly load an otrec output file vs copy and pasting with excel. Hope you guys are doing well out there.

-Joe

jccurtis commented 3 years ago

Happy to help! A helpful solution for the course might be to use a conda environment file which details a complete development environment (including jupyter) like bq-env.txt and installing with

conda env create -f bq-env.txt

NOTE: The env file is yaml formatted however github doesn't allow yml or yaml as an attachment extension.

jccurtis commented 3 years ago

@wjvanderlip I'm going to close this for now. Let us know if you have further issues.