Updating already present package in extension

Hello,

I am developing an Omniverse extension and I am working with the packagescipy. I added it to my extension.toml file like so some time ago:

[python.pipapi]
requirements = ["scipy"]
use_online_index = true

This installed the version 1.7.3 of the package and it worked fine.
Lately however I am in the need of a functionality that is only present in a newer vesion (>1.8.0).
I tried to adjust my extension.toml file to look like the following, but this did not help, my code is still using the 1.7.3 version:

[python.pipapi]
requirements = ["scipy"]
use_online_index = true

How can I update this package to work with the latest version?

Hi @jominga. We actually don’t support that currently. If you want to upgrade, you’ll need to remove the package from it’s install location first. Here is an example of where the Python packages are installed by default:

C:\Users\bob\AppData\Local\ov\data\Kit\Code\2022.1\pip3-envs\default

You’ll also need to clear it from the .install_cache.json file:

C:\Users\bob\AppData\Local\ov\data\Kit\Code\2022.1\pip3-envs\default\.install_cache.json

I’ve opened a feature request to make this easier in the future: OM-63149.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.