tschoonj / xraylib

A library for X-ray matter interaction cross sections for X-ray fluorescence applications
https://github.com/tschoonj/xraylib/wiki
Other
120 stars 54 forks source link

add xraylib into python path #49

Closed licode closed 7 years ago

licode commented 7 years ago

I installed xraylib in my windows 10 (64 bit) system following online doc https://github.com/tschoonj/xraylib/wiki/Installation-instructions#windows-command-line-utility.

When I type xraylib in command, it works. However, it doesn't work when "import xraylib" in python. Any idea on this? Thanks!

tschoonj commented 7 years ago

The xraylib command line utility for Windows really includes just that: an executable generated using py2exe, with no (easy) way of accessing the underlying Python interpreter and/or xraylib module.

For that you will need to install the SDK, which can be installed alongside the command-line utility.

You may be interested to know that I am working on creating conda-forge xraylib packages for Windows here. They are currently working, but I want to clean up what goes into the tarball a bit better before merging it in.

licode commented 7 years ago

thanks! looking forward to the conda-forge version.

tschoonj commented 7 years ago

Available in conda-forge now.

licode commented 7 years ago

awesome! thanks a lot.