python pipenv 显示安装成功 但是无法创建虚拟环境???

Microsoft Windows [版本 10.0.17763.973]
(c) 2018 Microsoft Corporation。保留所有权利。

C:\Windows\system32>pip install pipenv
Requirement already satisfied: pipenv in f:\python\lib\site-packages (2018.11.26)
Requirement already satisfied: setuptools>=36.2.1 in f:\python\lib\site-packages (from pipenv) (40.8.0)
Requirement already satisfied: certifi in f:\python\lib\site-packages (from pipenv) (2019.11.28)
Requirement already satisfied: virtualenv in f:\python\lib\site-packages (from pipenv) (16.7.9)
Requirement already satisfied: pip>=9.0.1 in f:\python\lib\site-packages (from pipenv) (20.0.2)
Requirement already satisfied: virtualenv-clone>=0.2.5 in f:\python\lib\site-packages (from pipenv) (0.5.3)

C:\Windows\system32>pipenv --three
Creating a virtualenv for this project…
Pipfile: C:\Windows\System32\Pipfile
Using F:/python/python.exe (3.7.3) to create virtualenv…
[   =] Creating virtual environment...Already using interpreter F:\python\python.exe
Using base prefix 'F:\\python'
Overwriting C:\Users\Administrator\.virtualenvs\System32-eU24dAeB\lib\orig-prefix.txt with new content
New python executable in C:\Users\Administrator\.virtualenvs\System32-eU24dAeB\Scripts\python.exe
ERROR: The executable C:\Users\Administrator\.virtualenvs\System32-eU24dAeB\Scripts\python.exe is not functioning
ERROR: It thinks sys.prefix is 'c:\\windows\\system32' (should be 'c:\\users\\administrator\\.virtualenvs\\system32-eu24daeb')
ERROR: virtualenv is not compatible with this system or executable
Note: some Windows users have reported this error when they installed Python for "Only this user" or have multiple versions of Python installed. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem.
Running virtualenv with interpreter F:/python/python.exe

Failed creating virtual environment
[pipenv.exceptions.VirtualenvCreationException]:   File "f:\python\lib\site-packages\pipenv\vendor\click\decorators.py", line 17, in new_func
[pipenv.exceptions.VirtualenvCreationException]:       return f(get_current_context(), *args, **kwargs)
[pipenv.exceptions.VirtualenvCreationException]:   File "f:\python\lib\site-packages\pipenv\cli\command.py", line 208, in cli
[pipenv.exceptions.VirtualenvCreationException]:       clear=state.clear,
[pipenv.exceptions.VirtualenvCreationException]:   File "f:\python\lib\site-packages\pipenv\core.py", line 574, in ensure_project
[pipenv.exceptions.VirtualenvCreationException]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.VirtualenvCreationException]:   File "f:\python\lib\site-packages\pipenv\core.py", line 506, in ensure_virtualenv
[pipenv.exceptions.VirtualenvCreationException]:       python=python, site_packages=site_packages, pypi_mirror=pypi_mirror
[pipenv.exceptions.VirtualenvCreationException]:   File "f:\python\lib\site-packages\pipenv\core.py", line 935, in do_create_virtualenv
[pipenv.exceptions.VirtualenvCreationException]:       extra=[crayons.blue("{0}".format(c.err)),]
[pipenv.exceptions.VirtualenvCreationException]: Fatal Python error: initfsencoding: unable to load the file system codec
  File "C:\Users\Administrator\.virtualenvs\System32-eU24dAeB\lib\encodings\__init__.py", line 123
    raise CodecRegistryError,\
                            ^
SyntaxError: invalid syntax

Current thread 0x000012dc (most recent call first):

Failed to create virtual environment.

C:\Windows\system32>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


 

你可能感兴趣的:(python pipenv 显示安装成功 但是无法创建虚拟环境???)