为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

收到一只叮咚 2024-01-04 10:25:03
我得到的错误: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 coverRuntimeError: 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_hackTraceback (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_scriptsThanks in advance
查看完整描述

2 回答

?
慕森王

TA贡献1777条经验 获得超3个赞

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



查看完整回答
反对 回复 2024-01-04
?
米琪卡哇伊

TA贡献1998条经验 获得超6个赞

尝试以下操作-

virtualenv -p python3 myvirtualenv


查看完整回答
反对 回复 2024-01-04
  • 2 回答
  • 0 关注
  • 200 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信