Using python in D

JN 666total at wp.pl
Fri Jun 7 10:55:22 UTC 2019


On Friday, 7 June 2019 at 05:04:30 UTC, rnd wrote:
> On Friday, 7 June 2019 at 04:39:14 UTC, rikki cattermole wrote:
>> On 07/06/2019 3:54 PM, rnd wrote:
>>> 
>>> How should I 'initialize python' ?
>>
>> The example is probably a good place to begin.
>>
>> https://github.com/ariovistus/pyd/blob/master/examples/simple_embedded/hello.d
>
> Thanks for the link. After putting in missing statements, it 
> started running but reported:
>
>      exceptions.ImportError: No module named pandas
>
> I believe pyd is working on Python2 while I have pandas 
> installed in Python3.
>
> How can I specify Python version 3 in pyd?

https://github.com/ariovistus/pyd

"To use with dub, either specify the relevant subConfiguration 
for your python version, or run source pyd_set_env_vars.sh <your 
python> on linux or pyd_set_env_vars.bat <your python> on windows 
to set the relevant environment variables and use the env 
subConfiguration."


More information about the Digitalmars-d-learn mailing list