无法使用Pipenv创建虚拟环境。 ValueError:源代码字符串不能包含null字节
我正在网上开设计算机科学课程,并且在尝试使用“ Pipenv -three”创建虚拟环境时,我会陷入一步。在我的VSCODE终端中运行“ PipEnv -three”时,我会收到以下错误:
Using C:/Users/AppData/Local/Programs/Python/Python39/python.exe (3.9.7) to create virtualenv... [= ] Creating virtual environment... Failed creating virtual environment
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 187, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 146, in _get_module_details return _get_module_details(pkg_main_name, error)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 110, in _get_module_details __import__(pkg_name)
File "C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\virtualenv\__init__.py", line 3, in <module>
from .run import cli_run, session_via_cli
ValueError: source code string cannot contain null bytes
我环顾四周,但没有找到任何确切问题的线程。感谢任何帮助,谢谢!
I'm working on a Computer Science course online and I am stuck on a step when trying to create a virtual environment using 'pipenv --three'. When running 'pipenv --three' in my VSCode terminal I get the following error:
Using C:/Users/AppData/Local/Programs/Python/Python39/python.exe (3.9.7) to create virtualenv... [= ] Creating virtual environment... Failed creating virtual environment
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 187, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 146, in _get_module_details return _get_module_details(pkg_main_name, error)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 110, in _get_module_details __import__(pkg_name)
File "C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\virtualenv\__init__.py", line 3, in <module>
from .run import cli_run, session_via_cli
ValueError: source code string cannot contain null bytes
I've looked around but haven't located any threads with this exact issue. Any help is appreciated, Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论