我正在尝试在Python中安装请求模块,并且我不断收到以下错误:
ValueError: source code string cannot contain null bytes
我觉得这很奇怪,因为我正在执行的命令是:
python -m pip install requests
以下是完整的命令和响应:
C:\Users\Ryan>python -m pip install requests
Traceback (most recent call last):
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "C:\Users\Ryan\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 109, in _get_module_details
__import__(pkg_name)
ValueError: source code string cannot contain null bytes
我已经打开了runpy.py
并搜索了\x00
,我找不到任何空字符,所以我不知道还要做什么。有人可以帮忙吗?