python - 在 Windows 10 上进行 pip 安装时出现“空字节”错误
问题描述
我一直在尝试在我的 Windows 10 机器上安装各种软件包(如 Pandas、Matlplotlib 等)。
但我不断收到同样的错误,即:
ValueError: source code string cannot contain null bytes
它源于以下几点:
File "c:\users\<user_name>\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\requests\utils.py", line 170, in get_netrc_auth
from netrc import netrc, NetrcParseError
我尝试过重新安装Python,但是安装1-2次后,再次弹出这个错误。我不知道为什么会这样。
这背后的原因可能是什么?如果我的问题不清楚或者您需要更多详细信息,请告诉我。
非常感谢您!
解决方案
推荐阅读
- wpf - 不使用 PaintSurface 事件在 SkiaSharp 中绘制的最有效方法
- ios - donePicker 无法识别的选择器发送到实例 UiTextField
- r - 使用 r 整理数据
- javascript - 如何让 CSS 应用于动态创建的元素?
- symfony - 如何在已水合实体的集合中添加项目
- node.js - 任何 Angular 应用程序都会导致崩溃。节点重新安装和重启不起作用
- java - 如果输入值==true,则开始 Selenium 测试
- python-3.x - 获取海量生成的可能单词
- neo4j - 新4j;通过关系中的数据解决基于角色的访问
- php - 为什么循环中的这个 PHP 赋值总是打印第一个值?