How to install package from pypi into IronPython 3.3?

Hello!

In Revit 2025 i couldn’t find the pip.exe in ..\AppData\Roaming\Dynamo\Dynamo Revit\3.3\packages\DynamoIronPython3.
Is it possible to get Python packages some other way?

Thanks!

Hi,
Which package do you want to install?

Note, IronPython3 does not currently support packages which are C extension modules.

Here is a method for installing a pure Python package in IronPython 3.

You can try the latest PythonNet3 engine (with StdLib and more than 15 pre-installed Python packages), which provides fixes and functionality compared to CPython3.

4 Likes

Trying to use Topologicpy. Yes, it can’t be used with IronPython, as i can see.
Any chance i can use Topologicpy in PythonNET?
Thanks in advance!

Here 2 solutions

  • with an external IDE

    1. create a virtual environment, Python in pyCharm (same version as PythonNet3)
    2. install / add Python packages
    3. copy packages folders from \PycharmProjects\pythonProject2\.venv\Lib\site-packages\ to C:\Users\<User>\AppData\Local\python-3.11.0-embed-amd64\Lib
  • with downloading whl files packages from https://pypi.org/, you can automate the downloading of WHL file packages from https://pypi.org/ with Python, as follows:

    1. get the JSON pypi URL package. https://pypi.org/pypi/<NamePackage>/json
      (ex: https://pypi.org/pypi/Topologicpy/json)
    2. download and parse the json to get url of whl distribution
    3. do the same for the dependencies.
    4. extract whl files to C:\Users\<User>\AppData\Local\python-3.11.0-embed-amd64\Lib

example of JSON pypi

1 Like

@Vladimir

I just noticed that topologicpy installs the necessary dependencies during execution when importing modules (dependencies that will be installed in the wrong location). It might be better to use the dynamo package ‘Topologic’ directly.

2 Likes