The only way I was able to get this to work was to copy the version of distutils installed in the /usr/lib/python3.7/distutils to /usr/lib/python3.6/distutils folder which isn't ideal.

I thought it was weird to not have distutils on 3.6 in the package from scratch and that's where i looked this bug up. Surely this isn't intended?

The specific way I resolved this was the following, I've also listed package versions.

   cd /usr/lib
   python3.6/distutils/distutils/util.py

python3.7/testing,now 3.7.2-2 amd64 [installed,automatic]
python3.6/unstable,now 3.6.8-1 amd64 [installed]

$ python3.6 -m virtualenv venv
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.6/dist-packages/virtualenv.py", line 22, in <module>
    import distutils.spawn
ModuleNotFoundError: No module named 'distutils.spawn'

$ python3.6 -m virtualenv venv
Using base prefix '/usr'
New python executable in /home/michael/redacted/venv/bin/python3.6
Also creating executable in /home/michael/redacted/venv/bin/python
Installing setuptools, pip, wheel...
done.

On Thu, 28 Feb 2019 10:36:02 +0100 j...@o2w.es (=?utf-8?B?Sm9zw6kgU8OhbmNoZXo=?= Moreno) wrote:

> Is there any posibility to create a virtualenv on python3.6 in debian
> sid right now?
>
> I'm looking for alternatives and I haven't found any property solution.
>
>
> --
> José Sánchez Moreno
> O2W Leading Software - www.o2w.es
> C/ Trovero Marin, 5 30730 San Javier (Murcia)
> Tlf: 968 192 905 - 656 817 548
> Condiciones Legales de este e-mail en: http://www.o2w.es/email
>
>

--
Michael Psomiadis <r...@raspberry.id.au>
https://raspberry.id.au/

Reply via email to