Error creating python mkvirtualenv virtual environment 3.6

Asked

Viewed 1,333 times

0

After installing python 3.6 and then virtualenvwrapper via Pip (Pip install virtualenvwrapper-win), I tried to create a virtual environment by the "mkvirtualenv name" command and the following error occurred:

    λ mkvirtualenv django
    Using base prefix 
    'c:\\users\\joãopaulo\\appdata\\local\\programs\\python\\python36-32'
    New python executable in 
    C:\Users\JoãoPaulo\Envs\django\Scripts\python.exe
    Installing setuptools, pip, wheel...
    Complete output from command 
    C:\Users\JoãoPaulo\E...o\Scripts\python.exe - setuptools pip wheel:
    Traceback (most recent call last):
    File "<stdin>", line 3, in <module>
    ModuleNotFoundError: No module named 'pkgutil'
    ----------------------------------------
    ...Installing setuptools, pip, wheel...done.
    Traceback (most recent call last):
    File "c:\users\joãopaulo\appdata\local\programs\python\python36-
    32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
    File "c:\users\joãopaulo\appdata\local\programs\python\python36-
    32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
    File "C:\Users\JoãoPaulo\AppData\Local\Programs\Python\Python36-
    32\Scripts\virtualenv.exe\__main__.py", line 9, in <module>
    File "c:\users\joãopaulo\appdata\local\programs\python\python36-
    32\lib\site-packages\virtualenv.py", line 713, in main
    symlink=options.symlink)
    File "c:\users\joãopaulo\appdata\local\programs\python\python36-
    32\lib\site-packages\virtualenv.py", line 945, in create_environment
    download=download,
    File "c:\users\joãopaulo\appdata\local\programs\python\python36-
    32\lib\site-packages\virtualenv.py", line 901, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
    File "c:\users\joãopaulo\appdata\local\programs\python\python36-
    32\lib\site-packages\virtualenv.py", line 797, in call_subprocess
    % (cmd_desc, proc.returncode))
    OSError: Command C:\Users\JoãoPaulo\E...o\Scripts\python.exe - 
    setuptools pip wheel failed with error code 1

I have tried to reinstall the virtualenvwrapper, as well as redo the whole process, however it keeps insisting on the error, and I do not know what else to do, someone can help me

  • If Voce doesn’t have a reason to use virtualenvwrapper. I suggest that install the anaconda and put an end to bottling problems.

  • thanks for the tip, I’ll give a search on this and resolve put here.

  • Related: https://answall.com/q/209384/5878

1 answer

0

From the version 3.3 the python comes with the module venv allowing the creation of virtual environments without the need to install additional packages via pip.

Just use the command c:\Python35\python -m venv c:\path\to\myenv

For more information: https://docs.python.org/3/library/venv.html

Browser other questions tagged

You are not signed in. Login or sign up in order to post.