fusion-engineering / inline-python

Inline Python code directly in your Rust code
https://docs.rs/inline-python
BSD 2-Clause "Simplified" License
1.15k stars 37 forks source link

Is it possible to run the python code in a virtualenv? #34

Closed m4dcoder closed 4 years ago

m4dcoder commented 4 years ago

For example, if I have a python virtualenv setup on my system with specific requirements installed. Can I configure the inline python to run script using modules installed in that virtualenv?

m-ou-se commented 4 years ago

Activating the virtual environment as usual and then running your Rust program in it should work.

m4dcoder commented 4 years ago

Thank you for the information and quick response!

m4dcoder commented 4 years ago

I tried on ubuntu and was able to use a module installed in a python venv.