Skip to main content

Subject: D3.py Installation Issues - Python 3.11 - Seeking Help

Hi everyone,

I'm struggling to get D3.py working with Python 3.11, and I'm hoping someone can help me troubleshoot the installation process. I've gone through the documentation, but I'm finding it a bit unclear, and I'm stuck at the very first step.

Specifically, when I try to import D3.py in a Python session:

import d3py

I get the "ModuleNotFoundError: No module named 'd3py'" error.

I've attempted to install D3.py using pip:

pip install d3py

However, this results in a "File not found" error, even when I execute the command from the directory where I believe D3.py is located.

To ensure we're on the same page, could we please assume a clean setup? Here's my current environment:

  • Python 3.11 is installed and working.

  • I have a copy of D3.py (with the Python license).

I suspect the issue might be related to how D3.py is installed or how Python is finding the module. I'm also confused about the .pyconfig file. The documentation mentions setting PYHOME, but I'm unsure:

  • Where the d3py.dll file (if that's the correct file) is located for Python 3.11.

  • What the correct path for PYHOME should be.

  • If there are any other necessary settings in the .pyconfig file.

Could someone provide a step-by-step guide on installing D3.py from scratch, including any necessary environment setup or configuration? Any help or pointers would be greatly appreciated!

Thanks in advance.

Be the first to reply!