![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
qq_40178497
这个作者很懒,什么都没留下…
展开
-
matplotlib画折线图
import matplotlib.pyplot as pltplt.rcParams['font.sans-serif']=['SimHei'] # 用黑体显示中文plt.rcParams['axes.unicode_minus'] = False # 正常显示负号dataX = ["2011年", "2012年", "2013年", "2014年", "2015年", "2016年", "2017年", "2018年", "2019年", "2020年"]dataY = [44.原创 2022-02-25 20:48:00 · 396 阅读 · 0 评论 -
pip升级时报错,之后使用不了
pip升级时报错,禁止安装最新的pip包之后使用不了,报错ImportError: No module named ‘pip’解决办法如下# 再命令行执行下面两行代码解决问题,pip更新为最新版本curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pypython get-pip.py...原创 2020-05-03 12:40:04 · 431 阅读 · 1 评论 -
tensorflow安装后运行报错ImportError: Could not find the DLL(s) ‘msv
tensorflow安装后运行报错ImportError: Could not find the DLL(s) ‘msvcp140_1.dll’. TensorFlow requires that these DLLs be installed in a directory that is named in your %PATH% environment variable. You may ins...原创 2020-05-03 13:29:15 · 1679 阅读 · 0 评论 -
python pip安装surprise库报错解决方法
报错如下:解决:下载安装该库就行可以去网址https://devblogs.microsoft.com/python/unable-to-find-vcvarsall-bat/下载安装选择默认就行安装完成后再次运行pip安装命令pip install surprise -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com就行...原创 2020-08-18 21:12:40 · 1452 阅读 · 0 评论 -
将pip从pip-9.0.1升级到pip-20.2.3
将pip从pip-9.0.1升级到pip-20.2.3执行命令pip install --upgrade pip卸载pip后一直安装不上,报错:解决:执行python -m ensurepip,恢复旧版本pip,没有上述Uninstalling pip过程的可略过执行curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py执行python get-pip.py --force-reinstall结束,查看版本pip -V...原创 2020-09-17 14:56:42 · 1679 阅读 · 0 评论