Is it possible to add native libraries that aren't part of the core like requests?

I’m trying to import the requests module into python script blocks but I can’t get it to work.

The solution for older Dynamo was supposed to be adding the library path to the path variable:

import sys
sys.path.append("C:\\Users\\Administrator\\AppData\\Local\\python-3.8.10-embed-amd64\\Lib")

I still got the same missing module error. I also tried it with adding the pip/_vendor directory to path which changes the error to no module named pip.

I installed pip manually using get-pip.py which installed without error but when I run the executable it throws the no module named pip error.

Is it possible to add libraries, reinstall CPython with the requests module or change the python to an instance that has requests installed?

Thanks

1 Like

Hello,

I had a similar issue… in my case it worked well!

KR

Andreas

Hello @Sollie and welcome
this links below may be help you

1 Like

Thanks, @c.poupin .This solved my problem.