Don't know if this will work for you, but I had luck with the following:
-
Setup
-
Windows 10 64-bit
-
Strawberry Perl 5.30 64-bit
-
Anaconda with Python 3.7 64-bit
-
Add Anaconda to System (not User) Path
-
PATH\TO\ANACONDA
-
PATH\TO\ANACONDA\Library\mingw-w64\bin
-
PATH\TO\ANACONDA\Library\usr\bin
-
PATH\TO\ANACONDA\Library\bin
-
PATH\TO\ANACONDA\Scripts
-
PATH\TO\ANACONDA\bin
-
PATH\TO\ANACONDA\condabin
-
Add System (not User) Environment Variable PYTHONHOME=PATH\TO\ANACONDA
-
Run cpanm -n --interactive Inline::Python
-
The Makefile.PL seems to have issues finding proper Python info in standard install, so need to do it interactively
-
Also want to avoid testing since that relies on Proc::ProcessTable, which isn't available for Windows
-
For the python executable path, enter PATH\TO\ANACONDA\python.exe
-
For the extra libraries, select default (default = None)
-
For the python library, enter PATH\TO\ANACONDA\libs\python37.lib (will change depending on Python version you are using)
-
For the python include, enter PATH\TO\ANACONDA\include
-
Open \PATH\TO\STRAWBERRY_PERL\perl\site\lib\Inline.pm
-
Windows seems to have write permission issues, so we fix that here
-
Find the line with "if ($bin = $FindBin::Bin and"
-
Replace it with the following lines:
$bin = $FindBin::Bin;
chmod 0755, $bin;
chmod 0755, $cwd;
if (defined $bin and $bin and
I haven't had time to check this out with other versions or distributions of Perl/Python, but hopefully this will at least give a starting point. Good luck!