
Python库
#晚来天欲雪
这个作者很懒,什么都没留下…
展开
-
【Python】You are using pip version 9.0.1, however version 23.0.1 is available.
Cache entry deserialization failed, entry ignoredCould not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) - skipping原创 2023-02-25 20:24:34 · 5354 阅读 · 3 评论 -
【numpy】np.loadtxt()加载csv格式的文件报错 UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xb7 in position 8
使用numpy的loadtxt函数加载CSV格式的数据时报错原代码如下:a, b, c, d, e, f, g, h = np.loadtxt("data.csv", delimiter=",", usecols=(0, 1, 2, 3, 4, 5, 6, 7), unpack=True,skiprows = 1)错误类型:UnicodeDecodeError: 'gbk' codec can't decode byte 0xb7 in position 8: illegal multibyte原创 2021-04-29 17:17:14 · 3278 阅读 · 1 评论 -
ERROR: Could not find a version that satisfies the requirement torch==1.8.0+cu102 torchvision==0.9.1
在安装GPU版本的Pytorch时根据官网给出的命令利用pip安装结果报错说找不到文件。pip3 install torch==1.8.1+cu102 torchvision==0.9.1+cu102 torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.htmlERROR: Could not find a version that satisfies the requirement torch1.8.0+cu102原创 2021-04-17 11:12:46 · 2781 阅读 · 0 评论