Python3.8创建虚拟环境时出错

我得到的错误:

Traceback (most recent call last):

  File "c:\users\vivek\appdata\local\programs\python\python38-32\lib\site-packages\virtualenv\seed\embed\via_app_data\via_app_data.py", line 58, in _install

    installer.install(creator.interpreter.version_info)

  File "c:\users\vivek\appdata\local\programs\python\python38-32\lib\site-packages\virtualenv\seed\embed\via_app_data\pip_install\base.py", line 46, in install

    for name, module in self._console_scripts.items():

  File "c:\users\vivek\appdata\local\programs\python\python38-32\lib\site-packages\virtualenv\seed\embed\via_app_data\pip_install\base.py", line 116, in _console_scripts

    entry_points = self._dist_info / "entry_points.txt"

  File "c:\users\vivek\appdata\local\programs\python\python38-32\lib\site-packages\virtualenv\seed\embed\via_app_data\pip_install\base.py", line 103, in _dist_info

    raise RuntimeError(msg)  # pragma: no cover

RuntimeError: no .dist-info at C:\Users\Vivek\AppData\Local\pypa\virtualenv\wheel\3.8\image\1\CopyPipInstall\setuptools-50.3.1-py3-none-any, has distutils-precedence.pth, easy_install.py, pkg_resources, setuptools, _distutils_hack


Traceback (most recent call last):

  File "c:\users\vivek\appdata\local\programs\python\python38-32\lib\site-packages\virtualenv\seed\embed\via_app_data\via_app_data.py", line 58, in _install

    installer.install(creator.interpreter.version_info)

  File "c:\users\vivek\appdata\local\programs\python\python38-32\lib\site-packages\virtualenv\seed\embed\via_app_data\pip_install\base.py", line 46, in install

    for name, module in self._console_scripts.items():

  File "c:\users\vivek\appdata\local\programs\python\python38-32\lib\site-packages\virtualenv\seed\embed\via_app_data\pip_install\base.py", line 116, in _console_scripts

Thanks in advance


收到一只叮咚
浏览 201回答 2
2回答

慕森王

virtualenv在 python 3.3 或更高版本中不需要使用package。这些版本中有一个内置的解决方案。只需运行以下命令: python -m venv myvirtualenv 它将创建一个名为“myvirtualenv”的新 virtualenv。

米琪卡哇伊

尝试以下操作-virtualenv -p python3 myvirtualenv
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python