Skip to main content
Question

U2 Python installing modules

  • August 4, 2025
  • 1 reply
  • 22 views

Stuart Boydell001

Hi,

I need some assistance with my u2 installation of python. UV14.1.1/Windows - python 3.11.1 is installed under c:u2uvpython.

I want to install and use a third party python module(s). However, using: 

>python -m pip install wonderwords

gives me an error

ERROR: Exception:

...

ImportError: cannot import name 'RequirementInformation' from 'pip._vendor.resolvelib.structs' (c:u2uvpythonLibsite-packagespip_vendor esolvelibstructs.py)

How should I resolve that? Should I reinstall something?

Also, is it possible to use virtual python environments with the u2 python configuration? It seems I can create them but I'm not sure how to activate it from within UV. 

Thanks

Stuart

1 reply

John Jenkins
Forum|alt.badge.img+1
  • Participating Frequently
  • 253 replies
  • August 9, 2025

Hi,

I need some assistance with my u2 installation of python. UV14.1.1/Windows - python 3.11.1 is installed under c:u2uvpython.

I want to install and use a third party python module(s). However, using: 

>python -m pip install wonderwords

gives me an error

ERROR: Exception:

...

ImportError: cannot import name 'RequirementInformation' from 'pip._vendor.resolvelib.structs' (c:u2uvpythonLibsite-packagespip_vendor esolvelibstructs.py)

How should I resolve that? Should I reinstall something?

Also, is it possible to use virtual python environments with the u2 python configuration? It seems I can create them but I'm not sure how to activate it from within UV. 

Thanks

Stuart

Stuart,

Try installing at the O/S level rather from a  UniVerse shell. Remember to make sure your environment settings - including PATH = only refer to the UniVerse Python instance.

Regarding Python virtual environments -  if the environment is only controlled by environment vatiables you might be able to use these by explicitly setting the approproate environent variables and exporting them at the O.S level before invoking a UniVerse shell.

Regards

JJ