Hello, On Mon, 01 Apr 2019, George from the tribe wrote:
virtualenv -p /usr/local/bin/python3.7 .smdellvenv Running virtualenv with interpreter /usr/local/bin/python3.7 Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/virtualenv.py", line 16, in <module> import base64 File "/usr/local/lib/python3.7/base64.py", line 10, in <module> import struct File "/usr/local/lib/python3.7/struct.py", line 13, in <module> from _struct import * ModuleNotFoundError: No module named '_struct'
So I tried to change the PYTHONHOME variable like this:
export PYTHONHOME="/usr/local/bin/python3.7"
RTFM. ==== man 1 python ==== PYTHONHOME [..] and ${exec_prefix}. To specify different values for these, set $PYTHONHOME to ${prefix}:${exec_prefix}. PYTHONPATH [..] path is installation depen- dent, but generally begins with ${prefix}/lib/python<version> (see PYTHONHOME above). The default search path is always appended to $PYTHONPATH. If a script argument is given, the ==== So: export PYTHONHOME="/usr/local" and/or: export PYTHONPATH="/usr/local/lib/python3.7" HTH, -dnh -- A tangled cable is a happy cable. -- R. B. West -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org